I have to FSM that interacts with each other. One of them sets a start signal and after doing something, the other FSM sets a done signal.
It is happening that at the moment the done signal should be asserted, the simulation hangs (no more clock ticks & it doesn't advance in time)
Specificaly, the problem is caused by the signal cam_poweron_done inside camera_ctrl module.
I'm attaching the original code which generates the error (I've removed the uncessesary lines so the code doesn't have any functional sense, but it still reproduce the error)