4_compare.tdf
来自「在MAXPLUS II 平台上用ahdl 写的电子钟」· TDF 代码 · 共 25 行
TDF
25 行
subdesign 4_compare
(reset1,state2,a[3..0],in[3..0]:input;
out[3..0],alert:output;
)
begin
if state2==1 then
if reset1==1 then
out[3..0]=in[3..0];
alert=B"0";
else
out[3..0]=a[3..0];
if in[]==a[] then
alert=B"1";
else
alert=B"0";
end if;
end if;
else
out[3..0]=a[3..0];
alert=B"0";
end if;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?