FPGA Frequency Divider

OP #4522414
Rate this post
• ▲ useful
▼ not useful
Hello,

I need to design frequency divider that adjusts the clock frequency from 
50MHz to 200Hz so that it generates 200 pulse signal every second by 
using FPGA. I'm using Xilinx and the language that I used is VHDL 
language. I got stuck because I can't get the output. The frequency 
divider has 2 input ports and 1 output port. Here I attach my code.

Thanks.
Attached files:
Guest #4522435
Rate this post
• ▲ useful
▼ not useful
dude, there so many frequency devider threads in this and other Forums, 
that the solution is just a Google click away.

regarding your code: it should be advisable to discuss this with your 
teachers to figure out your false appraoch to this subject

golden way: design with real components and learn vhdl after having the 
knowledge how circuits do operate
Moderator (Company: Titel) #4522477
Rate this post
• ▲ useful
▼ not useful
Mr. FPGA wrote:
> false appraoch to this subject
Indeed one MUST NOT generate a derived clock out of the one and only 
FPGA clock by using a counter. The only practical way is to create a 
CLOCK ENABLE.

So throughout the whole design there's only 1 clock and every other job 
is done by enable signals that are generated out of that clock being 
valid for 1 clock cycle.

See the creation of a 3 Hz clock enable for a chasing light there:
http://www.lothar-miller.de/s9y/archives/61-Lauflicht.html
There you can see: only 1 clock is used throughout the whole design...

And: use integers for counters. That makes the code easily readable even 
for humans...

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.