Continue to Site

Welcome to EDAboard.com

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.

programmable Counter design help

Status
Not open for further replies.

JoseNaveen

Newbie level 5
Joined
Jul 24, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,335
i need to use a counter in my project ..the counter has a separate control register which can be written directly..based on the value written in the control register the freq of the counter is selected..can any1 help me with how this can be done..?
 

I think you need two processes in this design.

process(clk)

--divide this clock by some value so that the counter speed is properly set.

end process;


process(clk_divided)

--a typical counter program clocked at clk_divided.

end process;

the idea for the freq divider in the first process can be done understood from the following link:
A synthesizable delay generator instead of 'wait for' statement | VHDL coding tips and tricks
You may need to edit it in a proper way to use it in your design.

--vipin
VHDL coding tips and tricks
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top