UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
482 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
Contributor
Contributor
468 Views
Registered: ‎09-20-2018

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

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

0 Kudos
Explorer
Explorer
451 Views
Registered: ‎06-09-2018

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

@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
Contributor
Contributor
447 Views
Registered: ‎09-20-2018

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

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;