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

Subversion Repositories xmatchpro

[/] [xmatchpro/] [trunk/] [xmw4-comdec/] [xmatch_sim7/] [src/] [pointer_11.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       = POINTER_11        --
19
--  version      = 1.0              --
20
--  last update  = 9/05/00          --
21
--  author       = Jose Nunez       --
22
--------------------------------------
23
 
24
 
25
-- FUNCTION
26
-- first pointer
27
 
28
 
29
--  PIN LIST
30
--  PREVIOUS = data from the previous location in the pointer array
31
--  MOVE = select if load data or keep current data
32
--  CLEAR    = asynchronous clear of the data latches (active LOW)
33
--  CLK      = master clock
34
--  DOUT     = output of the data latches
35
 
36
 
37
 
38
library ieee;
39
use ieee.std_logic_1164.all;
40
 
41
entity POINTER_11 is
42
port
43
(
44
        PREVIOUS : in bit_vector(3 downto 0);
45
        MOVE : in bit;
46
        CLEAR : in bit ;
47
        RESET : in bit;
48
        CLK : in bit ;
49
        DOUT : out bit_vector(3 downto 0)
50
 
51
);
52
end POINTER_11;
53
 
54
architecture POINTER1 of POINTER_11 is
55
 
56
signal DOUT_AUX : bit_vector(3 downto 0);
57
 
58
 
59
begin
60
 
61
FLIP_FLOPS : process (CLK,CLEAR)
62
begin
63
     if (CLEAR = '0') then
64
            DOUT_AUX <= "1011";
65
          elsif ((CLK'event) and (CLK = '1')) then
66
                        if (RESET = '0') then
67
                                  DOUT_AUX <= "1011";
68
                        elsif (MOVE = '1') then
69
                                DOUT_AUX <= PREVIOUS;
70
                        else
71
                                        DOUT_AUX <= DOUT_AUX;
72
 
73
                end if;
74
        end if;
75
end process FLIP_FLOPS;
76
 
77
DOUT <= DOUT_AUX;
78
 
79
end POINTER1;
80
 

powered by: WebSVN 2.1.0

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