-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnd2.vhd
46 lines (34 loc) · 832 Bytes
/
nd2.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
library IEEE;
use IEEE.std_logic_1164.all; -- libreria IEEE con definizione tipi standard logic
use WORK.constants.all; -- libreria WORK user-defined
entity ND2 is
Port ( A: In std_logic;
B: In std_logic;
Y: Out std_logic);
end ND2;
architecture ARCH1 of ND2 is
begin
Y <= not( A and B);-- after NDDELAY; --
end ARCH1;
architecture ARCH2 of ND2 is
begin
-- nome processo
-- |
-- \/
P1: process(A,B) -- tutti gli ingressi utilizzati devono essere nella sensitivity list
begin
if (A='1') and (B='1') then
Y <='0'; --after NDDELAY;
elsif (A='0') or (B='0') then
Y <='1';-- after NDDELAY;
end if;
end process;
end ARCH2;
configuration CFG_ND2_ARCH1 of ND2 is
for ARCH1
end for;
end CFG_ND2_ARCH1;
configuration CFG_ND2_ARCH2 of ND2 is
for ARCH2
end for;
end CFG_ND2_ARCH2;