Skip to content

Commit

Permalink
feat: signal stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth-0 committed Nov 5, 2024
1 parent 692cc06 commit 649742b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ async def test_comprehensive_functionality(dut):
# Wait for the settings to propagate
await ClockCycles(dut.clk, 100)

# Wait until uo_out is resolved to a valid value
await RisingEdge(dut.clk)
while 'x' in str(dut.uo_out.value.binstr) or 'z' in str(dut.uo_out.value.binstr):
await RisingEdge(dut.clk)

# Check if ADSR parameters are affecting the amplitude modulation
adsr_value = int(dut.uo_out.value) >> 3 # Extract bits [7:3] of uo_out
assert adsr_value != 0, "Expected ADSR modulation on uo_out[7:3]"
Expand Down

0 comments on commit 649742b

Please sign in to comment.