mirror of
https://github.com/alexforencich/verilog-ethernet.git
synced 2025-01-14 06:43:18 +08:00
Add bus width checks
This commit is contained in:
parent
5afe1d7e1e
commit
7d7cba0838
@ -88,6 +88,8 @@ def GMIISource(clk, rst,
|
||||
fifo=None,
|
||||
name=None):
|
||||
|
||||
assert len(txd) == 8
|
||||
|
||||
@instance
|
||||
def logic():
|
||||
frame = None
|
||||
@ -141,6 +143,8 @@ def GMIISink(clk, rst,
|
||||
fifo=None,
|
||||
name=None):
|
||||
|
||||
assert len(rxd) == 8
|
||||
|
||||
@instance
|
||||
def logic():
|
||||
frame = None
|
||||
|
@ -109,6 +109,8 @@ def XGMIISource(clk, rst,
|
||||
fifo=None,
|
||||
name=None):
|
||||
|
||||
assert len(txd) == 64
|
||||
|
||||
@instance
|
||||
def logic():
|
||||
frame = None
|
||||
@ -210,6 +212,8 @@ def XGMIISink(clk, rst,
|
||||
fifo=None,
|
||||
name=None):
|
||||
|
||||
assert len(rxd) == 64
|
||||
|
||||
@instance
|
||||
def logic():
|
||||
frame = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user