为什么这两段不合在一个always里面写
/* Detec
ting STOP Condition on the SDA Bus */
always @ (posedge sda or posedge reset)
if (reset) begin
stop <= 0;
end else if (sclk) begin
stop <= 1;
end
/* Detecting START Condition on the SDA Bus */
always @ (negedge sda or posedge reset)
if (reset) begin
start <= 0;
end else if (sclk) begin
start <= 1;
end
一周热门 更多>