


Controlling Initial States in VHDL or Verilog
 
 
In the UCF file, apply the INIT attribute to the nets of flip-flops inferred or instantiated in your HDL design.
 
net net_name INIT=R|S;
 
 For example, if your HDL design contains a clocked scalar signal “myflop” and a clocked vector signal “mycounter” with range 7 down to 0, the syntax of the INIT attribute is:
 
NET myflop INIT=S;
 
NET mycounter_* INIT=S; 
 
Note: You can use asterisk "*" as a wildcard in the instance name to apply the attribute to more than one instance.