count4.v

来自「《Verilog HDL 程序设计教程》4」· Verilog 代码 · 共 12 行

V
12
字号
module count4(clk,clr,out);
input clk,clr;
output[3:0] out;
reg[3:0] out;

always @(posedge clk or posedge clr)
begin
if (clr)  out<=0;
else 	  out<=out+1;
end
endmodule

⌨️ 快捷键说明

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