FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2007, 01:13 AM
Guest
 
Posts: n/a
Default Clock Frequency

hey guys...

can u please tell me a method to reduce the clock frequency of the FPGA
using counters

puneet

Reply With Quote
  #2 (permalink)  
Old 01-17-2007, 01:24 AM
Andrew FPGA
Guest
 
Posts: n/a
Default Re: Clock Frequency

Use a DCM(xilinx) or PLL (altera),
or keep the clock frequency the same and use clock enables to run this
logic at a lower rate,
or use a counter to reduce the clock frequency.

What are you trying to do?


[email protected] wrote:
> hey guys...
>
> can u please tell me a method to reduce the clock frequency of the FPGA
> using counters
>
> puneet


Reply With Quote
  #3 (permalink)  
Old 01-17-2007, 09:14 AM
axalay
Guest
 
Posts: n/a
Default Re: Clock Frequency


"""Andrew FPGA писал(а):
"""
> Use a DCM(xilinx) or PLL (altera),
> or keep the clock frequency the same and use clock enables to run this
> logic at a lower rate,
> or use a counter to reduce the clock frequency.
>


Example (in Verilog):
Generate 8.192 (2.048 * 4) MHz from 19.44 MHz workin on 155.52 (19.44 *
8) MHz
This metod generete parazitic jitter.

//Ìîäóëü ôîðìèðóåò èç 155.52 ÌÃö 8.192 ÌÃö
//Äëÿ ýòîãî *åîáõîäèìî âûä*òü 126 ð*ç 10
ïåðèîäîâ è 130 ð*ç 9 ïåðèîäîâ
//4 ëèø*èõ 9 ïåðèîäîâ âûä*åì ** 1-é, 64-é,
128-é è 193-é ð*çû
module divide_clk (RESET, iCLK, oCLK);
input RESET;
input iCLK;


output oCLK; reg oCLK;


reg [7:0] aCOUNT; //Ñ÷åò÷èê
reg [4:0] bCOUNT; //Ñ÷åò÷èê è*òåðâ*ë* 9 èëè
10 CLK


always @(posedge iCLK) begin
if (!RESET) begin
oCLK = 0;
aCOUNT = 0;
bCOUNT = 0;
end //if
else begin
if (aCOUNT <= 63 || (aCOUNT >= 128 && aCOUNT <= 191))
begin
if (aCOUNT == 0 || aCOUNT == 128 || aCOUNT[0]
== 1) begin
if (bCOUNT < 17) begin
if (bCOUNT == 8) oCLK = 1;
bCOUNT = bCOUNT + 1;
end
else begin
oCLK = 0;
bCOUNT = 0;
aCOUNT = aCOUNT + 1;
end
end //if
else if (aCOUNT[0] == 0) begin
if (bCOUNT < 19) begin
if (bCOUNT == 9) oCLK = 1;
bCOUNT = bCOUNT + 1;
end
else begin
oCLK = 0;
bCOUNT = 0;
aCOUNT = aCOUNT + 1;
end
end //else if
end //if
else begin
if (aCOUNT[0] == 1) begin
if (bCOUNT < 19) begin
if (bCOUNT == 9) oCLK = 1;
bCOUNT = bCOUNT + 1;
end
else begin
oCLK = 0;
bCOUNT = 0;
aCOUNT = aCOUNT + 1;
end
end //if
else begin
if (bCOUNT < 17) begin
if (bCOUNT == 8) oCLK = 1;
bCOUNT = bCOUNT + 1;
end
else begin
oCLK = 0;
bCOUNT = 0;
aCOUNT = aCOUNT + 1;
end
end //else
end //else
end //else
end //always


endmodule //divide_clk

Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLL minimum input clock frequency Ndf FPGA 4 12-21-2006 08:54 PM
OPB to SPI clock frequency ratio Aaron Curtin FPGA 8 10-26-2006 07:09 PM
clock frequency after RTL synthesis vs PAR Pasacco FPGA 4 10-24-2005 02:02 AM
Nios Clock Frequency Maxlim FPGA 6 08-13-2003 12:31 PM


All times are GMT +1. The time now is 12:12 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved