six_counter.tdf
来自「在MAXPLUS II 平台上用ahdl 写的电子钟」· TDF 代码 · 共 23 行
TDF
23 行
subdesign six_counter
(clk,clrn:input;
out[2..0],cout:output;
)
variable
count[2..0]:dff;
p1:dff;
begin
count[].clrn=clrn;
count[].clk=clk;
p1.clk=clk;
if count[]==B"101" then
count[].d=B"000";
p1.d=b"1";
else
count[].d=count[].q+1;
p1.D=b"0";
end if;
out[]=count[];
cout=p1;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?