Efficient Deadlock Avoidance for 2-D Mesh NoCs That Use OQ or VOQ Routers

Philippos Papaphilippou, Thiem Van ChuIEEE Trans. Computers 2024

TL;DR

This paper introduces a novel hybrid deadlock avoidance algorithm for 2D mesh Network-on-Chip (NoC) routers using Output Queued (OQ) or Virtual Output Queued (VOQ) architectures. By employing a "freedom condition" to locally decide when to deviate from a restricted routing algorithm, it achieves near full-adaptivity performance while guaranteeing deadlock freedom, a significant improvement for FPGA and embedded systems.

What Problem Does This Paper Address?

Modern multi-core processors and System-on-Chips (SoCs) rely heavily on Network-on-Chip (NoC) architectures to interconnect numerous processing units. A critical challenge in NoC design is preventing deadlocks, which can halt network communication. Traditional deadlock avoidance techniques often restrict routing paths, leading to performance bottlenecks. While virtual channels (VCs) offer flexibility, they are less common in resource-constrained environments like FPGAs. Instead, Output Queued (OQ) and Virtual Output Queued (VOQ) routers are prevalent, but achieving deadlock-free, high-performance routing with these architectures has been difficult due to a lack of theoretical frameworks for path flexibility. Existing methods for VOQ/OQ routers often resort to simpler, less adaptive routing algorithms or require complex hardware additions. This paper aims to bridge this gap by enabling more flexible, near-fully-adaptive routing in OQ/VOQ NoCs without significant hardware overhead.

Methods

The core of the proposed solution is a bimodal routing algorithm that operates on a per-packet, per-hop basis. It uses a base algorithm (which can be any routing algorithm, even one prone to deadlocks) and a fallback algorithm (typically a turn-model-based one like XY DOR or "north-last"). The decision to use the base or fallback algorithm is governed by a "freedom condition" (F).

The freedom condition (F) is a sufficient condition that checks if routing a packet through a potentially restricted turn (as defined by the fallback algorithm) would lead to a deadlock. It does this by calculating the worst-case occupancy of the target queue in the next hop, considering all packets that could potentially feed into that queue. If the freedom condition evaluates to True, the packet can proceed with the base algorithm, allowing for more path flexibility. If False, the packet is forced to use the fallback algorithm, ensuring it takes a deadlock-free path.

The paper also proposes a simplified version, F', which is more amenable to hardware implementation by making approximations for queue occupancy and packet size, particularly for single-flit packets. This approach avoids the need for additional queues or complex deadlock detection/recovery mechanisms.

Datasets

Not discussed in the paper. The evaluation uses synthetic traffic patterns and real-world benchmarks from the PARSEC suite.

Key Insights and Ideas

  • OQ/VOQ Routers Imply Turn Information: The paper highlights that the queue organization in OQ/VOQ routers inherently encodes information about potential turns, which can be exploited to relax traditional turn-model restrictions.
  • Local Decision-Making for Deadlock Avoidance: The freedom condition allows for localized, per-packet decisions to enable path flexibility only when it's safe, avoiding the need for global network knowledge or complex control protocols.
  • Hybrid Approach for Performance and Safety: By combining a flexible base algorithm with a safe fallback, the approach achieves a balance between high performance (approaching fully-adaptive routing) and guaranteed deadlock freedom.
  • Minimal Hardware Overhead: The proposed freedom condition requires only a few additional wires and logic for queue occupancy monitoring, making it suitable for resource-constrained environments like FPGAs.

Key Results

  • Performance: The proposed routing algorithms, "XY/Adaptive" and "XY/O1-Turn," consistently achieved the lowest average packet latency across various synthetic traffic patterns and real-world benchmarks, often outperforming traditional algorithms like XY-DOR and DyAD. For instance, "XY/Adaptive" provided up to 1.28x the throughput of "north-last" at a 35% injection rate.
  • Resource Utilization: The "XY/Adaptive" implementation showed minimal overhead compared to a deadlock-prone "full-freedom" router. For FPGAs, it used only 21 more LUTs (<2% increase).
  • Operating Frequency: The performance overhead was also minimal, with a sub-1 MHz drop in maximum operating frequency (fmax) when enabling the deadlock avoidance mechanism.

Limitations and Future Work

  • Assumptions: The study makes certain assumptions for brevity and practicality, such as the use of 2D mesh topology, OQ/VOQ queue organization, and minimal path routing. Removing these assumptions (e.g., supporting misrouting or different topologies) would require additional complexity.
  • Multi-flit Packets: While the approach is adapted for multi-flit packets, the complexity of calculating worst-case occupancy can increase.
  • Future Work: The authors suggest exploring further simplifications to the freedom condition for even greater hardware efficiency, investigating its application in pipelined implementations, and extending the model to support misrouting and interface queues. They also propose exploring different combinations of base and fallback algorithms to fine-tune performance for specific benchmarks.

Summary updated

BibTeX
@article{papaphilippou2024efficient,
  author = {Philippos Papaphilippou and Thiem Van Chu},
  title = {{Efficient Deadlock Avoidance for 2-D Mesh NoCs That Use OQ or VOQ Routers}},
  journal = {IEEE Trans. Computers},
  year = {2024},
  doi = {10.1109/tc.2024.3365954},
}

Loading related content...

Figure