You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.3 KiB
32 lines
1.3 KiB
|
|
default: top.v inouts.pcf
|
|
yosys -q -p "synth_ice40 -blif i2c_kbd_detect.blif" top.v uart.v
|
|
arachne-pnr -d 1k -P tq144 -p inouts.pcf i2c_kbd_detect.blif -o i2c_kbd_detect.asc
|
|
# yosys -p "synth_ice40 -json i2_kbd_alt.json" top.v i2c_slave.v matrix_kbd.v ram.v simple_filter.v uart.v descriptors.v
|
|
# nextpnr-ice40 --hx1k --json i2_kbd_alt.json --pcf inouts.pcf --asc i2c_kbd_alt.asc
|
|
icebox_explain i2c_kbd_detect.asc > i2c_kbd_detect.ex
|
|
icepack i2c_kbd_detect.asc i2c_kbd_detect.bin
|
|
|
|
nextpnr: top.v inouts.pcf
|
|
# yosys -q -p "synth_ice40 -blif i2c_kbd_alt.blif" top.v i2c_slave.v matrix_kbd.v ram.v simple_filter.v uart.v descriptors.v
|
|
# arachne-pnr -p inouts.pcf i2c_kbd_alt.blif -o i2c_kbd_alt.asc
|
|
yosys -p "synth_ice40 -json i2c_kbd_detect.json" top.v uart.v
|
|
nextpnr-ice40 --hx1k --json i2c_kbd_detect.json --pcf inouts.pcf --asc i2c_kbd_detect.asc
|
|
icebox_explain i2c_kbd_detect.asc > i2c_kbd_detect.ex
|
|
icepack i2c_kbd_detect.asc i2c_kbd_detect.bin
|
|
|
|
burn:
|
|
iceprog -d i:0x0403:0x6010 i2c_kbd_detect.bin
|
|
|
|
burn0:
|
|
iceprog -d i:0x0403:0x6010:0 i2c_kbd_detect.bin
|
|
|
|
burn1:
|
|
iceprog -d i:0x0403:0x6010:1 i2c_kbd_detect.bin
|
|
|
|
clean:
|
|
rm -f i2c_kbd_detect.blif i2c_kbd_detect.asc i2c_kbd_detect.ex i2c_kbd_detect.bin i2c_kbd_detect.json
|
|
|
|
time:
|
|
icetime -tmd hx1k i2c_kbd_detect.asc
|