Y
yiannis
Guest
Hi everybody!I am trying to write a synthesizable fsm but i have this
problem.The coding style i use,has two always blocks,one sequential and
one combinational.But there are some registers,which are calculated
only once or twice in the combinational block,and in the other cases i
want to keep the previous value (which is not standard,so i cannot load
this value in every case).But this thing,infers a latch in the
design.Can i do something to avoid the latch in the combinational
logic,but remember a value in a register?You can imagine the register
as a pointer,which is only incremented when an event happens,but in all
the other cases has to keep the same value.
Thanks in advance,
Yiannis
problem.The coding style i use,has two always blocks,one sequential and
one combinational.But there are some registers,which are calculated
only once or twice in the combinational block,and in the other cases i
want to keep the previous value (which is not standard,so i cannot load
this value in every case).But this thing,infers a latch in the
design.Can i do something to avoid the latch in the combinational
logic,but remember a value in a register?You can imagine the register
as a pointer,which is only incremented when an event happens,but in all
the other cases has to keep the same value.
Thanks in advance,
Yiannis