diff options
author | Matt Ettus <matt@ettus.com> | 2010-06-11 17:23:34 -0700 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-06-11 17:23:34 -0700 |
commit | 1935f2a4ed0d0abc90bb3fe7fed745ff84ab6d7c (patch) | |
tree | 10765e4419d36c148b1a6b2304bf7c8aac9fe894 /usrp2/top | |
parent | 45e5589ed9c555c604fb66be9f314c02ff5fb9e4 (diff) | |
download | uhd-1935f2a4ed0d0abc90bb3fe7fed745ff84ab6d7c.tar.gz uhd-1935f2a4ed0d0abc90bb3fe7fed745ff84ab6d7c.tar.bz2 uhd-1935f2a4ed0d0abc90bb3fe7fed745ff84ab6d7c.zip |
produces good bin files
Diffstat (limited to 'usrp2/top')
-rw-r--r-- | usrp2/top/Makefile.common | 39 | ||||
-rw-r--r-- | usrp2/top/tcl/ise_helper.tcl | 17 | ||||
-rw-r--r-- | usrp2/top/u2_rev3/Makefile | 16 | ||||
-rw-r--r-- | usrp2/top/u2_rev3/Makefile.udp | 16 |
4 files changed, 31 insertions, 57 deletions
diff --git a/usrp2/top/Makefile.common b/usrp2/top/Makefile.common index 25c48d31a..02b1b9529 100644 --- a/usrp2/top/Makefile.common +++ b/usrp2/top/Makefile.common @@ -6,15 +6,10 @@ # Constants ################################################## BASE_DIR = $(abspath ..) -ISE_HELPER = xtclsh /home/matt/sourcerepo/mobfleet/system_board/fpga/scripts/ise_helper.tcl -#ISE_HELPER = xtclsh $(BASE_DIR)/tcl/ise_helper.tcl +ISE_HELPER = xtclsh $(BASE_DIR)/tcl/ise_helper.tcl ISE_FILE = $(BUILD_DIR)/$(TOP_MODULE).ise -BIN_FILE = $(BUILD_DIR)/$(TOP_MODULE).bit -MAKE_ACE = $(BUILD_DIR)/make_ace.cmd -ACE_FILE = $(BUILD_DIR)/xilinx.sys +BIN_FILE = $(BUILD_DIR)/$(TOP_MODULE).bin MCS_FILE = $(BUILD_DIR)/$(TOP_MODULE).mcs -IMPACT_CMD = $(BUILD_DIR)/impact.cmd -IMPACT_CDF = $(BUILD_DIR)/impact.cdf ################################################## # Global Targets @@ -31,18 +26,12 @@ synth: $(ISE_FILE) bin: $(BIN_FILE) -ace: $(ACE_FILE) - mcs: $(MCS_FILE) clean: $(RM) -r $(BUILD_DIR) -XIL_IMPACT_USE_LIBUSB=1 -jtag-install: $(IMPACT_CMD) - impact -batch $< - -.PHONY: all proj check synth bin ace mcs clean jtag-install +.PHONY: all proj check synth bin mcs clean ################################################## # Dependency Targets @@ -56,29 +45,7 @@ $(BIN_FILE): $(ISE_FILE) $(ISE_HELPER) "Generate Programming File" touch $@ -$(MAKE_ACE): $(BASE_DIR)/scripts/make_ace.cmd.in - sed \ - -e 's|@BUILD_DIR[@]|$(BUILD_DIR)|g' \ - -e 's|@TOP_MODULE[@]|$(TOP_MODULE)|g' \ - -e 's|@BIN_FILE[@]|$(BIN_FILE)|g' \ - $< > $@ - -$(ACE_FILE): $(BIN_FILE) $(MAKE_ACE) - @echo $@ - impact -batch $(MAKE_ACE) - $(MCS_FILE): $(BIN_FILE) promgen -w -spi -p mcs -o $(MCS_FILE) -s 4096 -u 0 $(BIN_FILE) -$(IMPACT_CDF): $(BASE_DIR)/scripts/impact.cdf.in - sed \ - -e 's|@BIN_FILE[@]|$(BIN_FILE)|g' \ - $< > $@ - -$(IMPACT_CMD): $(BASE_DIR)/scripts/impact.cmd.in $(IMPACT_CDF) - sed \ - -e 's|@PART_NAME[@]|xc5vsx50t|g' \ - -e 's|@CDF_FILE[@]|$(IMPACT_CDF)|g' \ - $< > $@ - .EXPORT_ALL_VARIABLES: diff --git a/usrp2/top/tcl/ise_helper.tcl b/usrp2/top/tcl/ise_helper.tcl index fe9db87af..a4bee76b8 100644 --- a/usrp2/top/tcl/ise_helper.tcl +++ b/usrp2/top/tcl/ise_helper.tcl @@ -40,12 +40,12 @@ proc set_props {process options} { } } -if [file isfile $env(PROJ_FILE)] { - puts ">>> Opening project: $env(PROJ_FILE)" - project open $env(PROJ_FILE) +if [file isfile $env(ISE_FILE)] { + puts ">>> Opening project: $env(ISE_FILE)" + project open $env(ISE_FILE) } else { - puts ">>> Creating project: $env(PROJ_FILE)" - project new $env(PROJ_FILE) + puts ">>> Creating project: $env(ISE_FILE)" + project new $env(ISE_FILE) ################################################## # Set the project properties @@ -56,7 +56,6 @@ if [file isfile $env(PROJ_FILE)] { # Add the sources ################################################## foreach source $env(SOURCES) { - set source $env(SOURCE_ROOT)$source puts ">>> Adding source to project: $source" xfile add $source } @@ -78,9 +77,9 @@ if [file isfile $env(PROJ_FILE)] { set_props "Generate Post-Place & Route Simulation Model" $env(SIM_MODEL_PROPERTIES) } -if [string compare $env(PROCESS_RUN) ""] { - puts ">>> Running Process: $env(PROCESS_RUN)" - process run $env(PROCESS_RUN) +if [string compare [lindex $argv 0] ""] { + puts ">>> Running Process: [lindex $argv 0]" + process run [lindex $argv 0] } project close diff --git a/usrp2/top/u2_rev3/Makefile b/usrp2/top/u2_rev3/Makefile index 86e5bf979..68c296b9b 100644 --- a/usrp2/top/u2_rev3/Makefile +++ b/usrp2/top/u2_rev3/Makefile @@ -2,6 +2,16 @@ # Copyright 2008 Ettus Research LLC # +################################################## +# Project Setup +################################################## +TOP_MODULE = u2_rev3 +BUILD_DIR = $(abspath build$(ISE)) + +################################################## +# Include other makefiles +################################################## + include ../Makefile.common include ../../fifo/Makefile.srcs include ../../control_lib/Makefile.srcs @@ -16,12 +26,6 @@ include ../../coregen/Makefile.srcs include ../../extram/Makefile.srcs ################################################## -# Project Setup -################################################## -TOP_MODULE = u2_rev3 -BUILD_DIR = $(abspath build$(ISE)) - -################################################## # Project Properties ################################################## PROJECT_PROPERTIES = \ diff --git a/usrp2/top/u2_rev3/Makefile.udp b/usrp2/top/u2_rev3/Makefile.udp index 90a5d88be..9962887d4 100644 --- a/usrp2/top/u2_rev3/Makefile.udp +++ b/usrp2/top/u2_rev3/Makefile.udp @@ -2,6 +2,16 @@ # Copyright 2008 Ettus Research LLC # +################################################## +# Project Setup +################################################## +TOP_MODULE = u2_rev3 +BUILD_DIR = $(abspath build-udp$(ISE)) + +################################################## +# Include other makefiles +################################################## + include ../Makefile.common include ../../fifo/Makefile.srcs include ../../control_lib/Makefile.srcs @@ -16,12 +26,6 @@ include ../../coregen/Makefile.srcs include ../../extram/Makefile.srcs ################################################## -# Project Setup -################################################## -TOP_MODULE = u2_rev3 -BUILD_DIR = $(abspath build-udp$(ISE)) - -################################################## # Project Properties ################################################## PROJECT_PROPERTIES = \ |