C
carlob
Guest
Hi all,
I've a problem to efficiently unregister output from FSM written in
single process style...
in FSM synch process (don't pay attention to syntax..):
case IDLE:
if (pippo = '1') then
next_state <= START;
if (pluto = '1') then
outp <= '0';
else
outp <= '1';
end if;
end if;
outp is registered...if I want to avoid that register I should (in anothe
process) duplicate a lot of logic:
if (state = IDLE) then
if (pippo = '1' and pluto = '1') then
outp <= '0'
elsif (pippo = '1' and pluto = '0') then
outp <= '1';
else outp <= 'Z' -- for example
end if;
end if;
Is it possible to unregister output without duplicating that logic (I
seems to me very poor coding...)...
I've read something about using variables...but I don't understand exactl
how...please show me an example...
Thanx for any help
Carlo
---------------------------------------
Posted through http://www.FPGARelated.com
I've a problem to efficiently unregister output from FSM written in
single process style...
in FSM synch process (don't pay attention to syntax..):
case IDLE:
if (pippo = '1') then
next_state <= START;
if (pluto = '1') then
outp <= '0';
else
outp <= '1';
end if;
end if;
outp is registered...if I want to avoid that register I should (in anothe
process) duplicate a lot of logic:
if (state = IDLE) then
if (pippo = '1' and pluto = '1') then
outp <= '0'
elsif (pippo = '1' and pluto = '0') then
outp <= '1';
else outp <= 'Z' -- for example
end if;
end if;
Is it possible to unregister output without duplicating that logic (I
seems to me very poor coding...)...
I've read something about using variables...but I don't understand exactl
how...please show me an example...
Thanx for any help
Carlo
---------------------------------------
Posted through http://www.FPGARelated.com