Visible to Intel only — GUID: mwh1409959888646
Ixiasoft
Visible to Intel only — GUID: mwh1409959888646
Ixiasoft
3.4.16. Preserve Registers
This attribute and logic option directs the Compiler not to minimize or remove a specified register during synthesis optimizations or register netlist optimizations. Optimizations can eliminate redundant registers and registers with constant drivers; this option prevents the software from reducing a register to a constant or merging with a duplicate register. This option can preserve a register so you can observe the register during simulation or with the Signal Tap. Additionally, this option can preserve registers if you create a preliminary version of your design in which you have not specified the secondary signals. You can also use the attribute to preserve a duplicate of an I/O register so that you can place one copy of the I/O register in an I/O cell and the second in the core.
The Preserve Registers logic option prevents the software from inferring a register as a state machine.
You can set the Preserve Registers logic option in the Quartus® Prime software, or you can set the preserve attribute in your HDL code. In these examples, the Quartus® Prime software preserves the my_reg register.
HDL | Code5 |
---|---|
Verilog HDL | reg my_reg /* synthesis syn_preserve = 1 */; |
Verilog-2001 | (* syn_preserve = 1 *) reg my_reg; |
HDL | Code |
---|---|
VHDL | signal my_reg : stdlogic; attribute preserve : boolean; attribute preserve of my_reg : signal is true; |