You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5.2. Executing FSM_EXTRACT pass (extracting FSM from design).
Extracting FSM `\current_state' from module `\fsm_main_def'.
found $dff cell for state register: $procdff$36
root of input selection tree: $0\current_state[3:0]
found reset state: 4'0001 (guessed from mux tree)
found ctrl input: \reset
found 4 combined drivers for state signal \next_state.
fsm extraction failed: state selection tree is not closed.
However, if modify the assignment to:
case (1'b1)
current_state[S0]: begin
next_state = 4'b0010;
end
current_state[S1]: begin
next_state = 4'b0100;
end
current_state[S2]: begin
next_state = 4'b1000;
end
current_state[S3]: begin
next_state = 4'b0001;
end
default begin
next_state = 'b1;
end
endcase
Yosys will be able to detect the FSM.
The text was updated successfully, but these errors were encountered:
Version
Yosys 0.48+45 (git sha1 8acc77c, g++ 11.4.0-1ubuntu1~22.04 -fPIC -O3)
On which OS did this happen?
Linux
Reproduction Steps
The test.v:
With the following synthesis step:
Expected Behavior
It should be able to detect the FSM
Actual Behavior
However, if modify the assignment to:
Yosys will be able to detect the FSM.
The text was updated successfully, but these errors were encountered: