Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support nextpnr instead of deprecated arachne-pnr #23

Open
jrincayc opened this issue Mar 20, 2020 · 2 comments
Open

support nextpnr instead of deprecated arachne-pnr #23

jrincayc opened this issue Mar 20, 2020 · 2 comments

Comments

@jrincayc
Copy link

As the arachne-pnr github says: Arachne-pnr is not maintained anymore; use nextpnr instead, which is a complete functional replacement with major improvements.

The commands to use nextpnr-ice40 with the icestorm_template are:

yosys -p 'synth_ice40 -top top -blif top.blif -json top.json' top.v
nextpnr-ice40 --lp8k --package cm81   --json top.json --asc  top.asc --pcf  pins.pcf
icetime -d lp8k -mtr top.rpt top.asc
icepack top.asc top.bin
tinyprog -p top.bin
@jrincayc
Copy link
Author

jrincayc commented Jul 6, 2020

Suggested makefile for blif and json:

top.blif top.json &: top.v
	yosys -p 'synth_ice40 -top top -blif top.blif -json top.json' top.v

top.asc : $(PIN_DEF) top.json
	nextpnr-ice40 --lp8k --package cm81   --json top.json --asc  top.asc --pcf  pins.pcf

@jrincayc
Copy link
Author

jrincayc commented Jul 6, 2020

As a pattern:

%.blif %.json : %.v
	yosys -p 'synth_ice40 -top top -blif $@ -json $*.json' $<

%.asc: $(PIN_DEF) %.blif %.json
	nextpnr-ice40 --$(DEVICE) --package cm81   --json $*.json --asc $@ --pcf  $(PIN_DEF)

jrincayc added a commit to jrincayc/TinyFPGA-BX that referenced this issue Jul 6, 2020
jrincayc added a commit to jrincayc/TinyFPGA-BX that referenced this issue Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant