2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
VBASE = ../../..
|
|
|
|
VNAME = Murax_iCE40_hx8k_breakout_board_xip
|
|
|
|
VERILOG = ${VBASE}/${VNAME}.v
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
all: prog
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
${VERILOG} :
|
|
|
|
(cd ${VBASE}; sbt "runMain vexriscv.demo.${VNAME}")
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
generate : ${VERILOG}
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
${VERILOG}*.bin:
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2020-01-29 16:37:09 -05:00
|
|
|
bin/Murax_iCE40_hx8k_breakout_board_xip.blif : ${VERILOG} ${VERILOG}*.bin
|
2018-09-18 10:53:26 -04:00
|
|
|
mkdir -p bin
|
2018-09-26 18:55:30 -04:00
|
|
|
rm -f Murax_iCE40_hx8k_breakout_board_xip.v*.bin
|
2020-01-29 16:37:09 -05:00
|
|
|
cp ${VERILOG}*.bin . | true
|
2018-09-26 18:55:30 -04:00
|
|
|
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
|
|
|
|
2018-09-26 18:55:30 -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
|
|
|
|
2018-09-26 18:55:30 -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
|
|
|
|
2018-09-26 18:55:30 -04:00
|
|
|
compile : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2018-09-26 18:55:30 -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
|
|
|
|
2018-09-26 18:55:30 -04:00
|
|
|
prog : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
|
2020-01-29 16:37:09 -05:00
|
|
|
lsusb -d 0403:6010
|
2018-09-26 18:55:30 -04:00
|
|
|
iceprog -S bin/Murax_iCE40_hx8k_breakout_board_xip.bin
|
2018-09-18 10:53:26 -04:00
|
|
|
|
2018-09-26 18:55:30 -04:00
|
|
|
sudo-prog : bin/Murax_iCE40_hx8k_breakout_board_xip.bin
|
2020-01-29 16:37:09 -05:00
|
|
|
sudo lsusb -d 0403:6010
|
2018-09-26 18:55:30 -04:00
|
|
|
sudo iceprog -S bin/Murax_iCE40_hx8k_breakout_board_xip.bin
|
2018-09-18 10:53:26 -04:00
|
|
|
|
|
|
|
clean :
|
|
|
|
rm -rf bin
|
2018-09-26 18:55:30 -04:00
|
|
|
rm -f Murax_iCE40_hx8k_breakout_board_xip.v*.bin
|
2020-01-29 16:37:09 -05:00
|
|
|
rm -f ${VERILOG}*.bin
|
|
|
|
rm -f ${VERILOG}
|