pcs: data_?x -> ?x_data
Rename signals to be properly heirarchal. Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
parent
bd42aab5d9
commit
5ac40dbea2
12
rtl/pcs.v
12
rtl/pcs.v
|
@ -52,9 +52,9 @@ module pcs (
|
|||
output col,
|
||||
|
||||
/* PMA */
|
||||
output pma_data_tx,
|
||||
input [1:0] pma_data_rx,
|
||||
input [1:0] pma_data_rx_valid,
|
||||
output pma_tx_data,
|
||||
input [1:0] pma_rx_data,
|
||||
input [1:0] pma_rx_data_valid,
|
||||
input link_status
|
||||
);
|
||||
|
||||
|
@ -66,7 +66,7 @@ module pcs (
|
|||
.enable(tx_en),
|
||||
.data(txd),
|
||||
.err(tx_er),
|
||||
.bits(pma_data_tx),
|
||||
.bits(pma_tx_data),
|
||||
.link_status(link_status),
|
||||
.tx(transmitting)
|
||||
);
|
||||
|
@ -77,8 +77,8 @@ module pcs (
|
|||
.valid(rx_dv),
|
||||
.data(rxd),
|
||||
.err(rx_er),
|
||||
.bits(pma_data_rx),
|
||||
.bits_valid(pma_data_rx_valid),
|
||||
.bits(pma_rx_data),
|
||||
.bits_valid(pma_rx_data_valid),
|
||||
.link_status(link_status),
|
||||
.rx(receiving)
|
||||
);
|
||||
|
|
|
@ -161,7 +161,7 @@ async def pcs_recv_packet(pcs):
|
|||
|
||||
async def read_bit():
|
||||
await RisingEdge(pcs.tx_clk)
|
||||
rx_bits.append(pcs.pma_data_tx.value)
|
||||
rx_bits.append(pcs.pma_tx_data.value)
|
||||
|
||||
async def read_code():
|
||||
for _ in range(5):
|
||||
|
@ -196,7 +196,7 @@ async def pcs_recv_packet(pcs):
|
|||
raise PrematureEndError()
|
||||
|
||||
async def pcs_send_codes(pcs, codes, valids):
|
||||
await send_recovered_bits(pcs.rx_clk, pcs.pma_data_rx, pcs.pma_data_rx_valid,
|
||||
await send_recovered_bits(pcs.rx_clk, pcs.pma_rx_data, pcs.pma_rx_data_valid,
|
||||
itertools.chain(*codes), valids)
|
||||
|
||||
@cocotb.test(timeout_time=10, timeout_unit='us')
|
||||
|
@ -225,8 +225,8 @@ async def test_tx(pcs):
|
|||
|
||||
@timeout(10, 'us')
|
||||
async def test_rx(pcs, valids):
|
||||
pcs.pma_data_rx.value = LogicArray('11')
|
||||
pcs.pma_data_rx_valid.value = 2
|
||||
pcs.pma_rx_data.value = LogicArray('11')
|
||||
pcs.pma_rx_data_valid.value = 2
|
||||
pcs.link_status.value = 1
|
||||
await Timer(1)
|
||||
await cocotb.start(Clock(pcs.rx_clk, 8, units='ns').start())
|
||||
|
|
Loading…
Reference in New Issue