Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
entity Ad_Clk_Div is
port(
Div_Fac : in unsigned(3 downto 0);-- Division Factor (put 8 here)
Clk : in std_logic; -- Global Clk
Reset : in std_logic; -- Global Reset
DClk : out std_logic -- Divided Clk Out
);
end entity Ad_Clk_Div;
architecture Ad_Clk_Div_Arch of Ad_Clk_Div is
signal count : unsigned(3 downto 0);
begin
process(Clk,Reset)
begin
if(Reset = '0')then
count <= (others => '0');
DClk <= '0';
elsif(RISING_EDGE(Clk))then
if(count = Div_Fac)then
count <= (others => '0');
DClk <= not DClk ;
else
count <= count + 1 ;
end if;
end if;
Yes, I have problem with space in my Altera. I'm developing a Pulse generator, that receives a 16 bit in paralel and another 16 bits, after receiving the first one. This 2 groups os 16 bits contains the number of pulses to count, and the exit will be high until count first number, and exit will be low, untill count the second number. I'm using 61 macrocells of 64, using max 3064. And i also need speed. I have a clock of 8Mhz, and need to divide per 8, to achive 1us per clock cycle. I'll try all of them, and wich were the best "cost-benefict", i'll use it. Thanks every one!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.