|
@ -3,10 +3,10 @@ WORK_FILES := ../rtl/blink.vhd |
|
|
GM_FILES := ../../lib/components.vhd |
|
|
GM_FILES := ../../lib/components.vhd |
|
|
GHDL_FLAGS := --std=08 --workdir=build -Pbuild |
|
|
GHDL_FLAGS := --std=08 --workdir=build -Pbuild |
|
|
YOSYSPIPE := -nomx8 -luttree -retime |
|
|
YOSYSPIPE := -nomx8 -luttree -retime |
|
|
PNRFLAGS := -sp off -om 3 -cdf off -pin off -plc off -cCP on |
|
|
|
|
|
|
|
|
PNRFLAGS := -sp off -om 2 -cCP on |
|
|
PNRTOOL := $(shell which p_r) |
|
|
PNRTOOL := $(shell which p_r) |
|
|
|
|
|
|
|
|
.PHONY: all syn imp |
|
|
|
|
|
|
|
|
.PHONY: all syn imp prog |
|
|
|
|
|
|
|
|
all: imp |
|
|
all: imp |
|
|
syn: ${DESIGN_NAME}.v |
|
|
syn: ${DESIGN_NAME}.v |
|
@ -29,6 +29,9 @@ ${DESIGN_NAME}.bit: ${DESIGN_NAME}.v ${DESIGN_NAME}.ccf |
|
|
2>&1 | tee p_r-report.txt && \
|
|
|
2>&1 | tee p_r-report.txt && \
|
|
|
mv ${DESIGN_NAME}*.bit ../$@ |
|
|
mv ${DESIGN_NAME}*.bit ../$@ |
|
|
|
|
|
|
|
|
|
|
|
prog: ${DESIGN_NAME}.bit |
|
|
|
|
|
openFPGALoader -b gatemate_evb_jtag $< |
|
|
|
|
|
|
|
|
clean : |
|
|
clean : |
|
|
echo "# Cleaning files" |
|
|
echo "# Cleaning files" |
|
|
rm -rf build ${DESIGN_NAME}.v ${DESIGN_NAME}.bit |
|
|
rm -rf build ${DESIGN_NAME}.v ${DESIGN_NAME}.bit |