basic basic examples switched to nextpnr

This commit is contained in:
camrbuss
2021-01-09 15:30:30 -07:00
parent 201b354067
commit f99d790844
9 changed files with 67 additions and 18 deletions

View File

@@ -1,13 +1,27 @@
filename = top
pcf_file = ../../../common/io.pcf
ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:
icesprog $(filename).bin
@if [ -d '$(ICELINK_DIR)' ]; \
then \
cp $(filename).bin $(ICELINK_DIR); \
else \
echo "iCELink not found"; \
exit 1; \
fi
clean:
rm -rf $(filename).blif $(filename).asc $(filename).bin

View File

@@ -1,7 +1,7 @@
filename = hard_led
pcf_file = ../../../common/io.pcf
ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$9}')
ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
#prog: #for sram

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
prog_flash:

View File

@@ -5,8 +5,13 @@ ICELINK_DIR=$(shell df | grep iCELink | awk '{print $$6}')
${warning iCELink path: $(ICELINK_DIR)}
build:
yosys -p "synth_ice40 -blif $(filename).blif" $(filename).v
arachne-pnr -d 5k -P sg48 -p $(pcf_file) $(filename).blif -o $(filename).asc
yosys -p "synth_ice40 -json $(filename).json" $(filename).v
nextpnr-ice40 \
--up5k \
--package sg48 \
--json $(filename).json \
--pcf $(pcf_file) \
--asc $(filename).asc
icepack $(filename).asc $(filename).bin
#prog: #for sram