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

Subversion Repositories structural_vhdl

[/] [structural_vhdl/] [trunk/] [key_regulator/] [latch.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 `latch`
2
--              date : Sat Jul 28 16:10:31 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY latch IS
8
  PORT (
9
  a : in BIT;   -- a
10
  en : in BIT;  -- en
11
  b : inout BIT;        -- b
12
  vdd : in BIT; -- vdd
13
  vss : in BIT  -- vss
14
  );
15
END latch;
16
 
17
-- Architecture Declaration
18
 
19
ARCHITECTURE VST OF latch IS
20
  COMPONENT inv_x1
21
    port (
22
    i : in BIT; -- i
23
    nq : out BIT;       -- nq
24
    vdd : in BIT;       -- vdd
25
    vss : in BIT        -- vss
26
    );
27
  END COMPONENT;
28
 
29
  COMPONENT noa22_x1
30
    port (
31
    i0 : in BIT;        -- i0
32
    i1 : in BIT;        -- i1
33
    i2 : in BIT;        -- i2
34
    nq : out BIT;       -- nq
35
    vdd : in BIT;       -- vdd
36
    vss : in BIT        -- vss
37
    );
38
  END COMPONENT;
39
 
40
  SIGNAL nota : BIT;    -- nota
41
  SIGNAL q : BIT;       -- q
42
 
43
BEGIN
44
 
45
  notorand1 : noa22_x1
46
    PORT MAP (
47
    vss => vss,
48
    vdd => vdd,
49
    nq => q,
50
    i2 => b,
51
    i1 => a,
52
    i0 => en);
53
  inv1 : inv_x1
54
    PORT MAP (
55
    vss => vss,
56
    vdd => vdd,
57
    nq => nota,
58
    i => a);
59
  notorand2 : noa22_x1
60
    PORT MAP (
61
    vss => vss,
62
    vdd => vdd,
63
    nq => b,
64
    i2 => q,
65
    i1 => nota,
66
    i0 => en);
67
 
68
end VST;

powered by: WebSVN 2.1.0

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