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:
parent
b6c8cc7125
commit
a49b78b3c3
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user