02-02-2019 05:00 AM
i have a xc2c1287vqg100c cpld, and now i have a question about the initial value of registers in CPLDs?
02-02-2019 05:25 AM - edited 02-02-2019 06:19 AM
The XC2C128 doesn't have any registers per se. Registers are implemented using a HDL if you need any.
02-02-2019 06:09 AM
02-02-2019 06:18 AM
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;