Closed MohamedGhardallou closed 2 years ago
It seems that the embedded cobegin
with two strong branches in state == 0
is not preempted by the when reset
.
I will consult @FriedrichGretz
@MohamedGhardallou thank you very much for the bug report. We had a bug which however did not manifest itself on simpler test programs. The issue should be solved now. You can simply rebuild your Blech compiler from this repo. I hope we will soon publish a release that includes this fix but that may take some more days... ;-)
@FriedrichGretz The bug is fixed. Thanks :)
Hello,
Describe the bug consider the following stripped code
To Reproduce
compile this code set the input stop_btn to false execute 10 cycles set the input stop_btn to true execute 1 cycle set the input stop_btn to false execute x cycles
you could use this code c to test this behaviour:
Expected behaviour bug_led should always remain false.
The when/reset construct has been used here to implement a simple state machine