How nhpoole/dnn_accelerator works
Project type and purpose
• This is a hardware-design EDA flow for a convolutional neural-network accelerator (“dnn_accelerator”).
• It bundles Verilog RTL, C++/Verilog testbenches, Python orchestration (mflowgen), and a full synthesis → place-and-route → sign-off pipeline using Cadence and Synopsys tools as well as open-source DRC/LVS.
File structure
• Top-level “design” folder holds the mflowgen graph definition (.mflowgen.yml) and orchestration script (construct.py).
• Under “design” you see subdirectories per flow stage:
• rtl – Verilog sources
• testbench – testbench C++/Verilog + JSON parameter files
• synopsys-ptpx-rtl – RTL synthesis tcl for Synopsys pt_px
• cadence-xcelium-sim / synopsys-vcs-sim – simulation flows
• floorplan / pin-placement – physical-planning scripts
• cadence-innovus-power / cadence-innovus-signoff – power analysis & sign-off flows
• open-magic-drc / open-netgen-lvs / open-magic-def2spice – open-source DRC, LVS, spice-extraction
• constraints, sram – constraint files & memory generator configs
• A top-level “reports” directory holds all flow outputs and sign-off reports.
README for additional insights
• The README confirms the goal: a complete RTL+testbench and synthesis/layout reports for a CNN accelerator.
a. Main components
1. RTL library (Verilog)
2. Testbench & parameter generator
3. Flow orchestrator (mflowgen + construct.py)
4. Simulation engines: Cadence Xcelium, Synopsys VCS
5. RTL synthesis: Synopsys pt_px
6. Floorplan & pin-placement scripts
7. -and-route & power analysis: Cadence Innovus
8. Physical verification: Magic (DRC), Netgen (LVS), def2spice extraction
9. Sign-off reporting
10. SRAM generator & constraints subsystem
b. Relationships and interactions
• The mflowgen graph triggers:
• Testbench flows (simulate the RTL with golden C++ model).
• Synthesis of RTL into gate-level netlist.
• The synthesized netlist plus constraints feed floorplanning and pin-placement.
• Floorplan outputs feed Innovus for P&R.
• P&R deliver GDSII/netlist to:
• Power analysis (Innovus-power)
• DRC/LVS (Magic/Netgen)
• Spice extraction (def2spice)
• All these feed into sign-off scripts for timing, power, and area reports.
c. Architectural patterns/design principles
• A staged pipeline (simulation → synthesis → physical design → verification → sign-off)
• Modular flows orchestrated by a central Python/mflowgen script
• Separation of open-source vs. commercial tool steps
d. Key technologies/frameworks
• Verilog RTL
• Python + mflowgen
• Cadence Innovus & Xcelium
• Synopsys pt_px & VCS
• Magic, Netgen, def2spice