Re: Invoking different always constructs at different signal
Hi,
Normally it is recomanded to not used gated clock signal, since with gated clock there is clock skew problem and it is little bit tricky to handle clock skew, instead you can use below shown method.
Here in your case you are using out which is gated clock, if you want to use posedge of out then try to use this way
always @ (posedge clk)
begin
if (out) // means posedge of (clk & out)
test <= (/*input data*/);
else
test <= test;
end