如题,不清楚这个状态机是干什么用的?有人知道的可以解释下么?谢谢
case(state)
4\'b0000:
if(RxD_bit_inv)
begin
state <= 4\'b1000; // start bit found?
end
4\'b1000: if(next_bit) state <= 4\'b1001; // bit 0
4\'b1001: if(next_bit) state <= 4\'b1010; // bit 1
4\'b1010: if(next_bit) state <= 4\'b1011; // bit 2
4\'b1011: if(next_bit) state <= 4\'b1100; // bit 3
4\'b1100: if(next_bit) state <= 4\'b1101; // bit 4
4\'b1101: if(next_bit) state <= 4\'b1110; // bit 5
4\'b1110: if(next_bit) state <= 4\'b1111; // bit 6
4\'b1111: if(next_bit) state <= 4\'b0001; // bit 7
4\'b0001:
if(next_bit)
state <= 4\'b0000; // stop bit
default:
begin
state <= 4\'b0000;
end [ |