6.3.6 · D4Interconnects, Buses & SoC

Exercises — Network-on-Chip (NoC) topologies

2,296 words10 min readBack to topic

This page is a self-test ladder. Each exercise names its level (L1 → L5). Try it first, then open the collapsible solution. Every formula you need was built in the parent topic — but we re-state each one the moment we use it, so you never chase a symbol.

Reference numbers used throughout: a link carries bits per cycle at frequency , so one link's bandwidth is

Figure — Network-on-Chip (NoC) topologies

Level 1 — Recognition

Recall Solution 1.1

WHAT it is: a grid of routers with only up/down/left/right links and no edge-wrapping is a Mesh (2D grid). Degree = number of links leaving a router. Look at figure s01.

  • Centre router has all four neighbours present → degree .
  • Corner router touches only two neighbours → degree . Answer: Mesh; centre degree , corner degree .
Recall Solution 1.2

A closed loop where each router links only to its two loop-neighbours is a Ring. Every node has exactly links, so degree uniformly. Answer: Ring.


Level 2 — Application

Recall Solution 2.1

Here . Answer: hops. (See figure s02: the red staircase from bottom-left to top-right is 6 links long.)

Recall Solution 2.2

Formula: . A vertical cut through a mesh severs one link per row = links. Answer: .

Recall Solution 2.3

Diameter: worst case is the node directly "across" the loop. hops. Bisection: cut the loop anywhere and you always sever exactly links (the loop has two arcs), so Answer: hops, — the tiny bisection is why rings choke under heavy traffic (see Latency and Throughput Trade-offs).


Level 3 — Analysis

Recall Solution 3.1

Mesh: hops. Torus: wraparound means the farthest you must travel in each dimension is halfway around, . So Reduction: . Answer: Mesh , Torus hops — a drop. The wraparound links are the shortcuts.

Recall Solution 3.2

is XOR = flip the chosen bit. Node .

  • Neighbours: — exactly of them (degree ). Diameter: any two nodes differ in at most bit positions, and each hop fixes one bit, so hops. Answer: neighbours ; .

Level 4 — Synthesis

Recall Solution 4.1

Compute each (all with ):

Topology Diameter Degree
Mesh (interior)
Torus (uniform)
4D Hypercube
16-node Ring
Ranking (best→worst diameter): Torus Hypercube < Mesh < Ring .
Winner on diameter: tie at between Torus and Hypercube. Here both also have degree , so at the degree cost is identical — the deciding factors become physical layout (torus needs long wraparound wires; hypercube is non-planar) and bisection bandwidth. See System-on-Chip (SoC) Design for the layout constraint.
Answer: Torus and Hypercube tie at diameter , both degree ; Ring is worst at .
Recall Solution 4.2

Hypercube degree . Solve . The next power of two is , where degree . Answer: at (degree ). Why it matters: each extra port adds a crossbar row/column, buffers, and arbitration logic, so router area/power roughly scales with degree. Beyond the hypercube's router grows while the torus's stays fixed at — a real power and area penalty even though the hypercube's diameter is still tiny.


Level 5 — Mastery

Recall Solution 5.1

, , binary tree so . (a) Root link a leaf link, which is exactly why it's called a fat tree. (b) — no bottleneck at any cut. (c) hops (leaf up to root, root down to leaf). (d) Mesh bisection was ; fat-tree is = higher. Price paid: the huge root switch is large and power-hungry, and the -hop diameter (vs mesh's ) means higher latency for nearby nodes. Bandwidth-critical designs (datacenter-like traffic) accept this; latency-critical ones may not.

Recall Solution 5.2

All-to-all traffic stresses bisection bandwidth (half the cores flood the other half). Power budget forbidding long wires penalises Torus (wraparound wires span the chip) and Hypercube (non-planar long links) and the Fat-Tree root wires. Bisection numbers at ( Gb/s):

Topology Bisection BW Long wires?
Ring Gb/s no
Mesh Gb/s no (all links short/local)
Torus Gb/s yes (wraparound)
Hypercube Gb/s yes (non-planar)
Fat-Tree Gb/s yes (fat root wires)
Reasoning: the highest-bisection options (Fat-Tree, Torus, Hypercube) all violate the "no long wires" constraint. Among the wire-friendly, planar options (Ring, Mesh), the Mesh doubles the ring's bisection ( vs Gb/s) with only short, local links.
Winner: Mesh — best bisection among the physically-allowed, short-wire topologies, and its regular grid maps cleanly onto a 2D floorplan. If the power rule were relaxed, the Torus (same diameter as hypercube, uniform degree , double the mesh bisection) would take over.