state.v

来自「verilog写的分频程序,可以对输入的频率分频」· Verilog 代码 · 共 36 行

V
36
字号
module state(clk,rst,st,sp,con,crst,hold);
input clk,rst,st,sp;
output con,crst,hold;

reg con,crst,hold;
always @(posedge clk or negedge rst)
begin 
    if (rst==0)
        begin 
           con=1'b0;
           crst=1'b1;
           hold=1'b0;
         end
    else 
	begin
		if(st)
		begin
		con=;
		crst=;
		hold=;
		end
		if(sp)
		begin
		con=;
		crst=;
		hold=;
		end
	end
end
endmodule
		
		
		
		
		
		

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?