Skip to content
Snippets Groups Projects
Commit 9f45ec4b authored by auphelia's avatar auphelia
Browse files

[HLSCustomOp] Fixed bug in control loop count in rtlsim

parent 4ccd92dd
No related branches found
No related tags found
No related merge requests found
......@@ -220,13 +220,14 @@ compilation transformations?
self.set_nodeattr("sim_cycles", observation_count)
output_observed = True
if no_change_count == 100 and old_outputs == outputs:
raise Exception(
"Error in simulation! Takes too long to produce output."
)
else:
no_change_count = 0
old_outputs = outputs
if no_change_count == 100:
if old_outputs == outputs:
raise Exception(
"Error in simulation! Takes too long to produce output."
)
else:
no_change_count = 0
old_outputs = outputs
return outputs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment