>>> Magnum BBS <<<
Safe State Machine with Conditional Statements in default clause.
on Fri May 31 18:31:06 2019
Can you make a finite state machine with a default clause that has a conditional statement inside? This would be for synthesizing a "safe case" state machine with Synplify Pro.
if (a == 1'b1) begin
next_state <= IDLE;
else if (b == 1'b1) begin
next_state <= READ;
next_state <= ERROR;
I have never actually done this before before and have only seen simple "default" with only a single state assignment.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Huddersfield, West Yorkshire, UK