状态机举例

sxgylhb 17 0 PDF 2020-12-13 00:12:13

你可以指定状态寄存器和状态机的状态。以下是一个有四种状态的普通状态机。 // These are the symbolic names for states// 定义状态的符号名称parameter [1:0] S0 = 2'h0, S1 = 2'h1, S2 = 2'h2, S3 = 2'h3;// These are the current state and next state variables// 定义当前状态和下一状态变量reg [1:0] state;reg [1:0] next_state; // state_vector state// 状态向量的转移关系alw

用户评论
请输入评论内容
评分:
暂无评论