Author Topic: FPGA's, PLL's and Counters?  (Read 1696 times)

0 Members and 1 Guest are viewing this topic.

Offline sci4meTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: us
    • sci4me.com
FPGA's, PLL's and Counters?
« on: July 27, 2013, 03:13:10 am »
Hi guys! So, I just got my second FPGA program (an 8 bit binary counter) working and now I want it to be automated so I dont have to press a button to make it count. Now, since the clock is 50 mhz, I don't really want to just use that as I won't be able to see the individual numbers. So, I added a PLL. I set it to divide by 25. I put that between my clock input and my counter, and well.. it doesnt work. All the LED's turn on... Not really sure why... Here is a picture of the block diagram:

The only code I typed for this project is the counter. I have confirmed it works, so it must be the clock or the pll. The clock pin is set to R8 which is the clock input for the FPGA. I also have confirmed that the LED's work so the PLL is the only thing left. I fallowed the guide in the user manual to create it but I changed the divisor to 25 in order to get 2Hz. So... idk what else could be wrong. Any ideas?

EDIT: opps, wrong pic... well, the wire goes to the PLL :P

EDIT2: Just for fun, I made a frequency divider out of DFF's. Took 24 of them. 32 LE's :D
« Last Edit: July 27, 2013, 04:05:29 am by sci4me »
 

Offline sci4meTopic starter

  • Regular Contributor
  • *
  • Posts: 139
  • Country: us
    • sci4me.com
Re: FPGA's, PLL's and Counters?
« Reply #1 on: July 27, 2013, 06:47:40 am »
Okay, i am offically a total derp. 2 MHz not Hz -_- That explains a LOT.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf