用VHDL语言设计一个二输入五输出(与门、或门、与非门、或非门、异或门)的逻辑器
答案:1 悬赏:70 手机版
解决时间 2021-02-05 03:04
- 提问者网友:听门外雪花风
- 2021-02-04 19:38
用VHDL语言设计一个二输入五输出(与门、或门、与非门、或非门、异或门)的逻辑器
最佳答案
- 五星知识达人网友:詩光轨車
- 2021-02-04 20:15
道Library ieee;
Use ieee.std_logic_1164.all;
Entity gate is
Port(a,b:in std_logic;
c_and:out std_logic;
d_or:out std_logic;
e_nand:out std_logic;
f_nor:out std_logic;
g_xor:out std_logic
);
End gate;
Architecture behave of gate is
Begin
c_and<=a and b;
d_or<=a or b;
e_nand<=a nand b;
f_nor<=a nor b;
g_xor<=((not a)and b)or(a and (not b));
End behave;
Use ieee.std_logic_1164.all;
Entity gate is
Port(a,b:in std_logic;
c_and:out std_logic;
d_or:out std_logic;
e_nand:out std_logic;
f_nor:out std_logic;
g_xor:out std_logic
);
End gate;
Architecture behave of gate is
Begin
c_and<=a and b;
d_or<=a or b;
e_nand<=a nand b;
f_nor<=a nor b;
g_xor<=((not a)and b)or(a and (not b));
End behave;
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯