mirror of
https://github.com/fpganinja/taxi.git
synced 2025-12-09 17:08:38 -08:00
eth: Use shared counter for fractional part of pause quanta
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -451,7 +451,7 @@ async def run_test_pfc(dut, ifg=12, speed=1000e6):
|
||||
dut.tx_pfc_req.value = 0x00
|
||||
dut.tx_pfc_resend.value = 0
|
||||
dut.rx_pfc_en.value = 0xff
|
||||
dut.rx_pfc_ack.value = 0
|
||||
dut.rx_pfc_ack.value = 0x00
|
||||
|
||||
dut.tx_lfc_pause_en.value = 0
|
||||
dut.tx_pause_req.value = 0
|
||||
@@ -510,6 +510,8 @@ async def run_test_pfc(dut, ifg=12, speed=1000e6):
|
||||
test_frame = GmiiFrame.from_payload(bytes(test_pkt))
|
||||
await tb.mii_phy.rx.send(test_frame)
|
||||
|
||||
dut.rx_pfc_ack.value = 0xff
|
||||
|
||||
for i in range(8):
|
||||
for k in range(500):
|
||||
await RisingEdge(dut.tx_clk)
|
||||
|
||||
Reference in New Issue
Block a user