If(test_type("DMA_ACTIVATE_D2H"),
dma_activate.eq(1),
NextState("WAIT_WRITE_REG_D2H")
- ).Else(
- NextState("IDLE") # Generate an error
)
)
)
If(transport.source.stb,
If(test_type("REG_D2H"),
NextState("PRESENT_WRITE_RESPONSE")
- ).Else(
- NextState("IDLE") # Generate an error
)
)
)
transport.source.ack.eq(0),
If(test_type("DATA"),
NextState("PRESENT_READ_DATA")
- ).Else(
- NextState("IDLE") # Generate an error
)
)
)
If(transport.source.stb,
If(test_type("REG_D2H"),
NextState("PRESENT_READ_RESPONSE")
- ).Else(
- NextState("IDLE") # Generate an error
)
)
)