diff options
Diffstat (limited to 'machxo2/examples/simtest.sh')
-rw-r--r-- | machxo2/examples/simtest.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/machxo2/examples/simtest.sh b/machxo2/examples/simtest.sh index 5e7d821d..4cb8d5ca 100644 --- a/machxo2/examples/simtest.sh +++ b/machxo2/examples/simtest.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -ex -yosys -p "tcl ../synth/synth_machxo2.tcl 4 blinky.json" blinky.v +${YOSYS:-yosys} -p "synth_machxo2 -json blinky.json" blinky.v ${NEXTPNR:-../../nextpnr-machxo2} --no-iobs --json blinky.json --write pnrblinky.json -yosys -p "read_json pnrblinky.json; write_verilog -noattr -norename pnrblinky.v" -iverilog -o blinky_simtest ../synth/prims.v blinky_tb.v pnrblinky.v +${YOSYS:-yosys} -p "read_json blinky.json; write_verilog -noattr -norename pnrblinky.v" +iverilog -o blinky_simtest ${CELLS_SIM:-`${YOSYS:yosys}-config --datdir/machxo2/cells_sim.v`} blinky_tb.v pnrblinky.v vvp -N ./blinky_simtest |