📄 4_compare.tdf
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -