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

Subversion Repositories xmatchpro

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

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

Line No. Rev Author Line
1 8 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
 
43
 
44
entity MC_MUX_3C is
45
port
46
(
47
      A   : in bit_vector(15 downto 0) ;
48
      ENABLEC: in bit;
49
      Y   : out bit_vector(15 downto 0)
50
);
51
 
52
 
53
 
54
end MC_MUX_3C;
55
 
56
architecture MULTIPLEX_3 of MC_MUX_3C is
57
 
58
begin
59
 
60
MUX : process (A , ENABLEC)
61
begin
62
 
63
 
64
             if (ENABLEC='0') then
65
 
66
                                Y <=A;
67
 
68
             else
69
                          Y <= "1111111111111111";
70
 
71
             end if;
72
 
73
 
74
end process MUX;
75
 
76
 
77
end MULTIPLEX_3;
78
 
79
 

powered by: WebSVN 2.1.0

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