2023-12-17 18:19:01 -06:00
|
|
|
# ========================================================
|
|
|
|
# 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
|
2023-12-17 22:49:15 -06:00
|
|
|
select -set new_cells t:*
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix addr_gen_hier
|
2023-12-17 18:19:01 -06:00
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
proc
|
2023-12-17 22:49:15 -06:00
|
|
|
select -set new_cells t:$mux t:*dff
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix addr_gen_proc
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
opt_clean
|
|
|
|
show -notitle -format dot -prefix addr_gen_clean
|
2023-12-17 18:19:01 -06:00
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
design -reset
|
|
|
|
read_verilog fifo.v
|
|
|
|
hierarchy -check -top fifo
|
|
|
|
proc
|
2023-12-17 22:49:15 -06:00
|
|
|
show -color maroon3 c:fifo_reader -notitle -format dot -prefix rdata_proc o:rdata %ci*
|
2023-12-17 18:19:01 -06:00
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
|
2023-12-17 22:49:15 -06:00
|
|
|
flatten;;
|
2023-12-17 18:19:01 -06:00
|
|
|
show -notitle -format dot -prefix rdata_flat o:rdata %ci*
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
|
2023-12-17 22:49:15 -06:00
|
|
|
opt_dff
|
|
|
|
select -set new_cells t:$adffe
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix rdata_adffe o:rdata %ci*
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
memory_dff
|
|
|
|
select -set new_cells t:$memrd_v2
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix rdata_memrdv2 o:rdata %ci*
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
|
|
|
|
alumacc
|
|
|
|
select -set new_cells t:$alu t:$macc
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix rdata_alumacc o:rdata %ci*
|
|
|
|
|
|
|
|
# ========================================================
|
2023-12-17 18:19:01 -06:00
|
|
|
|
|
|
|
design -reset
|
|
|
|
read_verilog fifo.v
|
2023-12-17 22:49:15 -06:00
|
|
|
synth_ice40 -top fifo -run begin:map_ram
|
|
|
|
# memory_collect
|
|
|
|
# opt
|
|
|
|
select -set new_cells t:$mem_v2
|
|
|
|
show -color maroon3 @new_cells -notitle -format dot -prefix rdata_coarse o:rdata %ci*
|