Skip to content
Permalink
Browse files

Some amendments for consistency among Makefiles

  • Loading branch information...
mrehkopf committed May 21, 2019
1 parent 0828bca commit bd0f454bd37c32295cd1d591b962893976138755
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = base
XILINX_PART = xc3s400-pq208-4

@@ -55,11 +54,11 @@ mk3: fpga_$(CORE).bi3
# build mk2 using SmartXPlorer (useful for cx4, gsu, sa1, sdd1)
mk2s: smartxplorer

smartxplorer: main.ngc
smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -sf currentProps.stratfile -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" -host_list hostlistfile.txt -max_runs 99 -best_n_runs 1 \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = gsu
XILINX_PART = xc3s400-pq208-4

@@ -59,7 +58,7 @@ smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = mini
XILINX_PART = xc3s400-pq208-4

@@ -59,7 +58,7 @@ smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = obc1
XILINX_PART = xc3s400-pq208-4

@@ -59,7 +58,7 @@ smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -sf currentProps.stratfile -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" -host_list hostlistfile.txt -max_runs 99 -best_n_runs 1 \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = sa1
XILINX_PART = xc3s400-pq208-4

@@ -59,7 +58,7 @@ smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -4,7 +4,6 @@ include ../common.mk
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
CORE = sdd1
XILINX_PART = xc3s400-pq208-4

@@ -59,7 +58,7 @@ smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \
@@ -1,19 +1,15 @@
include ../common.mk
# This is a rather primitive Makefile to facilitate (re)compilation of the FPGA
# core. It assumes that an initial project setup/compilation, particularly of
# any IP cores used, has taken place using the vendor's corresponding FPGA
# development environment.

# build on Windows
HOST = CYGWIN
CORE = test
XILINX_PART = xc3s400-pq208-4

# set paths to Xilinx/Intel tools, adjust these for your environment
mkpath = $(subst $(eval) ,:,$(wildcard $1))
XILINX_HOME = /cygdrive/d/Xilinx/14.7/ISE_DS
XILINX := $(XILINX_HOME)/ISE
XILINX_BIN = $(XILINX_HOME)/ISE/bin/nt64
XILINX_PATHS = ISE/bin/nt64 ISE/lib/nt64 PlanAhead/bin EDK/bin/nt64 EDK/lib/nt64
XILINX_EDK := $(XILINX_HOME)/EDK
XILINX_PLANAHEAD := $(XILINX_HOME)/PlanAhead
XILINX_DSP := $(XILINX_HOME)/ISE
@@ -33,8 +29,6 @@ XILINX_CT = $(shell grep Cost.*Map sd2snes_$(CORE).xise | sed -e 's/.*value="\([
XILINX_MAP_OPTS = -timing -logic_opt on -ol high -xe n -register_duplication on -cm area -ir off -pr b -power off
XILINX_PAR_OPTS = -ol high -xe n

INTEL_BIN = /cygdrive/d/intelFPGA_lite/18.1/quartus/bin64

VSRC = address.v clk_test.v dac.v dcm.v main.v mcu_cmd.v sd_dma.v spi.v
VHSRC =

@@ -60,11 +54,11 @@ mk3: fpga_$(CORE).bi3
# build mk2 using SmartXPlorer (useful for cx4, gsu, sa1, sdd1)
mk2s: smartxplorer

smartxplorer: main.ngc
smartxplorer: main.ngd
rm -rf smartxplorer_results
PATH="$(XILINX_PATH)":"$(PATH)"; \
export XILINX="$(XILINX)" XILINX_DSP="$(XILINX_DSP)" XILINX_EDK="$(XILINX_EDK)" XILINX_PLANAHEAD="$(XILINX_PLANAHEAD)"; \
smartxplorer -sf currentProps.stratfile -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" -host_list hostlistfile.txt -max_runs 99 -best_n_runs 1 \
$(XILINX_BIN)/smartxplorer -p $(XILINX_PART) -b -wd smartxplorer_results main.ngd -to "-v 3 -s 4 -n 3 -fastpaths -xml main.twx -ucf main.ucf" $(XPLORER_PARAMS) \
&& (while true; do \
touch $@; \
export SX_RUN=`grep "Run index" smartxplorer_results/smartxplorer.log | sed -e 's/^.*\:.*run\([0-9]\+\).*$$/\1/g'`; \

0 comments on commit bd0f454

Please sign in to comment.
You can’t perform that action at this time.