Skip to content
Snippets Groups Projects
Verified Commit 4dbaec0a authored by Byron Lathi's avatar Byron Lathi
Browse files

Fail on tuser[0]

parent a8d24148
No related branches found
No related tags found
1 merge request!2Resolve "AXIS SAF"
Pipeline #732 passed
......@@ -205,4 +205,24 @@ async def test_data_full(dut):
# Even though we wrote another packet, the count should not have increased
# we can also assert on the data pointer
assert dut.dut.data_fifo_waddr == COUNT * LEN // 4
assert dut.dut.ctrl_fifo.u_fifo.waddr.value.integer == COUNT
\ No newline at end of file
assert dut.dut.ctrl_fifo.u_fifo.waddr.value.integer == COUNT
@cocotb.test()
async def test_tuser_bad(dut):
tb = TB(dut)
await tb.reset()
tb.axis_sink.pause = True
LEN = 256
await tb.axis_source.send(AxiStreamFrame(bytes([0xcc for _ in range(LEN)])))
await tb.axis_source.send(AxiStreamFrame(bytes([0xcc for _ in range(LEN)]), tuser=1))
await Timer(Decimal(MCLK_PERIOD_NS * 400), units="ns")
# Make sure we only have 1 packet
assert dut.dut.data_fifo_waddr == LEN // 4
assert dut.dut.ctrl_fifo.u_fifo.waddr.value.integer == 1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment