2017-07-29 16:43:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
VERILOG = ../../Murax.v toplevel.v
|
|
|
|
|
|
|
|
|
|
|
|
bin/toplevel.bin : toplevel.pcf ${VERILOG}
|
|
|
|
mkdir -p bin
|
|
|
|
yosys -v3 -p "synth_ice40 -top toplevel -blif bin/toplevel.blif" ${VERILOG}
|
|
|
|
arachne-pnr -p toplevel.pcf -d 8k --max-passes 600 -P ct256 bin/toplevel.blif -o bin/toplevel.asc
|
|
|
|
icepack bin/toplevel.asc bin/toplevel.bin
|
|
|
|
|
|
|
|
generate :
|
|
|
|
(cd ../..; sbt "run-main vexriscv.demo.Murax")
|
|
|
|
|
|
|
|
|
|
|
|
compile : bin/toplevel.bin
|
|
|
|
|
|
|
|
time: bin/toplevel.bin
|
|
|
|
icetime -tmd hx8k bin/toplevel.asc
|
|
|
|
|
|
|
|
prog : bin/toplevel.bin
|
|
|
|
sudo iceprog -S bin/toplevel.bin
|
|
|
|
|
2017-07-31 07:57:34 -04:00
|
|
|
clean :
|
|
|
|
rm -rf bin
|