Open 71GA opened 2 years ago
Try reading in the blackboxes for the iCE40 cells first using read_verilog -lib +/ice40/cells_sim.v
before hierarchy
This worked! I just did changed the makefile
target svg
like this:
svg:
yosys \
-p "read_verilog -sv -formal $(filename).v" \
-p "read_verilog -lib +/ice40/cells_sim.v" \
-p "hierarchy -check -top $(filename)" \
-p "proc" \
-p "write_json $(filename).json"
netlistsvg -o $(filename).svg $(filename).json
Where is this documented?
I have this design where I use SPI block that is "hardcoded inside the FPGA". I don't have the design of this element, but I am able to use it successfully once my bitstream file is uploaded to the FPGA.
This is my design (in Verilog):
This synthesizes well by calling
make
, but when I try to create an svg usingmake svg
it fails because it can't find the "hardcoded SPI block" i.e.SB_SPI_inst
. This is the compilation output:This is the
makefile
that I use:If I check the help for
yosys
subcommandhierarchy
, I get this:This problem is related to
yosys
andnetlistsvg
, so I posted it here.