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

Reply

VHDL - [VirtexII + VHDL] problems with clock signals...

 
Thread Tools Search this Thread
Old 11-27-2003, 06:44 PM   #1
Default [VirtexII + VHDL] problems with clock signals...


hey, i have to use a DCM as i need multiple clocks now the problem what that
they should be de-asserted (not active) before some signal, so i need some
CE signal. i tried to solve it like this:

ddr_clkx2 <= ddr_clkx2_out and locked;

were locked is the lock signal from the DCM and the ddr_clkx2_out is a clock
output from the DCM and it should be 0 as long as locked is 0.
but when i use this trick it gives me the following warning when making the
bitfile (with bitgen):

WARNINGesignRules:372 - Netcheck: Gated clock. Clock net _n0045 is sourced
by a combinatorial pin. This is not good design practice. Use the CE pin to
control the loading of data into the flip-flop.

so how should i implement it and what they mean with CE pin? well i know
what they mean but how should i implement it in VHDL?

thanx in advance,

kind regards,

Yttrium

hey, i have to use a DCM as i need multiple clocks now the problem what that
they should be de-asserted (not active) before some signal, so i need some
CE signal. i tried to solve it like this:

ddr_clkx2 <= ddr_clkx2_out and locked;

were locked is the lock signal from the DCM and the ddr_clkx2_out is a clock
output from the DCM and it should be 0 as long as locked is 0.
but when i use this trick it gives me the following warning when making the
bitfile (with bitgen):

WARNINGesignRules:372 - Netcheck: Gated clock. Clock net _n0045 is sourced
by a combinatorial pin. This is not good design practice. Use the CE pin to
control the loading of data into the flip-flop.

so how should i implement it and what they mean with CE pin? well i know
what they mean but how should i implement it in VHDL?

thanx in advance,

kind regards,

Yttrium




Yttrium
  Reply With Quote
Old 11-27-2003, 11:45 PM   #2
David R Brooks
 
Posts: n/a
Default Re: [VirtexII + VHDL] problems with clock signals...
The report is correct: you cannot pass clocks through logic & still
use the dedicated clock resources.
If you *must* do this (rather than, say, holding your flipflops reset
or disabled until LOCKED asserts), use a BUFGMUX to gate the clock.
This is the *only* safe way to switch a clock, in Xilinx devices.

Note that if you have a large number of loads for your "gated" clock,
you can use their CE inputs, so that essentially you have a CE tree
paralleling the clock tree. If you then attach the attribute BUFGCE to
the CE tree, the tools will infer just such a BUFGMUX as I described
above, and remove the CE tree.

See the Libraries Guide, item BUFGMUX, and the Constraints Guide,
item BUFGCE.

To infer the CE pin, something like:

process (CLK)
begin
if CLK'event and CLK = '1' then
if CE = '1' then -- Don't combine these IFs
OUTPUT <= INPUT;
end if;
end if;
end process;

"Yttrium" <> wrote:

:hey, i have to use a DCM as i need multiple clocks now the problem what that
:they should be de-asserted (not active) before some signal, so i need some
:CE signal. i tried to solve it like this:
:
:ddr_clkx2 <= ddr_clkx2_out and locked;
:
:were locked is the lock signal from the DCM and the ddr_clkx2_out is a clock
utput from the DCM and it should be 0 as long as locked is 0.
:but when i use this trick it gives me the following warning when making the
:bitfile (with bitgen):
:
:WARNINGesignRules:372 - Netcheck: Gated clock. Clock net _n0045 is sourced
:by a combinatorial pin. This is not good design practice. Use the CE pin to
:control the loading of data into the flip-flop.
:
:so how should i implement it and what they mean with CE pin? well i know
:what they mean but how should i implement it in VHDL?
:
:thanx in advance,
:
:kind regards,
:
:Yttrium
:
:hey, i have to use a DCM as i need multiple clocks now the problem what that
:they should be de-asserted (not active) before some signal, so i need some
:CE signal. i tried to solve it like this:
:
:ddr_clkx2 <= ddr_clkx2_out and locked;
:
:were locked is the lock signal from the DCM and the ddr_clkx2_out is a clock
utput from the DCM and it should be 0 as long as locked is 0.
:but when i use this trick it gives me the following warning when making the
:bitfile (with bitgen):
:
:WARNINGesignRules:372 - Netcheck: Gated clock. Clock net _n0045 is sourced
:by a combinatorial pin. This is not good design practice. Use the CE pin to
:control the loading of data into the flip-flop.
:
:so how should i implement it and what they mean with CE pin? well i know
:what they mean but how should i implement it in VHDL?
:
:thanx in advance,
:
:kind regards,
:
:Yttrium
:



David R Brooks
  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
New Releases: Revelations, The Librarian & My Left Foot: Updated complete downloadable R1 DVD DB & Info lists Doug MacLean DVD Video 0 05-17-2005 06:57 AM
Hollywood Detective - The Buried Clock David Marsh DVD Video 1 09-27-2004 11:26 PM




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