Compare commits
No commits in common. "e7087eb7db830fd9d1029dd71169ccaae04c7260" and "63557ba83fddeaf7b210c85532df248447da873e" have entirely different histories.
e7087eb7db
...
63557ba83f
2 changed files with 3 additions and 17 deletions
6
Makefile
6
Makefile
|
@ -1,8 +1,8 @@
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
SYNTH_TOOLCHAIN ?= nextpnr
|
SYNTH_TOOLCHAIN ?= symbiflow
|
||||||
|
|
||||||
WORKDIR = work
|
WORKDIR = $(PWD)/work
|
||||||
GHDL_WORKDIR = $(WORKDIR)/ghdl
|
GHDL_WORKDIR = $(WORKDIR)/ghdl
|
||||||
SYMBIYOSYS_WORKDIR = $(WORKDIR)/symbiyosys
|
SYMBIYOSYS_WORKDIR = $(WORKDIR)/symbiyosys
|
||||||
LITEX_WORKDIR = $(WORKDIR)/litex
|
LITEX_WORKDIR = $(WORKDIR)/litex
|
||||||
|
@ -30,7 +30,7 @@ GTKWAVE = gtkwave
|
||||||
|
|
||||||
# synthesis
|
# synthesis
|
||||||
|
|
||||||
XDC = arty_a7_35.xdc
|
XDC = $(PWD)/arty_a7_35.xdc
|
||||||
|
|
||||||
PART = xc7a35tcsg324-1
|
PART = xc7a35tcsg324-1
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
SYNTH_OUTPUT_FILE = $(SYNTH_WORKDIR)/$(YOSYS_MODULE_NAME).json
|
|
||||||
|
|
||||||
$(SYNTH_WORKDIR)/%.json: $(VHDL_FILES) $(VERILOG_FILES) | $(SYNTH_WORKDIR) $(GHDL_WORKDIR)/work-obj$(VHDL_STD).cf
|
|
||||||
$(GHDL) make $(GHDL_FLAGS) $(SYNTH_ENTITY)
|
|
||||||
$(YOSYS) -m $(GHDL_YOSYS_PLUGIN) -l $(SYNTH_WORKDIR)/yosys.log -p 'ghdl $(GHDL_FLAGS) $(SYNTH_ENTITY); read_verilog $(VERILOG_FILES); chformal -remove; synth_xilinx -nodsp -nosrl -flatten -top $*; write_json $@'
|
|
||||||
|
|
||||||
$(SYNTH_WORKDIR)/%.fasm: $(SYNTH_WORKDIR)/%.json $(XDC)
|
|
||||||
$(NEXTPNR) --xdc $(XDC) --json $< --chipdb /usr/share/nextpnr/xilinx-chipdb/$(PART).bin --fasm $@
|
|
||||||
|
|
||||||
$(SYNTH_WORKDIR)/%.frames: $(SYNTH_WORKDIR)/%.fasm
|
|
||||||
$(FASM2FRAMES) --db-root $(XRAY_DATABASE) --part $(PART) $< $@
|
|
||||||
|
|
||||||
$(SYNTH_WORKDIR)/%.bit: $(SYNTH_WORKDIR)/%.frames $(XRAY_DATABASE)/$(PART)/part.yaml
|
|
||||||
$(FRAMES2BIT) --part-file $(XRAY_DATABASE)/$(PART)/part.yaml --part-name $(PART) --frm-file $< --output-file $@
|
|
Loading…
Reference in a new issue