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 2f77fc1 commit 6f2f53f
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,8 @@ async def test_project(dut):
dut.uio_in.value = 1

await ClockCycles(dut.clk, 4)
#######################################
# finish of the operands storing, check read data ready== 1
assert dut.uio_out.value == 8
#######################################
# set data valid = 0
dut.uio_in.value = 0

Expand All @@ -89,7 +87,27 @@ async def test_project(dut):

# check if the input data is correctly written in the input buffer and if it can be read from the output buffer
assert dut.uo_out.value == 20

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

dut.ui_in.value = 0

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

await ClockCycles(dut.clk, 4)

dut.ui_in.value = 0

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

await ClockCycles(dut.clk, 4)

dut.ui_in.value = 0

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

0 comments on commit 6f2f53f

Please sign in to comment.