Add Nexus support
This commit is contained in:
parent
8742a10a3d
commit
bac8900e3d
3 changed files with 95 additions and 6 deletions
20
Makefile
20
Makefile
|
@ -2,21 +2,31 @@ buildpath = build/
|
|||
filename = uart_test
|
||||
files = top.v
|
||||
pcf_file = io.pcf
|
||||
pdc_file = io.pdc
|
||||
|
||||
.PHONY: build prog prog_flash clean
|
||||
|
||||
build:
|
||||
#yosys -p "synth_ice40 -blif $(buildpath)$(filename).blif -top top" $(files)
|
||||
#arachne-pnr -r -d 5k -P sg48 -p $(pcf_file) $(buildpath)$(filename).blif -o $(buildpath)$(filename).asc
|
||||
build_ice40:
|
||||
yosys -p "synth_ice40 -json $(buildpath)$(filename).json -top top" $(files)
|
||||
nextpnr-ice40 --up5k --json $(buildpath)$(filename).json --pcf $(pcf_file) --asc $(buildpath)$(filename).asc
|
||||
icepack $(buildpath)$(filename).asc $(buildpath)$(filename).bin
|
||||
|
||||
prog: build #for sram
|
||||
prog_ice40: build #for sram
|
||||
iceprog -S $(buildpath)$(filename).bin
|
||||
|
||||
prog_flash: build
|
||||
prog_flash_ice40: build
|
||||
iceprog $(buildpath)$(filename).bin
|
||||
|
||||
build_nx:
|
||||
yosys -p "synth_nexus -json $(buildpath)$(filename).json -top top" $(files)
|
||||
nextpnr-nexus --device LIFCL-40-9BG400 --pdc $(pdc_file) --json $(buildpath)$(filename).json --fasm $(buildpath)$(filename).fasm
|
||||
prjoxide pack $(buildpath)$(filename).fasm $(buildpath)$(filename).bit
|
||||
|
||||
prog_nx: #for sram
|
||||
ecpprog -S $(buildpath)$(filename).bit
|
||||
|
||||
prog_flash_nx:
|
||||
ecpprog $(buildpath)$(filename).bit
|
||||
|
||||
clean:
|
||||
rm -rf $(buildpath)/*
|
Loading…
Add table
Add a link
Reference in a new issue