-
FSM1101
module top_module (
input clk,
input reset, // Synchronous reset
input data,
output start_shifting);parameter s0 = 3'd0; parameter s1 = 3'd1; parameter s2 = 3'd2; parameter s3 = 3'd3; parameter s4 = 3'd4; reg[2:0] state; reg[2:0] next_state; always@(*) begin case(state) s0: begin if(data) next_state = s1; else next_state = s0; end s1: begin if(data) next_state = s2; else next_state = s0; end s2: begin if(data) next_state = s2; else next_state = s3; end s3: begin if(data) next_state = s4; else next_state = s0; end s4: next_state = s4; endcase end always@(posedge clk) begin if(reset) state <= s0; else state <= next_state; end assign start_shifting = (state == s4);endmodule
Circuits--Building--FSM1101
且听风吟5672024-06-03 23:48
相关推荐
羊群智妍12 小时前
2026 AI搜索流量密码:免费GEO监测工具,优化效果看得见黄埔数据分析13 小时前
QDMA把描述符当数据搬移, 不用desc engine山岚的运维笔记14 小时前
SQL Server笔记 -- 第18章:Viewslpruoyu15 小时前
【Android第一行代码学习笔记】Android架构_四大组件_权限_持久化_通知_异步_服务wdfk_prog16 小时前
[Linux]学习笔记系列 -- [drivers][mmc][mmc_sdio]果果燕16 小时前
今日学习笔记:双向链表、循环链表、栈觉醒大王16 小时前
AI写的青基中了明月醉窗台16 小时前
qt使用笔记六之 Qt Creator、Qt Widgets、Qt Quick 详细解析Hello_Embed19 小时前
libmodbus 移植 STM32(USB 串口后端篇)张祥64228890419 小时前
RTKLIB源码和理论结合分析笔记三