cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hrmt
Explorer
Explorer
863 Views
Registered: ‎06-09-2018

What's the initial value of the Register in CPLD ?

Hi everybody

i have a  xc2c1287vqg100c cpld, and now i have a question about the initial value of registers in CPLDs?

 

thanks.

0 Kudos
3 Replies
jack.roundhouse
Contributor
Contributor
849 Views
Registered: ‎09-20-2018

The XC2C128 doesn't have any registers per se. Registers are implemented using a HDL if you need any.

0 Kudos
hrmt
Explorer
Explorer
832 Views
Registered: ‎06-09-2018

@jack.roundhouse

yes my mean is : when describe a RTL by HDL, we have Registers in design and now what is initial value of these registers ?

0 Kudos
jack.roundhouse
Contributor
Contributor
828 Views
Registered: ‎09-20-2018

The registers have an initial value if needed, exactly as needed. You have to define initial value at preset, reset or set conditions.

Here is an example:

process(Clk)
begin 
   if(rising_edge(Clk)) then
	   if(sync_reset='1') then 
	   	Q <= '0';
	   else 
	   	Q <= D; 
	   end if;
   end if;       
end process;