Add getBelPinType to Python interface.

Signed-off-by: Keith Rothman <[email protected]>
This commit is contained in:
Keith Rothman
2021-03-22 09:25:45 -07:00
parent 53ed6979a9
commit 4cd74bba2c
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -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))