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

Reply

VHDL - Bug in DDR template in Lattice FPGAs ?

 
Thread Tools Search this Thread
Old 04-20-2005, 03:39 PM   #1
Default Bug in DDR template in Lattice FPGAs ?


Hi,

I am trying to use the "DDR_MEM" Lattice template which is responsable
for the datapath for DDR SDRAM controller.

"DDR_MEM" can be found in the MODULE/IP MANAGER under
ARCHITECTURE_MODULES
--> IO --> DDR_MEM

When instantiating that module and compiling my design I can see in
the timing analysis
that the bits on the bidirectional busses DQ and DQS have
different Clock-To-Output times.

In my opinion the busses should be routed into IO register cells
when instantiating that special template.

So there are three possibilities:

1. They are not routed into IO register cells so that the PERFORMANCE
ANALYST does show different tCO
2. They ARE routed into IO register cells, but the PERFORMANCE ANALYST
does not take them into timing calculation
3. I have to make any assignment so that the busses are routed into
IO registers. But I have not found any assignment possibility in
the PREFERENCE EDITOR.

Has someone experienced similar or same problems ?

Thank you in advance.

Rgds
André


ALuPin
  Reply With Quote
Old 04-20-2005, 05:33 PM   #2
Weng Tianxiang
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
DQ and DQS should have different clock-to-output timing. DQS rising
edge should be in the middle of DQ output window. So receiver can use
DQS rising edge to clock in data contained in DQ valid window.

What DDR is different from normal SDRAM is DDR is source synchronous
driving device. DQS is used to clock in data sent by data sender.

Weng



Weng Tianxiang
  Reply With Quote
Old 04-21-2005, 08:23 AM   #3
ALuPin
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
"Weng Tianxiang" <> wrote in message news:< roups.com>...
> DQ and DQS should have different clock-to-output timing. DQS rising
> edge should be in the middle of DQ output window. So receiver can use
> DQS rising edge to clock in data contained in DQ valid window.
>
> What DDR is different from normal SDRAM is DDR is source synchronous
> driving device. DQS is used to clock in data sent by data sender.
>
> Weng


I am NOT talking of DQ with regard to DQS.

I am talking about the bits of the bus DQ and the bits of the bus
DQS ! They have different tCO.
I already know DDR basics ;o)


ALuPin
  Reply With Quote
Old 04-21-2005, 07:24 PM   #4
John_H
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
"ALuPin" <> wrote in message
news: om...

<snip>

> I am NOT talking of DQ with regard to DQS.
>
> I am talking about the bits of the bus DQ and the bits of the bus
> DQS ! They have different tCO.
> I already know DDR basics ;o)


I'm still not answering your question but posing you another question:

Are the clock-to-out times different by about 1/4 of your DDR clock period?

I know that timing analysis from other vendors tend to illustrate timing
from the positive edge of the appropriate clock. If the Lattice
implementation uses a 2x clock for the data signals, the DQ "bus" and the
DQS "bus" (neither of which are a bus, really - they're coupled into byte
lanes) would be clocked on opposite edges of that clock. If the
clock-to-out timing is referenced to the rising edge only, the difference
would be half the 2x clock period. Is that what you're seeing?

Either a Lattice FAE or timing report numbers published here might give
others a better idea of what's happening.




John_H
  Reply With Quote
Old 04-22-2005, 08:25 AM   #5
ALuPin
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
OK, maybe my question was not clear enough, one more try:

Having a look at the data bus DQ I can see the following in the
PERFORMANCE ANALYST (that is the STATIC TIMING ANALYSIS):

SOURCE DESTINATION DELAY (ns)

CLK Dq_15 9.971
CLK Dq_14 9.971
CLK Dq_13 9.701
CLK Dq_12 9.701
CLK Dq_11 9.698
CLK Dq_10 9.698
CLK Dq_9 9.974
CLK Dq_8 9.974
CLK Dq_7 10.574
CLK Dq_6 10.070
CLK Dq_5 10.350
CLK Dq_4 10.314
CLK Dq_3 10.070
CLK Dq_2 10.574
CLK Dq_1 10.350
CLK Dq_0 10.314


As you can see there are different tCO for the bits of the bus,
the same for DQS, ALTHOUGH using the Lattice datapath template as
described in my previous post.

Any ideas?

Rgds
André


ALuPin
  Reply With Quote
Old 04-23-2005, 04:58 PM   #6
cas7406@yahoo.com
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
Andre,

I think what you are missing are the constraints. Have set your Tco,
fmax, Setup and Pin Assignment constraints? Use either the preference
file (.prf) or the Pre-Map Preference Editor to set your constraints.
Also TN1050 can help you out.

rgds,

cristian



cas7406@yahoo.com
  Reply With Quote
Old 04-25-2005, 08:53 AM   #7
ALuPin
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
"" <> wrote in message news:< roups.com>...
> Andre,
>
> I think what you are missing are the constraints. Have set your Tco,
> fmax, Setup and Pin Assignment constraints? Use either the preference
> file (.prf) or the Pre-Map Preference Editor to set your constraints.
> Also TN1050 can help you out.
>
> rgds,
>
> cristian


Hi Cristian,

yes I have set the constraints for all the other signals which do not
come out the DATAPATH template. In the Timing Analysis these signals
(for example the address bus for DDR) do have the same tCO.

I have constrained DQ and DQS in the PREFERENCE EDITOR under "In/Out Clock"
whereas the other signals are constrained under "Cell Attributes".
But the constraints for DQ and DQS do have no effect on the tCO.

Rgds
André


ALuPin
  Reply With Quote
Old 04-26-2005, 10:04 PM   #8
cas7406@yahoo.com
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
Andre,

You should be able to constraint the Tco for the DQ and DQS in the
input_setup/clock_to_output preference window.
Check the example at
$ispLEVER/ispcpld/examples/latticeEC/preferences_attributes/ddr/vhdl/ddr.syn

and let me know.

rgds,

cristian

ALuPin wrote:
> "" <> wrote in message

news:< roups.com>...
> > Andre,
> >
> > I think what you are missing are the constraints. Have set your

Tco,
> > fmax, Setup and Pin Assignment constraints? Use either the

preference
> > file (.prf) or the Pre-Map Preference Editor to set your

constraints.
> > Also TN1050 can help you out.
> >
> > rgds,
> >
> > cristian

>
> Hi Cristian,
>
> yes I have set the constraints for all the other signals which do not
> come out the DATAPATH template. In the Timing Analysis these signals
> (for example the address bus for DDR) do have the same tCO.
>
> I have constrained DQ and DQS in the PREFERENCE EDITOR under "In/Out

Clock"
> whereas the other signals are constrained under "Cell Attributes".
> But the constraints for DQ and DQS do have no effect on the tCO.
>
> Rgds
> André




cas7406@yahoo.com
  Reply With Quote
Old 04-28-2005, 08:22 AM   #9
ALuPin
 
Posts: n/a
Default Re: Bug in DDR template in Lattice FPGAs ?
"" <> wrote in message news:< roups.com>...
> Andre,
>
> You should be able to constraint the Tco for the DQ and DQS in the
> input_setup/clock_to_output preference window.
> Check the example at
> $ispLEVER/ispcpld/examples/latticeEC/preferences_attributes/ddr/vhdl/ddr.syn
>
> and let me know.
>
> rgds,
>
> cristian


Hi Cristian,

I checked the example, and yet, the tCO is for the bits of DQ
identical.

But the example does not use the template from the IP Manager but
the particular modules.

ispLEVER5.0 is my hope )

Rgds
André


ALuPin
  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
Looking for 2-up CD label software or template M.L. DVD Video 14 05-31-2007 01:49 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