Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Latches problem

 
Thread Tools Search this Thread
Old 05-05-2005, 07:02 AM   #1
Default Latches problem


Hi guyes,
Just see the process !
RDI output signals are not being latched . At reset '0' , all signals
become low but as soon as reset becomes high , all RDI outputs become
high. and after that they are being latched properly.
Pl suggest what should we do ?
Than in advance.
Rgds
--------------------
PROCESS(reset, a, pcs2) --PROCESS no 2
BEGIN
IF reset = '0' THEN
RDI <= (OTHERS => '0') ;
PDI <= (OTHERS => '0') ;
ELSIF pcs2 = '0' AND a = "00000" THEN
RDI(7 DOWNTO 0) <= D ;
ELSIF pcs2 = '0' AND a = "00001" THEN
RDI(15 DOWNTO <= D ;
ELSIF pcs2 = '0' AND a = "00010" THEN
RDI(23 DOWNTO 16)<= D ;
ELSIF pcs2 = '0' AND a = "00011" THEN
RDI(29 DOWNTO 24)<= D(5 DOWNTO 0) ;
ELSIF pcs2 = '0' AND a = "00100" THEN
PDI(7 DOWNTO 0) <= D ;
ELSIF pcs2 = '0' AND a = "00101" THEN
PDI(15 DOWNTO <= D ;
ELSIF pcs2 = '0' AND a = "00110" THEN
PDI(23 DOWNTO 16)<= D ;
ELSIF pcs2 = '0' AND a = "00111" THEN
PDI(29 DOWNTO 24)<= D(5 DOWNTO 0) ;
END IF ;
END PROCESS ;
------------------------



aaaaaa
  Reply With Quote
Old 05-05-2005, 07:22 AM   #2
Ralf Hildebrandt
 
Posts: n/a
Default Re: Latches problem
aaaaaa wrote:


> RDI output signals are not being latched .


They /are/ latched! You did not assign every bit of RDI and PDI in any case.


> At reset '0' , all signals
> become low but as soon as reset becomes high , all RDI outputs become
> high. and after that they are being latched properly.


Do you talk about simulation of the behavioral or the netlist?

If you talk about netlist simulation then it seems to be the "muxed
latch problem": If there is a mux before a latch and one signal controls
the latch and the mux it may be, that while the latch is beeing closed
the mux changes the output sooner and the new value is loaded into the
latch before it is finally disabled.


> Pl suggest what should we do ?


Did you think about the difficulties that arise while using latches?
Latches are nice, small and power saving, but you have to design them
carefully.
If latches are preferrable for your task, control the mux with a
different signal than the latch-enable. Hold the mux-output stable until
the latch is closed.
Otherwise think about using flipflops.

Ralf


Ralf Hildebrandt
  Reply With Quote
Old 05-06-2005, 05:20 AM   #3
Jim George
 
Posts: n/a
Default Re: Latches problem
Ralf Hildebrandt wrote:
> aaaaaa wrote:
>
>
>> RDI output signals are not being latched .

>
>
> They /are/ latched! You did not assign every bit of RDI and PDI in any
> case.
>
>
>> At reset '0' , all signals
>> become low but as soon as reset becomes high , all RDI outputs become
>> high. and after that they are being latched properly.

>
>
> Do you talk about simulation of the behavioral or the netlist?
>
> If you talk about netlist simulation then it seems to be the "muxed
> latch problem": If there is a mux before a latch and one signal controls
> the latch and the mux it may be, that while the latch is beeing closed
> the mux changes the output sooner and the new value is loaded into the
> latch before it is finally disabled.
>
>
>> Pl suggest what should we do ?

>
>
> Did you think about the difficulties that arise while using latches?
> Latches are nice, small and power saving, but you have to design them
> carefully.
> If latches are preferrable for your task, control the mux with a
> different signal than the latch-enable. Hold the mux-output stable until
> the latch is closed.
> Otherwise think about using flipflops.
>
> Ralf


The biggest problem with latches is during timing analysis, they are
difficult to analyze because they have both a sequential and a
combinatorial path. AFAIK, utilities like Xilinx TRCE will ignore the
sequential path and report only the combinatorial path. This will make
that path look like it has lots prop delay.


Jim George
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial Up Problem smackedass A+ Certification 3 02-02-2007 11:59 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Pioneer DVR3100S problem with Satellite receiver Samsung DCR 9500 Fredrik Bengtsson DVD Video 0 12-12-2003 02:32 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM
Re: Serious Computer Problem Bret A+ Certification 0 11-19-2003 12:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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