Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
add check for ps_outInterrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKarvandi committed May 3, 2024
1 parent f8bd267 commit 189edd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ async def DebuggerModuleTestingBRAM_test(dut):
clock_counter = 0
interrupt_not_delivered = False

while dut.io_psOutInterrupt != 1:
while str(dut.io_psOutInterrupt) != "1":

# print("State of interrupt: '" + str(dut.io_psOutInterrupt)+ "'")

if clock_counter % 10 == 0:
print("Number of clock cycles spent in debuggee (PL): " + str(clock_counter))
Expand Down Expand Up @@ -382,6 +384,8 @@ async def DebuggerModuleTestingBRAM_test(dut):
print_bram_content(dut)

#
# Check the final input on the next clock
# Check the final input on the next clock and run the circuit for a couple
# of more clock cycles
#
await RisingEdge(dut.clock)
for _ in range(10):
await RisingEdge(dut.clock)
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ class DebuggerPacketInterpreter(
// Configuration was done, send the response (result)
//
state := sSendResponse

}

}.otherwise {
Expand Down

0 comments on commit 189edd2

Please sign in to comment.