From: Michael Nolan Date: Fri, 15 May 2020 18:25:17 +0000 (-0400) Subject: Fix broken test_ba X-Git-Tag: div_pipeline~1185 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d885325c67ba2c0b83d397b292cd13c63537dbf3;p=soc.git Fix broken test_ba --- diff --git a/src/soc/branch/test/test_pipe_caller.py b/src/soc/branch/test/test_pipe_caller.py index 4f68c56b..e55a3fbf 100644 --- a/src/soc/branch/test/test_pipe_caller.py +++ b/src/soc/branch/test/test_pipe_caller.py @@ -121,7 +121,7 @@ class TestRunner(FHDLTestCase): instructions = list(zip(gen, program.assembly.splitlines())) index = (simulator.pc.CIA.value - initial_cia)//4 - while index < len(instructions): + while index < len(instructions) and index >= 0: print(index) ins, code = instructions[index]