diff options
author | gatecat <gatecat@ds0.me> | 2021-03-22 18:31:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 18:31:48 +0000 |
commit | e8d36bf5bdda84503d5c796b933b1c986a277bf5 (patch) | |
tree | 18934e6784c4bb0b4a083389e86c78f45c8a2cb1 /python | |
parent | f6ae068cb205527d63d93e5b3581b85a22f90f34 (diff) | |
parent | 4cd74bba2c010e4d714ec72fe11128069ea0495a (diff) | |
download | nextpnr-e8d36bf5bdda84503d5c796b933b1c986a277bf5.tar.gz nextpnr-e8d36bf5bdda84503d5c796b933b1c986a277bf5.tar.bz2 nextpnr-e8d36bf5bdda84503d5c796b933b1c986a277bf5.zip |
Merge pull request #634 from litghost/add_get_bel_pin_type
Add getBelPinType to Python interface.
Diffstat (limited to 'python')
-rw-r--r-- | python/check_arch_api.py | 4 |
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)) |