Altera_Forum
Honored Contributor
8 years agoTrouble hardcoding an initial value of flip-flop on power up.
Hi All,
I'm using a Max 10 FPGA. I'm having trouble instantiating a d flip flop initially set to '1'. From the altera.altera_primitives_components.all I am instantiating the following: component dff port ( D : in std_logic; -- Data Input CLK : in std_logic; -- 100 MHz clock CLRN : in std_logic; -- Clear Input PRN : in std_logic; -- Preset Input Q : out std_logic -- Output Data ); end component; But there is no generic that let's me hardcore a '1' there? I want to shift in 0's when the power is recycled (by tying the pin to ground) and so I need the initial value of the register to power up to '1'. Thank you for your help. Bryan Kerr Electronics Engineer