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

Reply

VHDL - Re: Is this OK?

 
Thread Tools Search this Thread
Old 07-28-2003, 10:31 PM   #1
Default Re: Is this OK?


I think this is absolutely fine. You get the divided clock out from
flip-flop and it should be clean.
The other thing is, thechnology specific, if your flip-flop is strong enough
to drive the clock line. Normally the synthesis tool solves this for you,
otherwise insert a clock buffer.

Rain


"Matt Gessner" <> wrote in message
news: m...
> Hi, all,
>
> I have a question about whether the following is a) synchronous (I believe
> it is) and b) advisable:
>
> signal counter: std_logic_vector (4 downto 0);
> signal clk: std_logic;
> signal cclk: std_logic;
>
> processa: process (clk) is
> begin
> if rising_edge (clk) then
> counter <= counter + 1;
> end if;
> end process;
>
> cclk <= counter (4);
>
> processb: process (cclk) is
> begin
> if rising_edge (cclk) then
> null; -- do something interesting
> end if;
> end process;
>
> Part of me screams "No, don't do it!" because I'm making a clock
> out of something that's not //really// a clock. Is this is a problem?
>
> Essentially, I'm scaling clk down by 8. In general, is this the
> way to do this? Is there something more advisable?
>
> I look forward to your insights.
>
> Thanks -- Matt





Rain Adelbert
  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




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