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.

small discussion

Status
Not open for further replies.

sagarkrishna

Newbie level 1
Joined
Jun 16, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
hi guys,


I have some doubt about the vhdl code regarding the counters..


I need the sample code in vhdl for frequency division in the concept of asynchronous counters


I have a code but it's not working can anybody give a suggestion that what is a problem of it?

if(counter_rst='0')then --10bit counter

onekhz <= "0000000000";

elsif(Bclk'event and Bclk='1') then

if(onekhz <="1111100111") then --divide by 1000

onekhz <= "0000000000";

else

onekhz <= onekhz + 1;

end if;

end if;
 

this is my code and i need divide the frequency from 1Mhz to onekhz. please help me to find the solution.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top