-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathxor.vhd
46 lines (40 loc) · 1.3 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---------------------------------------------------------------------------------------------------
--
-- Title : XOR_GATE
-- Design : GATE_XOR
-- Author : [email protected]
-- Company : utcn
--
---------------------------------------------------------------------------------------------------
--
-- File : xor.vhd
-- Generated : Fri Mar 27 13:32:09 2020
-- From : interface description file
-- By : Itf2Vhdl ver. 1.20
--
---------------------------------------------------------------------------------------------------
--
-- Description :
--
---------------------------------------------------------------------------------------------------
--{{ Section below this comment is automatically maintained
-- and may be overwritten
--{entity {XOR_GATE} architecture {XOR_GATE_ARCH}}
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity XOR_GATE is
generic (N: natural);
port(A, B: in STD_LOGIC_VECTOR(N-1 downto 0);
REZ: out STD_LOGIC_VECTOR(N-1 downto 0));
end XOR_GATE;
--}} End of automatically maintained section
architecture XOR_GATE_ARCH of XOR_GATE is
component XOR2 is
port(A, B: in STD_LOGIC;
RES: out STD_LOGIC);
end component;
begin
L1: for i in 0 to N-1 generate
L2: XOR2 port map(A(i), B(i), REZ(i));
end generate;
end XOR_GATE_ARCH;