OpenCores
URL https://opencores.org/ocsvn/softavrcore/softavrcore/trunk

Subversion Repositories softavrcore

[/] [softavrcore/] [trunk/] [synth/] [Makefile] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 apal
SHELL=/bin/bash
2
 
3
SYNTH=yosys
4
PNR=nextpnr-ice40
5
PACK=icepack
6
 
7
DEVICE=hx8k
8
#PACKAGE=bg121
9
PACKAGE=ct256
10
 
11
.PHONY: all clean
12
 
13
TOP=top
14
 
15
all: $(TOP).bin
16
 
17
$(TOP).json: $(TOP).v
18
        $(SYNTH) -q -p 'synth_ice40 -top $(TOP) -json $(TOP).json' $(TOP).v
19
 
20
$(TOP).asc: $(TOP).json $(TOP).pcf
21
        $(PNR) --$(DEVICE) --package $(PACKAGE) --json $(TOP).json --pcf $(TOP).pcf --seed 1 --randomize-seed --asc $(TOP).asc
22
 
23
$(TOP).bin: $(TOP).asc
24
        $(PACK) $(TOP).asc $(TOP).bin
25
 
26
clean:
27
        rm -f $(TOP).bin $(TOP).asc $(TOP).json

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.