1 |
d93979b7
|
Arnaud Dieumegard
|
|
2 |
|
|
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc
|
3 |
|
|
|
4 |
|
|
-- This file is part of VESTs (Vhdl tESTs).
|
5 |
|
|
|
6 |
|
|
-- VESTs is free software; you can redistribute it and/or modify it
|
7 |
|
|
-- under the terms of the GNU General Public License as published by the
|
8 |
|
|
-- Free Software Foundation; either version 2 of the License, or (at
|
9 |
|
|
-- your option) any later version.
|
10 |
|
|
|
11 |
|
|
-- VESTs is distributed in the hope that it will be useful, but WITHOUT
|
12 |
|
|
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
13 |
|
|
-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
14 |
|
|
-- for more details.
|
15 |
|
|
|
16 |
|
|
-- You should have received a copy of the GNU General Public License
|
17 |
|
|
-- along with VESTs; if not, write to the Free Software Foundation,
|
18 |
|
|
-- Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19 |
|
|
|
20 |
|
|
-- ---------------------------------------------------------------------
|
21 |
|
|
--
|
22 |
|
|
-- $Id: ch_05_fg_05_02.vhd,v 1.1.1.1 2001-08-22 18:20:48 paw Exp $
|
23 |
|
|
-- $Revision: 1.1.1.1 $
|
24 |
|
|
--
|
25 |
|
|
-- ---------------------------------------------------------------------
|
26 |
|
|
|
27 |
|
|
architecture primitive of and_or_inv is
|
28 |
|
|
|
29 |
|
|
signal and_a, and_b : bit;
|
30 |
|
|
signal or_a_b : bit;
|
31 |
|
|
|
32 |
|
|
begin
|
33 |
|
|
|
34 |
|
|
and_gate_a : process (a1, a2) is
|
35 |
|
|
begin
|
36 |
|
|
and_a <= a1 and a2;
|
37 |
|
|
end process and_gate_a;
|
38 |
|
|
|
39 |
|
|
and_gate_b : process (b1, b2) is
|
40 |
|
|
begin
|
41 |
|
|
and_b <= b1 and b2;
|
42 |
|
|
end process and_gate_b;
|
43 |
|
|
|
44 |
|
|
or_gate : process (and_a, and_b) is
|
45 |
|
|
begin
|
46 |
|
|
or_a_b <= and_a or and_b;
|
47 |
|
|
end process or_gate;
|
48 |
|
|
|
49 |
|
|
inv : process (or_a_b) is
|
50 |
|
|
begin
|
51 |
|
|
y <= not or_a_b;
|
52 |
|
|
end process inv;
|
53 |
|
|
|
54 |
|
|
end architecture primitive;
|