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

Subversion Repositories structural_vhdl

[/] [structural_vhdl/] [trunk/] [key_regulator/] [count2_latch.vst] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 marta
-- VHDL structural description generated from `count2_latch`
2
--              date : Thu Aug  2 10:02:23 2001
3
 
4
 
5
-- Entity Declaration
6
 
7
ENTITY count2_latch IS
8
  PORT (
9
  clk : in BIT; -- clk
10
  en : in BIT;  -- en
11
  rst : in BIT; -- rst
12
  q : out BIT_VECTOR (1 DOWNTO 0);      -- q
13
  vdd : in BIT; -- vdd
14
  vss : in BIT  -- vss
15
  );
16
END count2_latch;
17
 
18
-- Architecture Declaration
19
 
20
ARCHITECTURE VST OF count2_latch IS
21
  COMPONENT count2
22
    port (
23
    clk : in BIT;       -- clk
24
    rst : in BIT;       -- rst
25
    q : out BIT_VECTOR(1 DOWNTO 0);     -- q
26
    vdd : in BIT;       -- vdd
27
    vss : in BIT        -- vss
28
    );
29
  END COMPONENT;
30
 
31
  COMPONENT latch
32
    port (
33
    a : in BIT; -- a
34
    en : in BIT;        -- en
35
    b : inout BIT;      -- b
36
    vdd : in BIT;       -- vdd
37
    vss : in BIT        -- vss
38
    );
39
  END COMPONENT;
40
 
41
  SIGNAL p_0 : BIT;     -- p 0
42
  SIGNAL p_1 : BIT;     -- p 1
43
  SIGNAL vd : BIT;      -- vd
44
 
45
BEGIN
46
 
47
  count1 : count2
48
    PORT MAP (
49
    vss => vss,
50
    vdd => vd,
51
    q => p_1& p_0,
52
    rst => rst,
53
    clk => clk);
54
  latch0 : latch
55
    PORT MAP (
56
    vss => vss,
57
    vdd => vdd,
58
    b => q(0),
59
    en => en,
60
    a => p_0);
61
  latch1 : latch
62
    PORT MAP (
63
    vss => vss,
64
    vdd => vdd,
65
    b => q(1),
66
    en => en,
67
    a => p_1);
68
 
69
end VST;

powered by: WebSVN 2.1.0

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