📄 counter.v
字号:
module counter (clkin,clkin1,countout);
input clkin,clkin1;
output [2:0] countout;
reg [2:0] countout;
always@(posedge clkin1 )
if(!clkin)
begin
if(countout<6)
countout<=countout+1;
else
countout<=0;
end
else
countout<=0;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -