Просмотр исходного кода

Fix cocotb manual clock units keyword.

Generated with Devin.
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Codex Resource Selftest 4 месяцев назад
Родитель
Сommit
df3f31a2f1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tests/cocotb/test_prod2u_door_temp_uart_e2e.py

+ 2 - 2
tests/cocotb/test_prod2u_door_temp_uart_e2e.py

@@ -104,11 +104,11 @@ async def wait_for_stage(awaitable, timeout_ms: int, stage: str, byte_index: int
 async def run_clock(dut, stop_event: Event) -> None:
     while not stop_event.is_set():
         dut.sys_clk.value = 0
-        await Timer(20, unit="ns")
+        await Timer(20, units="ns")
         if stop_event.is_set():
             break
         dut.sys_clk.value = 1
-        await Timer(20, unit="ns")
+        await Timer(20, units="ns")
 
 
 def stop_background_task(task, stop_event=None) -> None: