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

Subversion Repositories xmatchpro

[/] [xmatchpro/] [trunk/] [xmw4-comdec/] [xmatch_sim7/] [src/] [mc_mux_3d.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       = MC_MUX_3      --
19
--  version      = 4.0         --
20
--  last update  = 11/02/98    --
21
--  author       = Jose Nunez  --
22
---------------------------------
23
 
24
 
25
-- FUNCTION
26
-- Movement control multiplexor.
27
-- Selects either a compressed (A inputs) or decompressed
28
-- (B inputs) match location and full hit indicator and
29
-- makes them available on the Y outputs under the control
30
-- of SELB. If SELB=0 then B inputs are selected.
31
 
32
--  PIN LIST
33
-- A   = match location for compression
34
-- B   = match location for decompression
35
-- SELB = select 
36
-- ENABLEC = enable compression
37
-- ENABLED = enable decompression
38
-- Y   = match location output
39
 
40
library ieee,dzx;
41
use ieee.std_logic_1164.all;
42
use dzx.attributes.all;
43
 
44
entity MC_MUX_3D is
45
port
46
(
47
      B   : in bit_vector(15 downto 0) ;
48
      ENABLED: in bit;
49
      Y   : out bit_vector(15 downto 0)
50
);
51
 
52
 
53
end MC_MUX_3D;
54
 
55
architecture MULTIPLEX_3 of MC_MUX_3D is
56
 
57
begin
58
 
59
MUX : process (B , ENABLED)
60
begin
61
            if (ENABLED='0') then
62
                        Y <= B;
63
            else
64
                                    Y <= "1000000000000000";
65
 
66
            end if;
67
 
68
end process MUX;
69
 
70
 
71
end MULTIPLEX_3;
72
 
73
 

powered by: WebSVN 2.1.0

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