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

Reply

VHDL - Frequency divider with clk en.

 
Thread Tools Search this Thread
Old 08-12-2008, 03:04 PM   #1
Exclamation Frequency divider with clk en.


want to make a frequency divider (50 Mhz to any value, 560khz ), I am working with a counter like a freq. divider but there is a warning in Quartus II:

Warning: Found 1 node(s) in clock paths which may be acting as ripple and/or gated clocks -- node(s) analyzed as buffer(s) resulting in clock skew

I read that using a CLK EN is the best way to make a freq. divider, but a I don't know nothing about it, DO YOU HAVE INFORMATION OR EXAMPLES ABOUT? HELP ME PLEASE


chema15
chema15 is offline   Reply With Quote
Old 08-13-2008, 08:15 AM   #2
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default How to avoid clockskew
Hopefully will this appear useful:
your welcome¨
Jeppe

PHP Code:
entity Freqency_divider is
    Port 
(     Clkin in  STD_LOGIC;
                
Clkout inout  STD_LOGIC := '0');
end Freqency_divider;

-- 
How to avoid clockskew in logic designs
architecture Behavioral of Freqency_divider is
    signal Enable
std_logic;
begin
    process
(Clkin)-- All processes should use the same clock
        variable Scale_counter
integer range 0 to 2000000;
    
begin
        
if rising_edge(Clkinthen
            
if Scale_counter 1500000 then -- Random value
                Scale_counter 
:= Scale_counter+1;
                
Enable <= '0';
            else
                
Scale_counter := 0;
                
Enable <= '1';        -- Must only be '1' for one clkin cycle
            end 
if;
        
end if;
    
end process;
    
    
process(Clkin)        -- All processes should use the same clock
    begin
        
if rising_edgeClkinthen
            
if Enable='1' then            -- heres the "trick"
                
Clkout <= not Clkout;    -- Do something
            end 
if;
        
end if;
    
end process;

end Behavioral


jeppe
jeppe is offline   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
signed divider with fractions in vhdl sueco_ Hardware 0 07-07-2009 12:05 PM
I want dialog to sound full & rich, not the usual thin & weak Max Kuenkel DVD Video 2 11-14-2003 08:16 PM
Are these stereotypical dvd players? JethroUK© DVD Video 137 09-08-2003 08:54 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