and_mode.vhd
来自「使用加法器树乘法器实现8位乘法运算」· VHDL 代码 · 共 26 行
VHD
26 行
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity and_mode is
port
(
and1: in std_logic_vector(7 downto 0);
and2: in std_logic;
out1: out std_logic_vector(7 downto 0)
);
end and_mode;
architecture answer2 of and_mode is
begin
process (and1,and2)
begin
if and2 ='0' then
out1<="00000000";
else
out1<=and1;
end if;
end process;
end answer2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?