Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI'm by no mean an expert, but I think I can help with some things...
1. To access the clock, just declare a input pin named CLOCK_50. i.e.: CLOCK_50: IN STD_LOGIC; 2. If you want to increment a variable every second, you need a 1hz clock, not 1KHz. A simple but not efficient way to do that is to count every clock until 50.000.000. At this you will have one second. Don't forget to zero your counter. 3. You must set the FPGA pins attached to the oscilator. You can just import the DE2_pin_assignments.csv, available on the DE2 disc. To do so, go on "Assignments - Import Assignments" . If I said something wrong, please someone correct me. Hope I can help.