summaryrefslogtreecommitdiffstats
path: root/usrp2/top/Makefile.common
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-08-24 13:36:48 -0700
committerNick Foster <nick@nerdnetworks.org>2010-08-24 13:36:48 -0700
commitd0815967a27d01059230679e2d635377ac8c18b3 (patch)
treebc72ca5bc779bbe8a92396286894f1c08146750b /usrp2/top/Makefile.common
parente5c97b4a2cdccf0d87c585cf807945e4f58e58a7 (diff)
downloaduhd-d0815967a27d01059230679e2d635377ac8c18b3.tar.gz
uhd-d0815967a27d01059230679e2d635377ac8c18b3.tar.bz2
uhd-d0815967a27d01059230679e2d635377ac8c18b3.zip
Added a sanity checker Python script.
The script just looks for input/inout/outputs that are declared in the .v but not in the .ucf. If it finds an occurrence, it aborts the compile. Removed pin "POR" from u2plus.v due to the script. Also reverted an error I introduced to test the script, which I mistakenly committed earlier.
Diffstat (limited to 'usrp2/top/Makefile.common')
-rw-r--r--usrp2/top/Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/usrp2/top/Makefile.common b/usrp2/top/Makefile.common
index 2f6b5fde3..0e08b800e 100644
--- a/usrp2/top/Makefile.common
+++ b/usrp2/top/Makefile.common
@@ -13,6 +13,7 @@ else
endif
BASE_DIR = $(abspath ..)
ISE_HELPER = xtclsh $(BASE_DIR)/tcl/ise_helper.tcl
+SANITY_CHECKER = python $(BASE_DIR)/python/check_inout.py
ISE_FILE = $(BUILD_DIR)/$(TOP_MODULE).$(ISE_EXT)
BIN_FILE = $(BUILD_DIR)/$(TOP_MODULE).bin
BIT_FILE = $(BUILD_DIR)/$(TOP_MODULE).bit
@@ -26,12 +27,13 @@ all: bin
proj: $(ISE_FILE)
check: $(ISE_FILE)
+ $(SANITY_CHECKER) $(TOP_MODULE).v $(TOP_MODULE).ucf
$(ISE_HELPER) "Check Syntax"
synth: $(ISE_FILE)
$(ISE_HELPER) "Synthesize - XST"
-bin: $(BIN_FILE)
+bin: check $(BIN_FILE)
mcs: $(MCS_FILE)