Merge pull request #302 from YosysHQ/aki/rm_arachne

Replaced instances of `arachne-pnr` with the `nextpnr-ice40`  equivalent
This commit is contained in:
myrtle 2022-09-15 12:37:29 +02:00 committed by GitHub
commit a545498d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 95 additions and 101 deletions

View File

@ -1,4 +1,5 @@
example.bin
example.blif
example.asc
example.rpt
*
!.gitignore
!example.v
!hx8kboard.pcf
!Makefile

View File

@ -1,14 +1,15 @@
PROJ = example
PIN_DEF = hx8kboard.pcf
DEVICE = hx8k
PACKAGE = ct256
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@ -24,7 +25,7 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,4 +1,6 @@
example.bin
example.blif
example.asc
example.rpt
*
!.gitignore
!example.v
!iceblink.pcf
!Makefile
!README

View File

@ -1,14 +1,15 @@
PROJ = example
PIN_DEF = iceblink.pcf
DEVICE = hx1k
PACKAGE = vq100
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ -P vq100
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@ -24,6 +25,6 @@ sudo-prog: $(PROJ).bin
iCEburn.py -e -v -w $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.PHONY: all prog clean

View File

@ -1,4 +1,6 @@
example.asc
example.bin
example.blif
example.rpt
*
!.gitignore
!example.v
!icebreaker.pcf
!Makefile
!README

View File

@ -2,14 +2,15 @@ PROJ = example
PIN_DEF = icebreaker.pcf
DEVICE = up5k
PACKAGE = sg48
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@ -23,8 +24,8 @@ all: $(PROJ).rpt $(PROJ).bin
%_tb.vcd: %_tb
vvp -N $< +vcd=$@
%_syn.v: %.blif
yosys -p 'read_blif -wideports $^; write_verilog $@'
%_syn.v: %.json
yosys -p 'read_json $^; write_verilog $@'
%_syntb: %_tb.v %_syn.v
iverilog -o $@ $^ `yosys-config --datdir/ice40/cells_sim.v`
@ -40,7 +41,7 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,4 +1,6 @@
/app?.asc
/app?.bin
/app?.blif
/config.bin
*
!.gitignore
!app?.v
!icestick.pcf
!Makefile
!README

View File

@ -9,12 +9,12 @@ config.bin: app0.bin app1.bin app2.bin app3.bin
icemulti -v -A16 -p0 -o config.bin app0.bin app1.bin app2.bin app3.bin
app%.bin: app%.v icestick.pcf
yosys -p "synth_ice40 -top top -blif $(basename $<).blif" $<
arachne-pnr -o $(basename $<).asc -d 1k -P tq144 -p icestick.pcf $(basename $<).blif
yosys -p "synth_ice40 -top top -json $(basename $<).json" $<
nextpnr-ice40 --hx1k --package tq144 --asc $(basename $<).asc --pcf icestick.pcf --json $(basename $<).json
icetime -d hx1k -c 25 $(basename $<).asc
icepack $(basename $<).asc $(basename $<).bin
clean:
rm -f app?.asc app?.bin app?.blif config.bin
rm -f app?.asc app?.bin app?.json config.bin
.PHONY: prog sudo-prog clean

View File

@ -1,22 +1,9 @@
example.bin
example.blif
example.asc
example.rpt
rs232demo.bin
rs232demo.blif
rs232demo.asc
rs232demo.rpt
rs232demo_tb
rs232demo_tb.vcd
rs232demo_syn.v
rs232demo_syntb
rs232demo_syntb.vcd
checker.bin
checker.blif
checker.asc
checker.rpt
checker_tb
checker_tb.vcd
checker_syn.v
checker_syntb
checker_syntb.vcd
*
!.gitignore
!checker_tb.v
!checker.v
!example.v
!icestick.pcf
!Makefile
!rs232demo_tb.v
!rs232demo.v

View File

@ -4,14 +4,15 @@ PROJ = example
PIN_DEF = icestick.pcf
DEVICE = hx1k
PACKAGE = tq144
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@ -25,8 +26,8 @@ all: $(PROJ).rpt $(PROJ).bin
%_tb.vcd: %_tb
vvp -N $< +vcd=$@
%_syn.v: %.blif
yosys -p 'read_blif -wideports $^; write_verilog $@'
%_syn.v: %.json
yosys -p 'read_json $^; write_verilog $@'
%_syntb: %_tb.v %_syn.v
iverilog -o $@ $^ `yosys-config --datdir/ice40/cells_sim.v`
@ -46,7 +47,7 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,4 +1,5 @@
example.bin
example.blif
example.asc
example.rpt
*
!.gitignore
!example.v
!icezum.pcf
!Makefile

View File

@ -1,14 +1,15 @@
PROJ = example
PIN_DEF = icezum.pcf
DEVICE = hx1k
PACKAGE = tq144
all: $(PROJ).rpt $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@ -24,7 +25,7 @@ sudo-prog: $(PROJ).bin
sudo iceprog $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,12 +1,6 @@
*.bin
*.blif
*.asc
*.rpt
*.glb
*.psb
*.sdf
*.vsb
*.bin
*.tmp/
*.exp
*.vlog
*
!.gitignore
!Makefile*
!README
!rgb*.pcf
!rgb.v

View File

@ -1,20 +1,19 @@
PROJ = rgb
PIN_DEF = rgb.pcf
DEVICE = up5k
PACKAGE = sg48
ARACHNE = arachne-pnr
ARACHNE_ARGS =
ICEPACK = icepack
ICETIME = icetime
ICEPROG = iceprog
all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.json: %.v
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
$(ARACHNE) $(ARACHNE_ARGS) -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
$(ICEPACK) $< $@
@ -30,7 +29,7 @@ sudo-prog: $(PROJ).bin
sudo $(ICEPROG) -S $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

View File

@ -1,9 +1,9 @@
PROJ = rgb
PIN_DEF = rgb_uwg30.pcf
DEVICE = up5k
PACKAGE = uwg30
ARACHNE = arachne-pnr
ARACHNE_ARGS =
ICEPACK = icepack
ICETIME = icetime
ICEPROG = iceprog
@ -11,10 +11,10 @@ ICEPROG = iceprog
all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
yosys -p 'synth_ice40 -top top -json $@' $<
%.asc: $(PIN_DEF) %.blif
$(ARACHNE) $(ARACHNE_ARGS) -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^ -P uwg30
%.asc: $(PIN_DEF) %.json
nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
$(ICEPACK) $< $@
@ -30,7 +30,7 @@ sudo-prog: $(PROJ).bin
sudo $(ICEPROG) -S $<
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.SECONDARY:
.PHONY: all prog clean

1
icebram/.gitignore vendored
View File

@ -1,5 +1,6 @@
demo.asc
demo.blif
demo.json
demo.pcf
demo.v
demo.vvp

View File

@ -2,8 +2,8 @@
set -ex
python3 makedemo.py
yosys -p 'synth_ice40 -blif demo.blif' demo.v
arachne-pnr -d 8k -w demo.pcf -o demo.asc demo.blif
yosys -p 'synth_ice40 -json demo.json' demo.v
nextpnr-ice40 --hx8k --package bg121 --pcf-allow-unconstrained --asc demo.asc --json demo.json
./icebram -v demo_dat0.hex demo_dat1.hex < demo.asc > demo_new.asc