mux2to1_11.vhd.bak
来自「这是我从网上找到的用vhdl语言写的sdram控制器的代码。我的邮箱:wleec」· BAK 代码 · 共 17 行
BAK
17 行
library ieee;
use ieee.std_logic_1164.all;
entity mux2to1_9 is
generic(n:integer:=9);
port(s :in std_logic;
in_0 :in std_logic_vector(n-1 downto 0);
in_1 :in std_logic_vector(n-1 downto 0);
out_y:out std_logic_vector(n-1 downto 0));
end entity mux2to1_9;
architecture behave of mux2to1_9 is
begin
with s select
out_y<=in_0 when '0',
in_1 when others;
end architecture behave;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?