Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Объявления
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Обсуждение

how can I solve this problem

Altera_Forum
Почетный участник II
1 052Просмотр.

Hi, I want to generate a clock using Quartus ie I have an input frequency that I choose for output frequencies 8kHz and 256khz.Thanks me for help

0 баллов
1 Ответить
Altera_Forum
Почетный участник II
335Просмотр.

Hi, 

 

use an input clk of 1.024MHz. 

Then use a counter: 

 

signal count : unsigned(6 downto 0); 

 

process 

begin 

wait until clk = '1'; 

count <= count + 1; 

end process; 

 

then  

count bit(0) = half clk rate, ignore it 

count bit(1) = 1.024MHz * 1/4 = 256KHz 

and count bit(6) = 1.024MHz * 1/128 = 8KHz 

 

check jmy math if wrong. Finally make sure you make your clks global(assignment editor) 

 

Or use 10.24MHz and scale accordingly
Ответить