为什么下面的代码不推断闩锁?
如果 d 和 rst 都为 "0" ,工具如何知道分配给 "e" 的内容?
module tmp(input d,
input clk,
input rst,
output reg o,
output reg e);
always@(posedge clk)
if(rst) begin
o <=0;
e <= 1;
end
else if(d) begin
o<=1;
e<=0;
end
else
o <=1;
endmodule