diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-07-21 17:43:33 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-07-21 17:43:33 +0200 |
commit | 484fa4ac5fa4eb73e4f6503d7643cc8e7426635e (patch) | |
tree | 641767389ff977abf74758e627a1d77f261e1c5f /scripts/icestorm/Makefile | |
parent | f4842be8bbbf0ba6b44b6a5aaf69647e5007924a (diff) | |
download | picorv32-484fa4ac5fa4eb73e4f6503d7643cc8e7426635e.tar.gz picorv32-484fa4ac5fa4eb73e4f6503d7643cc8e7426635e.zip |
icestorm sim improvements
Diffstat (limited to 'scripts/icestorm/Makefile')
-rw-r--r-- | scripts/icestorm/Makefile | 41 |
1 files changed, 36 insertions, 5 deletions
diff --git a/scripts/icestorm/Makefile b/scripts/icestorm/Makefile index a6a4b4f..bd20a41 100644 --- a/scripts/icestorm/Makefile +++ b/scripts/icestorm/Makefile @@ -28,16 +28,47 @@ example_tb.exe: example_tb.v example.v firmware.hex iverilog -o example_tb.exe -s testbench example.v example_tb.v ../../picorv32.v chmod -x example_tb.exe -sim: example_tb.exe - vvp -N example_tb.exe # +vcd +example_sim: example_tb.exe + vvp -N example_tb.exe + +example_sim_vcd: example_tb.exe + vvp -N example_tb.exe +vcd + +synth_tb.exe: example_tb.v synth.blif + iverilog -o synth_tb.exe -s testbench synth.v example_tb.v /usr/local/share/yosys/ice40/cells_sim.v + chmod -x synth_tb.exe + +synth_sim: synth_tb.exe + vvp -N synth_tb.exe + +synth_sim_vcd: synth_tb.exe + vvp -N synth_tb.exe +vcd + +route.v: example.txt + icebox_vlog -L -n top -sp example.pcf example.txt > route.v + +route_tb.exe: example_tb.v route.v + iverilog -o route_tb.exe -s testbench route.v example_tb.v /usr/local/share/yosys/ice40/cells_sim.v + chmod -x route_tb.exe + +route_sim: route_tb.exe + vvp -N route_tb.exe + +route_sim_vcd: route_tb.exe + vvp -N route_tb.exe +vcd prog_sram: iceprog -S example.bin +view: + gtkwave example.vcd example.gtkw + clean: rm -f firmware.elf firmware.map firmware.bin firmware.hex - rm -f synth.log synth.v synth.blif example.txt example.bin - rm -f example_tb.exe example.vcd + rm -f synth.log synth.v synth.blif route.v example.txt example.bin + rm -f example_tb.exe synth_tb.exe route_tb.exe example.vcd -.PHONY: all sim prog_sram clean +.PHONY: all prog_sram view clean +.PHONY: example_sim synth_sim route_sim +.PHONY: example_sim_vcd synth_sim_vcd route_sim_vcd |