📄 twe_counter.tdf
字号:
subdesign twe_counter
(clk,clrn:input;
out[3..0],out4:output;
)
variable
ss:MACHINE OF BITS (out[4..0])
with states(
s0=0,
s1=1,
s2=2,
s3=3,
s4=4,
s5=5,
s6=6,
s7=7,
s8=8,
s9=9,
s10=B"10000",
s11=B"10001"
);
begin
if clrn==0 then
out[4..0]=0;
else
ss.clk=clk;
table
ss => ss;
s0 => s1;
s1 => s2;
s2 => s3;
s3 => s4;
s4 => s5;
s5 => s6;
s6 => s7;
s7 => s8;
s8 => s9;
s9 => s10;
s10 => s11;
s11 => s0;
end table;
end if;
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -