VexRiscv/scripts/Murax/iCE40-hx8k_breakout_board_xip/Makefile

39 lines
1.6 KiB
Makefile
Raw Normal View History

2018-09-18 10:53:26 -04:00
VERILOG = ../../../Murax_iCE40_hx8k_breakout_board_xip.v
2018-09-18 10:53:26 -04:00
generate :
#(cd ../../..; sbt "run-main vexriscv.demo.Murax_iCE40_hx8k_breakout_board_xip")
2018-09-18 10:53:26 -04:00
../../../Murax_iCE40_hx8k_breakout_board_xip.v :
#(cd ../../..; sbt "run-main vexriscv.demo.Murax_iCE40_hx8k_breakout_board_xip")
2018-09-18 10:53:26 -04:00
../../../Murax_iCE40_hx8k_breakout_board_xip.v*.bin:
2018-09-18 10:53:26 -04:00
bin/Murax_iCE40_hx8k_breakout_board_xip.blif : ${VERILOG} ../../../Murax_iCE40_hx8k_breakout_board_xip.v*.bin
2018-09-18 10:53:26 -04:00
mkdir -p bin
rm -f Murax_iCE40_hx8k_breakout_board_xip.v*.bin
cp ../../../Murax_iCE40_hx8k_breakout_board_xip.v*.bin . | true
yosys -v3 -p "synth_ice40 -top Murax_iCE40_hx8k_breakout_board_xip -blif bin/Murax_iCE40_hx8k_breakout_board_xip.blif" ${VERILOG}
2018-09-18 10:53:26 -04:00
bin/Murax_iCE40_hx8k_breakout_board_xip.asc : Murax_iCE40_hx8k_breakout_board_xip.pcf bin/Murax_iCE40_hx8k_breakout_board_xip.blif
arachne-pnr -p Murax_iCE40_hx8k_breakout_board_xip.pcf -d 8k --max-passes 600 -P ct256 bin/Murax_iCE40_hx8k_breakout_board_xip.blif -o bin/Murax_iCE40_hx8k_breakout_board_xip.asc
2018-09-18 10:53:26 -04:00
bin/Murax_iCE40_hx8k_breakout_board_xip.bin : bin/Murax_iCE40_hx8k_breakout_board_xip.asc
icepack bin/Murax_iCE40_hx8k_breakout_board_xip.asc bin/Murax_iCE40_hx8k_breakout_board_xip.bin
2018-09-18 10:53:26 -04:00
compile : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
2018-09-18 10:53:26 -04:00
time: bin/Murax_iCE40_hx8k_breakout_board_xip.bin
icetime -tmd hx8k bin/Murax_iCE40_hx8k_breakout_board_xip.asc
2018-09-18 10:53:26 -04:00
prog : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
iceprog -S bin/Murax_iCE40_hx8k_breakout_board_xip.bin
2018-09-18 10:53:26 -04:00
sudo-prog : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
sudo iceprog -S bin/Murax_iCE40_hx8k_breakout_board_xip.bin
2018-09-18 10:53:26 -04:00
clean :
rm -rf bin
rm -f Murax_iCE40_hx8k_breakout_board_xip.v*.bin