therealpaulie
Newbie level 6
Hi all,
I have a questions related to the XST 737 Warning: Fount ?bit latch for signal ?? .. and so on.
Ok I know that this can be generated by incomplete case or if.
Now, could generate the following code also a latch?
case currentState is
when "01"
end case
(It is a FSM, where currentX is update every clock with nextX)
In my opinion, it should generate a latch because there is no other way to hold the old value.
Could you please recommend a better way to handle such a situation. Where I want to update some signals only in some states of the FSM and to hold the value in some others.
Thanks,
Paul
I have a questions related to the XST 737 Warning: Fount ?bit latch for signal ?? .. and so on.
Ok I know that this can be generated by incomplete case or if.
Now, could generate the following code also a latch?
case currentState is
when "00"
nextSignal1 <= currentSignal1;
nextState <= "01";
nextSignal1 <= currentSignal1;
nextState <= "10";
when "10"
nextSignal1 <= currentSignal1;
nextState <= "11";
when "11"
nextSignal1 <= "11";
nextState <= "10";
(It is a FSM, where currentX is update every clock with nextX)
In my opinion, it should generate a latch because there is no other way to hold the old value.
Could you please recommend a better way to handle such a situation. Where I want to update some signals only in some states of the FSM and to hold the value in some others.
Thanks,
Paul