Altera_Forum
Honored Contributor
13 years agomulticycle setup of 2 work, of 4 not!
hi, i did a clock enable like the example given by altera http://www.altera.com/support/examples/timequest/exm-tq-clock-enable.html
to run my design at half frequency 50 MHz the clock enable is generated like in the example, negate a signal every clock. in my design i have a state machine driven by this clock enable that manipulate some big std_logic_vectors. This work! But the setup slack is poor so... i tried to slow down @ 25 MHz, this time, the enable is derived from a counter: process(clk) begin if rising_edge(clk) if count = "11" then enable_reg<= '1'; else enable_reg <= '0'; count <= count +1; end if; end if; end process; i modified the constraints: # Setup multicycle of 4 to enabled driven destination registers set_multicycle_path 4 -to [get_fanouts [get_pins enable_reg|q*] -through [get_pins -hierarchical *|*ena*]] -end -setup #Hold multicycle of 3 to enabled driven destination registers set_multicycle_path 3 -to [get_fanouts [get_pins enable_reg|q*] -through [get_pins -hierarchical *|*ena*]] -end –hold and this time i failed to meet constraint!! why? is because the enable is generated by a counter?