I have written a simple D-type flip flop using VHDL and am sythesizing it in Xilinx ISE. I wish to specify the setup and hold times. In my user constraints file I put the line:
TIMEGRP "D" OFFSET = IN 10 ns VALID 10 ns BEFORE "clk" RISING;
Am I right in thinking that this asks that the input D becomes valid a maximum 10ns before the rising clock edge, and must stay constant for a maximum 10ns? So in this case the setup time would be 10ns and the hold time would be 0ns?
Thanks.