Skip to content
VLSI

Network-on-Chip (NoC) Architecture: Routers, Virtual Channels, and Deadlock Explained

  • 12 min read

Modern System-on-Chips (SoCs) integrate multiple processors, hardware accelerators, memory controllers, and peripheral interfaces on a single chip. As the number of IP blocks increases, connecting them efficiently becomes a major architectural challenge. Traditional bus-based interconnects can become bottlenecks when multiple masters simultaneously access shared resources.

Network-on-Chip (NoC) architecture addresses this challenge by providing a scalable communication network that connects IP blocks through routers and links. Instead of relying on one shared communication path, a NoC enables multiple data transfers to occur across different network paths concurrently.

However, designing a NoC involves more than connecting routers. Engineers must consider routing algorithms, packet buffering, arbitration, virtual channels, bandwidth allocation, latency, congestion, and deadlock prevention. These factors directly influence system performance and verification complexity.

This article explains NoC architecture, router operation, virtual channels, deadlock conditions, and practical verification scenarios using examples from modern SoC designs.

What Is a Network-on-Chip (NoC)?

A Network-on-Chip is an interconnect architecture that enables communication between different hardware components inside an SoC using a network of routers and links.

Instead of connecting every IP block through a dedicated point-to-point path, a NoC connects processing elements and communication endpoints through a structured network.

A typical SoC may contain:

  • CPU clusters
  • GPU or AI accelerators
  • DMA controllers
  • DDR memory controllers
  • Peripheral IP blocks
  • Cache and coherency interfaces
  • Routers and interconnect links

For example, consider an SoC containing four CPU cores, an AI accelerator, a GPU, a DMA controller, and two DDR memory controllers. Multiple blocks may need to access memory simultaneously.

A NoC allows these transactions to travel through different routers and links based on the selected routing path, destination, and traffic-management rules.

NoC architecture is particularly useful in large SoCs because it supports modular connectivity, scalable bandwidth, and traffic management. Depending on the implementation, networks may use mesh, ring, torus, tree, crossbar-based, or hierarchical topologies.

NoC Architecture and Its Major Components

A NoC consists of communication endpoints, routers, links, and control mechanisms that move data through the network.

Network Interface

The Network Interface (NI) connects an IP block to the NoC. It converts transactions from the IP's native interface into network packets and performs the reverse operation at the destination.

For example, a DMA controller may generate an AXI read request. The network interface converts the request into NoC packets, transports them toward the memory controller, and processes the returning response.

Depending on the NoC implementation, the network interface may perform packetization, transaction mapping, buffering, flow control, and protocol adaptation.

Router

Routers forward packets between input and output ports. A router typically includes:

  • Input buffers
  • Routing logic
  • Virtual-channel allocation logic, where supported
  • Switch allocation and arbitration
  • Crossbar or switching fabric
  • Flow-control logic

The router decides which output port a packet or flit should use and when it can be transferred.

Links

Links connect neighboring routers. They transport flits between network nodes and may have specific bandwidth, latency, width, and clocking characteristics.

Network Topology

Topology defines how routers and endpoints are physically or logically connected.

A well-designed topology can reduce communication latency, improve bandwidth, and minimize congestion while considering chip area, wiring resources, and power consumption.

NoC Topologies: Mesh, Ring, and Tree

The topology determines how routers are arranged and how traffic travels through the network.

2D Mesh

In a 2D mesh, routers are arranged in rows and columns. Each router can connect to its neighboring routers in the north, south, east, and west directions, along with a local endpoint.

For example, a 4 × 4 mesh contains 16 routers. A packet from the router at the upper-left corner to the lower-right corner may travel horizontally and vertically across multiple links.

Mesh networks are popular in multicore and manycore architectures because they provide structured connectivity and support scalable routing.

Ring Topology

In a ring, routers connect in a circular arrangement. Data travels around the ring to reach its destination.

Rings can be simpler to implement in smaller designs, but the number of hops and traffic load can become significant when many endpoints communicate.

Tree Topology

A tree network organizes routers hierarchically. Traffic between endpoints may travel through shared branches.

Trees can simplify connectivity and support structured communication, but shared links near the root may become congestion points if traffic is not balanced.

The topology should be selected based on the system's communication patterns, bandwidth requirements, latency targets, routing constraints, and physical implementation limitations.

How a NoC Router Works

A NoC router receives data from an input port, determines the destination, selects an output port, and forwards the data through the network.

A packet may be divided into smaller units called flits (flow-control digits). A common packet format contains:

  • Header flit: Contains routing information or packet-control information.
  • Body flits: Carry the payload data.
  • Tail flit: Marks the end of a packet in packet formats that use this convention.

Not every NoC uses the same packet format or flit structure.

Router operation

A typical router pipeline may include the following stages:

  1. Routing computation: Determine the output direction based on destination information and the routing algorithm.
  2. Virtual-channel allocation: Assign a virtual channel on the selected output, if virtual channels are used.
  3. Switch allocation: Arbitrate between competing input requests for output resources.
  4. Switch traversal: Move the selected flit through the router switching fabric.
  5. Link traversal: Transfer the flit to the next router.

Some routers combine stages or use different pipeline structures to reduce latency.

Practical example: DMA-to-memory transfer

Suppose a DMA controller transfers a 4 KB data block to a DDR memory controller.

The DMA generates memory requests through its network interface. The packets travel through several routers toward the memory-controller endpoint.

If another accelerator simultaneously sends traffic to the same memory controller, both transactions may compete for router buffers, output ports, and link bandwidth.

The router must arbitrate these requests while ensuring that packets are forwarded according to routing and flow-control rules.

This scenario is important for verifying packet ordering, congestion behavior, bandwidth sharing, and response handling.

Virtual Channels in NoC Architecture

Virtual channels (VCs) allow multiple logical communication channels to share a physical link and buffering resources.

A router input port may contain multiple virtual-channel buffers instead of one buffer for all traffic. Each VC maintains its own buffering and flow-control state.

Virtual channels can improve throughput by reducing head-of-line blocking, where a packet waiting for a blocked output prevents other packets behind it from progressing.

Why virtual channels are required

Consider a router receiving two packets:

  • Packet A needs an output port that is currently blocked.
  • Packet B needs a different output port that is available.

If both packets share one FIFO buffer and Packet A is at the head, Packet B may be unable to proceed even though its output is free.

With separate virtual-channel buffers, Packet B can potentially be selected and forwarded while Packet A remains blocked, provided the router's allocation and switching resources permit it.

Virtual-channel allocation

Virtual-channel allocation assigns a VC at the downstream router for an incoming packet. The router must ensure that the required downstream buffer or VC is available before advancing the packet.

The allocator may use arbitration when several packets request the same VC.

Switch allocation

After a packet has an appropriate VC, the router must also arbitrate for the physical switch and output link.

For example, if three input ports request the same output port during one cycle, only one request may be granted if the output can transfer only one flit in that cycle. The arbitration policy may use round-robin, fixed priority, age-based priority, or another implementation-specific scheme.

Verification should check that arbitration does not lose flits, violate packet ordering requirements, or starve traffic beyond the expected policy.

Routing Algorithms Used in NoCs

Routing algorithms determine the path taken by packets through routers.

XY routing

XY routing is commonly used in 2D mesh networks. A packet first moves along the X direction until it reaches the destination column, then moves along the Y direction until it reaches the destination row.

For a packet travelling from router (0,0) to router (3,2), the route is:

  • Move east from column 0 to column 3.
  • Move south from row 0 to row 2.

The route uses five hops, assuming each adjacent router connection is one hop.

XY routing is easy to implement and can be deadlock-free under the assumptions of a conventional mesh with appropriate routing restrictions. However, it may not always provide the shortest or least-congested path when faults or uneven traffic are present.

Adaptive routing

Adaptive routing allows packets to choose among multiple possible paths based on congestion, available resources, or routing conditions.

For example, if the direct eastward route is congested, a router may choose another permitted path. This can improve load balancing but introduces additional complexity in route selection, ordering, and deadlock avoidance.

Routing algorithms must be evaluated for correctness, path legality, fairness, performance, and deadlock behavior.

Deadlock in NoC: Why It Happens

Deadlock occurs when packets or flits are blocked because each holds a resource while waiting for another resource that is held by a different blocked packet.

A classic deadlock involves four conditions:

  1. Mutual exclusion: A resource can be allocated to only one competing requester at a time.
  2. Hold and wait: A packet holds an allocated resource while requesting another.
  3. No preemption: The resource cannot simply be taken away arbitrarily.
  4. Circular wait: A cycle of dependencies exists among blocked packets.

When these conditions exist simultaneously, the network can become deadlocked.

Practical deadlock example

Consider four routers arranged in a square:

R0 → R1 → R2 → R3 → R0

Suppose four packets occupy resources in a circular dependency:

  • Packet A holds a channel in R0 and waits for R1.
  • Packet B holds a channel in R1 and waits for R2.
  • Packet C holds a channel in R2 and waits for R3.
  • Packet D holds a channel in R3 and waits for R0.

Each packet is waiting for a resource held by another packet. No packet can advance, so the network makes no progress.

This is a simplified dependency example. Real deadlock behavior depends on the routing algorithm, buffer organization, virtual-channel allocation, and resource dependencies.

How NoC Designs Prevent Deadlock

Deadlock prevention usually involves controlling resource dependencies so that circular waiting cannot occur.

Routing restrictions

A routing algorithm can restrict the order in which channels are acquired. XY routing, for example, enforces a consistent dimension order in a conventional mesh, preventing certain cyclic channel dependencies.

Virtual channels

Virtual channels can separate traffic classes or break particular resource dependencies when combined with a suitable routing and allocation policy.

However, simply adding more virtual channels does not automatically guarantee deadlock freedom. The routing algorithm and VC allocation rules must be designed to eliminate cycles in the channel-dependency graph.

Escape paths

Some adaptive-routing networks use an escape virtual channel or escape routing path that guarantees progress under defined conditions. Packets can transition to a deterministic escape path when necessary.

Resource allocation rules

A router can limit when packets acquire downstream resources and how they hold resources during forwarding. These rules can prevent circular dependencies.

Verification engineers should check not only whether the NoC avoids deadlock under expected traffic but also whether it guarantees progress under the supported routing and resource-allocation rules.

NoC Verification Scenarios Using SystemVerilog and UVM

NoC verification must cover routing correctness, packet integrity, resource allocation, arbitration, congestion, deadlock prevention, and performance.

A UVM environment may contain:

  • Traffic generators or virtual sequences
  • Endpoint agents
  • Router monitors
  • Packet-level scoreboards
  • Route checkers
  • Virtual-channel monitors
  • Performance monitors
  • Functional coverage collectors
Scenario 1: Basic packet routing

Generate packets from one source to several destinations.

Verify:

  • Correct destination delivery.
  • Packet integrity.
  • Correct route selection.
  • No duplicated or dropped packets.
Scenario 2: Multiple sources targeting one destination

Generate simultaneous traffic from CPU, GPU, and DMA endpoints to the same memory-controller endpoint.

Verify:

  • Arbitration behavior.
  • Correct buffering.
  • Packet ordering where required.
  • No data corruption or loss.
Scenario 3: Virtual-channel contention

Block one output path while generating packets for another available output.

Verify that packets using independent VCs can progress according to the router architecture and that blocked traffic does not incorrectly prevent unrelated traffic from moving.

Scenario 4: Congestion and backpressure

Create sustained traffic exceeding the capacity of a selected output link.

Verify:

  • Backpressure propagates correctly.
  • Buffers do not overflow.
  • Flits are neither lost nor duplicated.
  • Traffic resumes when congestion clears.
Scenario 5: Deadlock stress test

Generate traffic patterns that create opposing routes or cyclic resource dependencies.

Verify:

  • The design does not enter an illegal deadlocked state under the supported routing algorithm.
  • Required escape mechanisms or resource restrictions operate correctly.
  • Packets continue to make progress.
  • Timeout diagnostics identify blocked packets and resource dependencies.
Scenario 6: Performance verification

Measure latency and throughput under light, moderate, and heavy traffic.

For example, compare DMA transfer latency when the network is idle with latency during simultaneous GPU and CPU memory traffic. Verify that QoS or bandwidth guarantees are met if the architecture specifies them.

NoC Functional Coverage and Debugging

Functional coverage should capture combinations of source, destination, routing direction, virtual channel, packet type, arbitration outcome, congestion level, and backpressure.

Useful coverage points include:

  • Every source-to-destination pair.
  • Every router input-to-output direction.
  • VC allocation and release.
  • Arbitration winner and loser combinations.
  • Congestion and backpressure conditions.
  • Packet lengths and boundary cases.
  • Escape-path usage, if implemented.
  • Recovery from congestion.
  • Deadlock prevention scenarios.

When debugging a failure, trace the packet from its source interface through each router. Record the destination, route decision, input VC, output request, grant, downstream credit or buffer availability, and flit transfer.

A packet timeout alone does not prove deadlock. It may indicate congestion, starvation, a routing bug, a dropped credit, or a scoreboard issue. Debugging should establish whether packets are blocked in a circular dependency or simply delayed.

Conclusion

NoC architecture enables scalable communication between processors, accelerators, memory controllers, and peripheral IP blocks in modern SoCs. Routers, links, routing algorithms, virtual channels, buffering, and arbitration determine how efficiently packets move through the network.

Virtual channels help improve resource utilization and reduce head-of-line blocking, while routing restrictions and resource-allocation strategies help prevent deadlock. However, performance and correctness depend on how these mechanisms are combined and implemented.

For SoC verification engineers, understanding packet flow, router behavior, virtual-channel allocation, congestion, and deadlock prevention is essential. A complete verification plan should include packet-integrity checks, route validation, arbitration, backpressure, deadlock stress, and performance measurement.

Engineers looking to develop these skills can explore SoC Design and Verification Training at InSkill, which covers SoC interconnects, NoC architecture, system-level testbench setup, connectivity, and functional verification. For hands-on protocol and interconnect verification skills, SystemVerilog Verification Training and Functional Verification Training for Experienced Engineers provide relevant exposure to testbench development, assertions, coverage, UVCs, and interconnect verification concepts.

Share LinkedIn X WhatsApp