📄 we2.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
package mypack1 is
function minium (a,b:in std_logic_vector)
return std_logic_vector;
end mypack1;
package body mypack1 is
function minium (a,b:in std_logic_vector)
return std_logic_vector is
begin
if a<b then
return a;
else
return b;
end if;
end minium;
end mypack1;
library ieee;
use ieee.std_logic_1164.all;
use work.mypack1.all;
entity we2 is
port (d1,d2:in std_logic;
q:out std_logic);
end;
architecture behave of we2 is
begin
q<=minium (d1,d2);
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -