bravoegg
Member level 2
signal ab is an synchronous signal, can it be used in a sensitive list to reset signal c immediately?
Does this style violate any rules?
I took part in a training program and the teacher says it's ok, as long as the signal ab is not combinational logic, and preferably the signal ab be a signal register bit.
Does this style violate any rules?
I took part in a training program and the teacher says it's ok, as long as the signal ab is not combinational logic, and preferably the signal ab be a signal register bit.
Code:
always@(posedge clk)begin
ab <= b;
end
Code:
always@(posedge clk or negedge ab)begin
if(~ab)
c <= 0;
else
c <= 1'b1;
end