-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf_xor.vhd
26 lines (23 loc) · 843 Bytes
/
f_xor.vhd
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
-----------------------------
-- OrgArq I - T1 --
-- Full-Xor --
-----------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity f_xor is
port(
A, B: in std_logic_vector(7 downto 0);
S: out std_logic_vector(7 downto 0)
);
end f_xor;
architecture fXor of f_xor is
begin
A0: entity work.h_xor port map(a => A(0), b => B(0), s => S(0));
A1: entity work.h_xor port map(a => A(1), b => B(1), s => S(1));
A2: entity work.h_xor port map(a => A(2), b => B(2), s => S(2));
A3: entity work.h_xor port map(a => A(3), b => B(3), s => S(3));
A4: entity work.h_xor port map(a => A(4), b => B(4), s => S(4));
A5: entity work.h_xor port map(a => A(5), b => B(5), s => S(5));
A6: entity work.h_xor port map(a => A(6), b => B(6), s => S(6));
A7: entity work.h_xor port map(a => A(7), b => B(7), s => S(7));
end fXor;