Altera_Forum
Honored Contributor
18 years agoOnboard clock issue
Hi all,
I'm trying to learn on how to access the onboard peripherals of the Cyclone 2 Starter kit and having difficulties finding a simple example on how to use one of the available onboard 3 clocks (24Mhz, 27Mhz, 50Mhz) of the Cyclone 2 Starter Kit using pure VHDL coding. I do not want to use PLL, external clocks, I only want to use just one of the 3 available onboard clocks. For example, let say I have the following coding snippet, how do I do to let's say connect the onboard 50 Mhz clock to drive the clock_in input pin of the counter? - I know it's called CLOCK_50 and I have to declare that name in the entity. It does matter what mode I declare that name, I keep receiving an error message, as if there's nothing to be done! :mad: Can anybody help to concretise a very simple working example on using onboard crystal clocks? - By the way, the onboard FPGA is an ep2c20f484c7. entity counter is port( clock_in : in std_logic; clock_out : out std_logic ); end counter; architecture behavior of counter is begin process(clock_in) variable count_var : integer; begin count_var := 0; -- Some code here ... clock_out <= count_var; end process; end behavior; Regards,