Important
Since May 2022, packages providing Architecture Definition assets do not include CLI
utilities/wrappers to interact with Yosys, Verilog-to-Routing, etc.
For backwards compatibility, end-users can install Python package f4pga from
gh:chipsalliance/f4pga.
For instance:
pip install https://github.com/chipsalliance/f4pga/archive/main.zip#subdirectory=f4pga.
Structure¶
Directories¶
XXX/device/- Full architecture definitions of a given device for Verilog To RoutingXXX/device/YYYY-virt- Verilog to Routing architecture definitions generally are not able to able to generate the exact model of many FPGA routing interconnects, but this is a pretty close.
XXX/primitives/- The primitives that make up the architecture. These are generally used inside the tiles.XXX/tiles/- The tiles found in the architecture.XXX/tests/- Tests for making sure the architecture specific features works with VPR.vpr - Common defines used by multiple architectures.
Files¶
pb_type.xml - The Verilog to Routing Complex Block defintinition.
Inside
primitivesdirectory they should be intermediate or primitive<pb_type>and thus allow setting thenum_pbattribute.Inside
tilesdirectory they should be top level<pb_type>and thus have,capacity(if a pin type),width&height(and maybearea)
model.xml- The Verilog to Routing Recognized BLIF Models defintinition.sim.v- A Verilog definition of the object. It should:[ ] Match the definition in
model.xml(should be onemoduleinsim.vfor everymodelinmodel.xml)[ ] Include a
ifndef BLACKBOXsection which actually defines how the Verilog works.
macro.v- A Verilog definition of the object which a user might instantiate in their own code when specifying a primitive. This should match the definition provided by a manufacturer. Examples would be the definitions in:
Names¶
BLK_MB-block_1_name-block_2_name-BLOCKwhich is a “mega block”. A “mega block” is a top level block which is made up of other blocks.BLK_XX-name-BLOCKwhich is the hierarchy. Maps toBLK_SI->SITEandBLK_TI->TILEin Xilinx terminology.BLK_IG-name-BLOCKwhich is ignored. They don’t appear in the output hierarchy and are normally used when something is needed in the description which doesn’t match actual architecture.BEL_RX-mux_name-BELwhich is a routing mux. Routing muxes are statically configured at PnR time.BEL_MX-mux_name-BELwhich is a mux .BEL_LT-lut_name-BELwhich is a look up table.BEL_MM-mem_name-BELwhich is a me**m**ory.BEL_FF-ff_name-BELwhich is a flip flop (FF).BEL_LL-latch_name-BELwhich is a latch (LL).BEL_BB-name-BELwhich is a black box (BB).PAD_IN-name- A signal input location.PAD_OT-name- A signal output location.
Notes¶
Unless there is a good reason otherwise, all muxes should be generated via mux_gen.py.
DRY (Don’t repeat yourself) - Uses XML XIncludes to reuse stuff!