mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
Switching example synth to fifo
Fifo code based on SBY quick start. Instead of showing the full design we are (currently) focusing on a single output (rdata), using `%ci*` to get the subcircuit it relies on.
This commit is contained in:
parent
80c78aaad6
commit
742ec78ca3
9 changed files with 2538 additions and 326 deletions
39
docs/source/code_examples/fifo/fifo.ys
Normal file
39
docs/source/code_examples/fifo/fifo.ys
Normal file
|
@ -0,0 +1,39 @@
|
|||
# ========================================================
|
||||
# throw in some extra text to match what we expect if we were opening an
|
||||
# interactive terminal
|
||||
log $ yosys fifo.v
|
||||
log
|
||||
log -- Parsing `fifo.v' using frontend ` -vlog2k' --
|
||||
read_verilog -defer fifo.v
|
||||
|
||||
# turn command echoes on to use the log output as a console session
|
||||
echo on
|
||||
hierarchy -top addr_gen
|
||||
show -notitle -format dot -prefix addr_gen_hier
|
||||
|
||||
# ========================================================
|
||||
proc
|
||||
show -notitle -format dot -prefix addr_gen_proc
|
||||
|
||||
# ========================================================
|
||||
design -reset
|
||||
read_verilog fifo.v
|
||||
hierarchy -check -top fifo
|
||||
proc
|
||||
show -notitle -format dot -prefix rdata_proc o:rdata %ci*
|
||||
|
||||
# ========================================================
|
||||
|
||||
flatten
|
||||
show -notitle -format dot -prefix rdata_flat o:rdata %ci*
|
||||
|
||||
# ========================================================
|
||||
|
||||
opt_clean
|
||||
show -notitle -format dot -prefix fifo_flat
|
||||
|
||||
design -reset
|
||||
read_verilog fifo.v
|
||||
synth_ice40 -dsp -top fifo
|
||||
show -notitle -format dot -prefix fifo_synth
|
||||
stat
|
Loading…
Add table
Add a link
Reference in a new issue