mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-01-25 19:57:13 +00:00
Add getBelPinType to Python interface.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user