OpenCores
URL https://opencores.org/ocsvn/structural_vhdl/structural_vhdl/trunk

Subversion Repositories structural_vhdl

[/] [structural_vhdl/] [trunk/] [key_regulator/] [adder01.vst] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 marta
-- VHDL structural description generated from `adder01`
2
--              date : Mon Jul 30 22:16:42 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY adder01 IS
8
  PORT (
9
  a : in BIT;   -- a
10
  b : in BIT;   -- b
11
  cin : in BIT; -- cin
12
  sum : out BIT;        -- sum
13
  cout : out BIT;       -- cout
14
  vdd : in BIT; -- vdd
15
  vss : in BIT  -- vss
16
  );
17
END adder01;
18
 
19
-- Architecture Declaration
20
 
21
ARCHITECTURE VST OF adder01 IS
22
  COMPONENT o2_x2
23
    port (
24
    i0 : in BIT;        -- i0
25
    i1 : in BIT;        -- i1
26
    q : out BIT;        -- q
27
    vdd : in BIT;       -- vdd
28
    vss : in BIT        -- vss
29
    );
30
  END COMPONENT;
31
 
32
  COMPONENT xr2_x1
33
    port (
34
    i0 : in BIT;        -- i0
35
    i1 : in BIT;        -- i1
36
    q : out BIT;        -- q
37
    vdd : in BIT;       -- vdd
38
    vss : in BIT        -- vss
39
    );
40
  END COMPONENT;
41
 
42
  COMPONENT a2_x2
43
    port (
44
    i0 : in BIT;        -- i0
45
    i1 : in BIT;        -- i1
46
    q : out BIT;        -- q
47
    vdd : in BIT;       -- vdd
48
    vss : in BIT        -- vss
49
    );
50
  END COMPONENT;
51
 
52
  COMPONENT ao22_x2
53
    port (
54
    i0 : in BIT;        -- i0
55
    i1 : in BIT;        -- i1
56
    i2 : in BIT;        -- i2
57
    q : out BIT;        -- q
58
    vdd : in BIT;       -- vdd
59
    vss : in BIT        -- vss
60
    );
61
  END COMPONENT;
62
 
63
  SIGNAL auxsc4 : BIT;  -- auxsc4
64
  SIGNAL auxsc2 : BIT;  -- auxsc2
65
  SIGNAL auxsc1 : BIT;  -- auxsc1
66
 
67
BEGIN
68
 
69
  cout : o2_x2
70
    PORT MAP (
71
    vss => vss,
72
    vdd => vdd,
73
    q => cout,
74
    i1 => auxsc2,
75
    i0 => auxsc4);
76
  sum : xr2_x1
77
    PORT MAP (
78
    vss => vss,
79
    vdd => vdd,
80
    q => sum,
81
    i1 => auxsc1,
82
    i0 => cin);
83
  auxsc1 : xr2_x1
84
    PORT MAP (
85
    vss => vss,
86
    vdd => vdd,
87
    q => auxsc1,
88
    i1 => a,
89
    i0 => b);
90
  auxsc2 : a2_x2
91
    PORT MAP (
92
    vss => vss,
93
    vdd => vdd,
94
    q => auxsc2,
95
    i1 => a,
96
    i0 => b);
97
  auxsc4 : ao22_x2
98
    PORT MAP (
99
    vss => vss,
100
    vdd => vdd,
101
    q => auxsc4,
102
    i2 => cin,
103
    i1 => a,
104
    i0 => b);
105
 
106
end VST;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.