I have a led blinking code for MachXO2 breakout board
written in VHDL. Actually I am new to VHDL.
I am not able to understand the meaning of these lines:
--internal oscillator
COMPONENT OSCH
GENERIC(
NOM_FREQ: string := "53.20");
PORT(
STDBY : IN STD_LOGIC;
OSC : OUT STD_LOGIC;
SEDSTDBY : OUT STD_LOGIC);
END COMPONENT;
BEGIN
--internal oscillator
OSCInst0: OSCH
GENERIC MAP (NOM_FREQ => "53.20")
PORT MAP (STDBY => '0', OSC => clk, SEDSTDBY => OPEN);
Can you please tell me What these lines are doing?
Best Answer
These lines use an externally defined component, called
OSCH
, that magically provides a clock on theosc
output as long as thestdby
input is low.The
osc
output is then connected to theclk
signal and thestdby
input connected to0
(i.e. the switch-off function is not used.