International Electronics and Technology Forum
May 21, 2012, 02:19:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: help with fpga clock?  (Read 263 times)
Bob_Skalze
Newbie
*
Posts: 3


« on: June 19, 2011, 12:54:13 PM »

i'm using a spartan 3an starter kit. the board comes with a 50 MHz clock but i want a 40 MHz clock. so
i changed the constraints and the program generated this line:
NET "clock" TNM_NET = clock;
TIMESPEC TS_clock = PERIOD "clock" 25 ns HIGH 50%;
no errors occur but when i run this program on the board it does nothing however if i use the 50MHz clock it works fine.  What could be wrong?
Logged
doublee
Newbie
*
Posts: 4


« Reply #1 on: June 19, 2011, 12:58:12 PM »

Defining a constraint only tells the program to route the gates in order to meet this timing but won't actually change the clock frequency. You have to instantiate a DCM to convert your 50Mhz clock to a 40Mhz clock. The Spartan 3 users guide describes the DCM in detail. You'll have to come up with a suitable multiply/divide ratio to get the proper frequency.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC | Privacy Policy Valid XHTML 1.0! Valid CSS!