-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuxbus6a1.vhd.bak
33 lines (26 loc) · 991 Bytes
/
muxbus6a1.vhd.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
library IEEE;
use IEEE.std_logic_1164.all;
entity muxbus61 is
port(
sel : in std_logic_vector(2 downto 0);
d0 : in std_logic_vector(7 downto 0);
d1 : in std_logic_vector(7 downto 0);
d2 : in std_logic_vector(7 downto 0);
d3 : in std_logic_vector(7 downto 0);
d4 : in std_logic_vector(7 downto 0);
d5 : in std_logic_vector(7 downto 0);
y : out std_logic_vector(7 downto 0)
);
end muxbus41;
architecture arch1 of muxbus61 is
begin
-- Your VHDL code defining the model goes here
-- Selected signal assignment
with sel select y <= d0 when "000",
d1 when "001",
d2 when "010",
d3 when "011",
d4 when "100",
d5 when "101",
"00000000" when others;
end arch1;