EE 552

Application Notes

By

 

Shaun Luong

Clifton Yeung

J.P. Kansky

Patrick Asiedu-Ampem

 

If you need a slower clock, here is a simple clock divider algorithm, that divides the clock by 2N.

Where :

N ³ FUP1 / 2* FDesired

 

-- file "clk_div.vhd"

-- a generic clock divider, divides by 2*N

-- adapted from "VHDLL Primer" by J. Bhasker, p. 295

------------------------------------------------------------------------------------------

 
library ieee;
use ieee.std_logic_1164.all;
 
entity clk_div is
generic(N: positive:= 2);
port
end clk_div;
 
architecture behavioural of clk_div is
end behavioural;