more asserts

Signed-off-by: zhongzc <zhongzc_arch@outlook.com>
This commit is contained in:
zhongzc 2020-11-17 12:11:40 +08:00
parent 464d3943cb
commit 7dfcd9bde8
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@ def indent(string: str) -> str:
def auto_connect(ma, mb):
from pyhcl import IO
assert hasattr(ma, "value") and hasattr(mb, "value")
assert type(ma.value) == IO and type(mb.value) == IO
for (key_left, value_left) in ma.value._ios.items():
for (key_right, value_right) in mb.value._ios.items():
from pyhcl import Input, Output