How jiteshnayak2004/flame_thrower works
Project type and purpose
• This is a hardware-design project: an On-Chip Network (OCN) router written in Bluespec SystemVerilog (BSC).
• The router implements a 5-port (north, south, east, west, local) 2D-mesh network interface with virtual channels, a crossbar switch, round-robin arbitration, and an XY routing algorithm.
File structure
• Top-level source directory:
• src/router.bsv ‑ likely the top-level router module that instantiates submodules and exposes the five network ports.
• src/router_core.bsv ‑ contains the crossbar, routing logic, and arbiters.
• src/buffer.bsv ‑ implements the statically allocated multi-queue buffers (SAMQs) that provide virtual channels for each incoming direction.
• src/tb_router.bsv ‑ testbench that drives and observes the router.
• Build scripts and configs:
• Makefile with a rule “generate_verilog” that runs bsc to compile all .bsv files into Verilog.
• README.adoc, CHANGELOG.md, docs/ folder for specification details.
README for additional insights
• The router supplies:
• 4 SAMQs (one per compass direction) + 1 for the attached PE (processing element).
• 4×4×1 crossbar switch—to multiplex any of the five input ports onto any of four compass outputs.
• A round-robin arbiter per output port (no priority scheme yet).
• An XY routing scheme (first route along X, then along Y, since each router’s coordinates are known).