Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
afasolino authored May 29, 2024
1 parent e680eff commit 05f48c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,27 @@ async def test_project(dut):

assert dut.uio_out.value == 8
assert dut.uo_out.value == 20
dut.ui_in.value = 4
dut.uio_in.value = 4
await ClockCycles(dut.clk, 4)

assert dut.uio_out.value == 0
dut.ui_in.value = 0
dut.uio_in.value = 0
await ClockCycles(dut.clk, 4)

assert dut.uio_out.value == 8
assert dut.uo_out.value == 0
dut.ui_in.value = 4
dut.uio_in.value = 4
await ClockCycles(dut.clk, 4)

dut.ui_in.value = 0
dut.uio_in.value = 0
await ClockCycles(dut.clk, 4)

assert dut.uo_out.value == 30
dut.ui_in.value = 4
dut.uio_in.value = 4
await ClockCycles(dut.clk, 4)

dut.ui_in.value = 0
dut.uio_in.value = 0
await ClockCycles(dut.clk, 4)

assert dut.uo_out.value == 0
dut.ui_in.value = 4
dut.uio_in.value = 4

0 comments on commit 05f48c9

Please sign in to comment.