2017-07-29 16:43:43 -04:00
|
|
|
|
|
|
|
|
2017-12-29 07:18:14 -05:00
|
|
|
VERILOG = ../../../Murax.v toplevel.v
|
2017-07-29 16:43:43 -04:00
|
|
|
|
2017-08-03 17:22:57 -04:00
|
|
|
generate :
|
2017-12-29 07:18:14 -05:00
|
|
|
(cd ../../..; sbt "run-main vexriscv.demo.Murax")
|
2017-07-29 16:43:43 -04:00
|
|
|
|
2017-12-29 07:18:14 -05:00
|
|
|
../../../Murax.v :
|
|
|
|
(cd ../../..; sbt "run-main vexriscv.demo.Murax")
|
2017-08-03 17:22:57 -04:00
|
|
|
|
2018-01-21 09:39:10 -05:00
|
|
|
../../../Murax.v*.bin:
|
|
|
|
|
2018-01-20 12:29:33 -05:00
|
|
|
bin/toplevel.blif : ${VERILOG} ../../../Murax.v*.bin
|
2017-07-29 16:43:43 -04:00
|
|
|
mkdir -p bin
|
2018-01-20 12:29:33 -05:00
|
|
|
rm -f Murax.v*.bin
|
|
|
|
cp ../../../Murax.v*.bin . | true
|
2017-07-29 16:43:43 -04:00
|
|
|
yosys -v3 -p "synth_ice40 -top toplevel -blif bin/toplevel.blif" ${VERILOG}
|
|
|
|
|
2017-08-03 17:22:57 -04:00
|
|
|
bin/toplevel.asc : toplevel.pcf bin/toplevel.blif
|
|
|
|
arachne-pnr -p toplevel.pcf -d 8k --max-passes 600 -P ct256 bin/toplevel.blif -o bin/toplevel.asc
|
2017-07-29 16:43:43 -04:00
|
|
|
|
2017-08-03 17:22:57 -04:00
|
|
|
bin/toplevel.bin : bin/toplevel.asc
|
|
|
|
icepack bin/toplevel.asc bin/toplevel.bin
|
2017-07-29 16:43:43 -04:00
|
|
|
|
|
|
|
compile : bin/toplevel.bin
|
|
|
|
|
|
|
|
time: bin/toplevel.bin
|
|
|
|
icetime -tmd hx8k bin/toplevel.asc
|
|
|
|
|
|
|
|
prog : bin/toplevel.bin
|
2018-07-20 21:30:26 -04:00
|
|
|
iceprog -S bin/toplevel.bin
|
|
|
|
|
|
|
|
sudo-prog : bin/toplevel.bin
|
2017-07-29 16:43:43 -04:00
|
|
|
sudo iceprog -S bin/toplevel.bin
|
|
|
|
|
2017-07-31 07:57:34 -04:00
|
|
|
clean :
|
2018-01-20 12:29:33 -05:00
|
|
|
rm -rf bin
|
2018-07-20 21:30:26 -04:00
|
|
|
rm -f Murax.v*.bin
|