aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-03-19 17:18:01 -0700
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-03-22 09:25:45 -0700
commit4cd74bba2c010e4d714ec72fe11128069ea0495a (patch)
tree1b029844f3c6dd57156a05548031a0b453c64845 /python
parent53ed6979a964f3eaaabc0d97399eec9b4c3347f9 (diff)
downloadnextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.tar.gz
nextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.tar.bz2
nextpnr-4cd74bba2c010e4d714ec72fe11128069ea0495a.zip
Add getBelPinType to Python interface.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'python')
-rw-r--r--python/check_arch_api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/check_arch_api.py b/python/check_arch_api.py
index 166f1fd3..4c21d223 100644
--- a/python/check_arch_api.py
+++ b/python/check_arch_api.py
@@ -78,6 +78,10 @@ def check_arch_api(ctx):
wire_name = ctx.getBelPinWire(bel_pin_test['bel'], bel_pin_test['pin'])
assert bel_pin_test['wire'] == wire_name, (bel_pin_test['wire'], wire_name)
+ if 'type' in bel_pin_test:
+ pin_type = ctx.getBelPinType(bel_pin_test['bel'], bel_pin_test['pin'])
+ assert bel_pin_test['type'] == pin_type.name, (bel_pin_test['type'], pin_type)
+
bel_pins_tested += 1
print('Tested {} pips and {} bel pins'.format(pips_tested, bel_pins_tested))