diff options
author | Aki Van Ness <aki@lethalbit.net> | 2022-09-15 06:32:45 -0400 |
---|---|---|
committer | Aki Van Ness <aki@lethalbit.net> | 2022-09-15 06:32:45 -0400 |
commit | ca43729f124466b816f922842353feeb3f6f8e84 (patch) | |
tree | dcb5191f0f33237ae561bfad064bd20fc397e728 /examples/icebreaker | |
parent | 2bc541743ada3542c6da36a50e66303b9cbd2059 (diff) | |
download | icestorm-ca43729f124466b816f922842353feeb3f6f8e84.tar.gz icestorm-ca43729f124466b816f922842353feeb3f6f8e84.tar.bz2 icestorm-ca43729f124466b816f922842353feeb3f6f8e84.zip |
Replaced instances of `arachne-pnr` with the `nextpnr-ice40` equivalent
Diffstat (limited to 'examples/icebreaker')
-rw-r--r-- | examples/icebreaker/.gitignore | 10 | ||||
-rw-r--r-- | examples/icebreaker/Makefile | 15 |
2 files changed, 14 insertions, 11 deletions
diff --git a/examples/icebreaker/.gitignore b/examples/icebreaker/.gitignore index 797fcc0..a435ac9 100644 --- a/examples/icebreaker/.gitignore +++ b/examples/icebreaker/.gitignore @@ -1,4 +1,6 @@ -example.asc -example.bin -example.blif -example.rpt +* +!.gitignore +!example.v +!icebreaker.pcf +!Makefile +!README diff --git a/examples/icebreaker/Makefile b/examples/icebreaker/Makefile index e91de63..db610ea 100644 --- a/examples/icebreaker/Makefile +++ b/examples/icebreaker/Makefile @@ -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 |