-
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
相关推荐
箫笙默27 分钟前
JS基础 - 正则笔记لا معنى له33 分钟前
残差网络论文学习笔记:Deep Residual Learning for Image Recognition全文翻译张丶大帅1 小时前
JS案例合集就叫飞六吧3 小时前
“电子公章”:U盾(U-Key)实现身份认证、财务支付思路郭庆汝4 小时前
(七)自然语言处理笔记——Ai医生czhc11400756634 小时前
Winform笔记1129 checkbox listbox combabox checkedlistbox datapacker('-')5 小时前
《从根上理解MySQL是怎样运行的》第十二章学习笔记燎原星火*5 小时前
FMC接口定义CHY_1285 小时前
JESD204B 协议解析(4)Subclass2 时序分析FPGA_无线通信5 小时前
FPGA rgmii/gmii