aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/top/python
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2021-11-30 14:50:14 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-12-08 12:08:29 -0800
commit8fd2aa80ab7609cc16e5922149c8ec453153c7c8 (patch)
tree7273e611fd8cd7adcb79280fd0c65470372c0ccd /fpga/usrp2/top/python
parent38c2a19e04c6e0467a6cc79977ab51a030f9735d (diff)
downloaduhd-8fd2aa80ab7609cc16e5922149c8ec453153c7c8.tar.gz
uhd-8fd2aa80ab7609cc16e5922149c8ec453153c7c8.tar.bz2
uhd-8fd2aa80ab7609cc16e5922149c8ec453153c7c8.zip
fpga: usrp2: update build tools to use python3
Diffstat (limited to 'fpga/usrp2/top/python')
-rwxr-xr-xfpga/usrp2/top/python/check_inout.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpga/usrp2/top/python/check_inout.py b/fpga/usrp2/top/python/check_inout.py
index ff371d378..49330344b 100755
--- a/fpga/usrp2/top/python/check_inout.py
+++ b/fpga/usrp2/top/python/check_inout.py
@@ -23,8 +23,8 @@ import sys
import re
if __name__=='__main__':
- if len(sys.argv) == 2:
- print "Usage: %s <top level Verilog file> <pin definition UCF>"
+ if len(sys.argv) != 3:
+ print("Usage: {} <top level Verilog file> <pin definition UCF>".format(sys.argv[0]))
sys.exit(-1)
verilog_filename = sys.argv[1]
@@ -52,11 +52,11 @@ if __name__=='__main__':
for item in verilog_iolist:
if item not in ucf_iolist:
- print "Error: %s appears in the top-level Verilog file, but is not in the UCF definition file!" % item
+ print("Error: {} appears in the top-level Verilog file, but is not in the UCF definition file!".format(item))
err = True
if err:
sys.exit(-1)
- print "No errors found."
+ print("No errors found.")
sys.exit(0)