1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Add width asserts

This commit is contained in:
Alex Forencich 2018-11-10 18:23:31 -08:00
parent b6c8cc7125
commit a49b78b3c3

View File

@ -131,6 +131,7 @@ class XGMIISource(object):
self.has_logic = True
assert len(txd) in [32, 64]
assert len(txd) == len(txc)*8
bw = int(len(txd)/8)
@ -255,6 +256,7 @@ class XGMIISink(object):
self.has_logic = True
assert len(rxd) in [32, 64]
assert len(rxd) == len(rxc)*8
bw = int(len(rxd)/8)