Altera_Forum
Honored Contributor
13 years agoUsing internal Clock of DE2 in Quartus-Verilog
Hi there, I'm very new to verilog and quartus, but I'm trying to build a digital clock.
I've set up the counters (I think) for seconds minutes and hours. But what I am unsure about is how to use the internal clock to count seconds. Here are some questions that I have: 1.How do I access the clock in Quartus? From what I have been reading it's an input Port I have to use called CLOCK_50 if I want to use the 50 mHz clock? 2.I used a clock divider to try to increment the seconds counter every 50,000 posedge changes of the clock so that I can achieve a 1 Khz clock, would that be slow enough to emulate seconds? (I assumed the clock is 50 mhz) 3. Do I have to do anything special to use the clock, like "import" anything or use any special modules? Thank you for your time.