vipulsinha
Member level 2
verilog async reset
One reason not to use asynchronous resets is that Verilog cannot model
them without a race condition. Typical async reset flop:
always @ (posedge ck or negedge rst) begin
if (!rst) q <= 0;
else q <= d;
end
What happens when rst is Deasserted at the same time as ck is asserted?
Either ck goes high first, and rst is still low, so q gets zero. Or rst
goes high first, and when ck fires, q gets d
Pls comment
One reason not to use asynchronous resets is that Verilog cannot model
them without a race condition. Typical async reset flop:
always @ (posedge ck or negedge rst) begin
if (!rst) q <= 0;
else q <= d;
end
What happens when rst is Deasserted at the same time as ck is asserted?
Either ck goes high first, and rst is still low, so q gets zero. Or rst
goes high first, and when ck fires, q gets d
Pls comment