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

Subversion Repositories xmatchpro

[/] [xmatchpro/] [trunk/] [xmw4-comdec/] [xmatch_sim7/] [src/] [latch6.vhd] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 eejlny
--This library is free software; you can redistribute it and/or
2
--modify it under the terms of the GNU Lesser General Public
3
--License as published by the Free Software Foundation; either
4
--version 2.1 of the License, or (at your option) any later version.
5
 
6
--This library is distributed in the hope that it will be useful,
7
--but WITHOUT ANY WARRANTY; without even the implied warranty of
8
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9
--Lesser General Public License for more details.
10
 
11
--You should have received a copy of the GNU Lesser General Public
12
--License along with this library; if not, write to the Free Software
13
--Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
14
 
15
-- e_mail : j.l.nunez-yanez@byacom.co.uk
16
 
17
---------------------------------
18
--  ENTITY       = LATCH6      --
19
--  version      = 1.0         --
20
--  last update  = 16/06/98    --
21
--  author       = Jose Nunez  --
22
---------------------------------
23
 
24
 
25
-- FUNCTION
26
-- 6 bit latch
27
 
28
 
29
-- PIN LIST
30
-- D_IN  = input data bus
31
-- CLEAR = asynchronous clear of latch
32
-- CLK   = master clock
33
-- D_OUT = output data bus
34
 
35
library ieee,dzx;
36
use ieee.std_logic_1164.all;
37
 
38
 
39
entity LATCH6 is
40
port
41
(
42
        D_IN : in bit_vector(5 downto 0);
43
        CLEAR : in bit;
44
        RESET : in bit;
45
        CLK : in bit;
46
        D_OUT : out bit_vector(5 downto 0)
47
);
48
 
49
 
50
end LATCH6;
51
-----------------------------------
52
--  entity       = LATCH6        --
53
--  ARCHITECTURE = FLIP_FLOP     --
54
--  version      = 1.0           --
55
--  last update  = 16/06/95      --
56
--  author       = Mark Gooch    --
57
-----------------------------------
58
 
59
architecture FLIP_FLOP of LATCH6 is
60
 
61
begin
62
 
63
FLOP : process (CLK,CLEAR)
64
begin
65
if (CLEAR = '0') then
66
        D_OUT <= "000000";
67
elsif ((CLK'event) and (CLK = '1')) then
68
        if (RESET = '0') then
69
                D_OUT <= "000000";
70
    else
71
                D_OUT <= D_IN;
72
        end if;
73
end if;
74
end process FLOP;
75
 
76
end FLIP_FLOP; -- end of architecture
77
 
78
 

powered by: WebSVN 2.1.0

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