Closed benreynwar closed 4 years ago
Hello, error tells that the statement was discovered twice while analysing the parent statement, this can happen if there are two references on same objects.
However from just brief look I do not see such a thing there so it really looks as some kind of bug.
Maybe the constant value one
is somehow wrongly interpreted and this results in to this.
I will look in to it probably tomorrow.
The problem was actually optimiser of the statements which did not understand why the sub-statements are driving same signal and why it was not possible to merge such a statements to a one. Fixed in c1f3506a6a20f073db0a9e63f176ff5d63d66436, tested in https://github.com/Nic30/hwtLib/blob/master/hwtLib/examples/statements/constCondition.py
I'm getting the error
when running the following code: