Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > inconvenience latch

Reply
Thread Tools

inconvenience latch

 
 
VenturaPOR VenturaPOR is offline
Junior Member
Join Date: Jul 2008
Posts: 2
 
      07-01-2008
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
 
Reply With Quote
 
 
 
 
jeppe jeppe is offline
Senior Member
Join Date: Mar 2008
Location: Denmark
Posts: 346
 
      07-02-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse editor autoscroll inconvenience Warren Tang Java 0 10-24-2011 03:23 PM
__eq__() inconvenience when subclassing set Jess Austin Python 9 11-03-2009 01:58 AM
Windows inconvenience with ".avi" file heskum Software 1 06-10-2008 02:04 AM
Inconvenience due to abstract class does not have a constructor www Java 2 10-22-2007 04:12 PM
logical left shifter or latch ?? dangerlee VHDL 4 05-07-2004 07:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57