| 12345678910111213141516171819202122232425262728 |
- diff --git a/tests/cocotb/test_prod2u_door_temp_uart_e2e.py b/tests/cocotb/test_prod2u_door_temp_uart_e2e.py
- index 0e4c13b..5a04a14 100644
- --- a/tests/cocotb/test_prod2u_door_temp_uart_e2e.py
- +++ b/tests/cocotb/test_prod2u_door_temp_uart_e2e.py
- @@ -6,7 +6,7 @@ wire boundary: bytes are serialized as 8N1 bits at 217 system clocks/bit.
-
- import cocotb
- from cocotb.clock import Clock
- -from cocotb.triggers import Event, ReadOnly, RisingEdge, SimTimeoutError, with_timeout
- +from cocotb.triggers import Event, NextTimeStep, ReadOnly, ReadWrite, RisingEdge, SimTimeoutError, with_timeout
-
-
- CLKS_PER_BIT = 217
- @@ -38,6 +38,7 @@ async def clocks(dut, count: int) -> None:
-
-
- async def send_uart_byte(dut, value: int) -> None:
- + await ReadWrite()
- dut.host_uart_rx.value = 0
- await clocks(dut, CLKS_PER_BIT)
- for bit in range(8):
- @@ -48,6 +49,7 @@ async def send_uart_byte(dut, value: int) -> None:
-
-
- async def send_frame(dut, packet: bytes) -> None:
- + await NextTimeStep()
- for value in packet:
- await send_uart_byte(dut, value)
|