eth: Use shared counter for fractional part of pause quanta

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2025-04-26 20:02:35 -07:00
parent 3dc7e4821d
commit 8dc33f3a44
10 changed files with 75 additions and 47 deletions

View File

@@ -623,7 +623,7 @@ async def run_test_pfc(dut, ifg=12, enable_gen=None, mii_sel=True):
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
@@ -682,6 +682,8 @@ async def run_test_pfc(dut, ifg=12, enable_gen=None, mii_sel=True):
test_frame = GmiiFrame.from_payload(bytes(test_pkt))
await tb.gmii_source.send(test_frame)
dut.rx_pfc_ack.value = 0xff
for i in range(8):
for k in range(500):
await RisingEdge(dut.tx_clk)