inconvenience latch

Joined
Jul 1, 2008
Messages
2
Reaction score
0
Hi guys, this is my first post
I´ve a problem, i´ve got this process
"process(aux,flag_acabou,reset,soc)
begin
count<=aux;
if (flag_acabou='1')then
saida<=aux;
aux2<=aux;
else
saida<=aux2;--delete latch of saida, saida is an out signal
end if;
if(reset='1')then
saida<="0000";
end if;
if(soc='0')then
saida<="0000";
count<="0000";
end if;
end process;"

and when i sinthesize my code, i´ve got a "Found 4-bit latch for signal<aux2>."

i need that aux2 hold the valor on the else statement, and i don´t know how to make the latch disappear,i´ve already tried of several ways but the latch still exist

If you don´t understand something(i´m portuguese), please ask
Thanks
 
Joined
Mar 10, 2008
Messages
348
Reaction score
0
Code:
process(aux,flag_acabou,reset,soc)
begin
    aux2<=aux;  -- THIS SHOULD SOLVE YOUR PROBLEM called implied latches
    count<=aux;
    if (flag_acabou='1')then
         saida<=aux;
         aux2<=aux;
    else
         saida<=aux2;--delete latch of saida, saida is an out signal
     end if;
     if(reset='1')then
          saida<="0000";
     end if;
    if(soc='0')then
         saida<="0000";
         count<="0000";
     end if;
end process;"

Your welcome
Jeppe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,008
Latest member
HaroldDark

Latest Threads

Top