otsdaq_prepmodernization  v2_05_02_indev
buffer_4x12_to_10.vhd
1 ----------------------------------------------------------------------------------
2 -- Company:
3 -- Engineer:
4 --
5 -- Create Date: 10:36:39 10/22/2009
6 -- Design Name:
7 -- Module Name: buffer_4x12_to_10 - Behavioral
8 -- Project Name:
9 -- Target Devices:
10 -- Tool versions:
11 -- Description:
12 --
13 -- Dependencies:
14 --
15 -- Revision:
16 -- Revision 0.01 - File Created
17 -- Additional Comments:
18 --
19 ----------------------------------------------------------------------------------
20 library IEEE;
21 use IEEE.STD_LOGIC_1164.ALL;
22 use IEEE.STD_LOGIC_ARITH.ALL;
23 use IEEE.STD_LOGIC_UNSIGNED.ALL;
24 
25 ---- Uncomment the following library declaration if instantiating
26 ---- any Xilinx primitives in this code.
27 --library UNISIM;
28 --use UNISIM.VComponents.all;
29 
31  Port ( i : in STD_LOGIC_VECTOR (47 downto 0);
32  o : out STD_LOGIC_VECTOR (39 downto 0));
33 end buffer_4x12_to_10;
34 
35 architecture Behavioral of buffer_4x12_to_10 is
36  -- take the 10 most significant bits from the 4 12-bit inputs and place in a new bus
37 begin
38  o(9 downto 0) <= i(11 downto 2);
39  o(19 downto 10) <= i(23 downto 14);
40  o(29 downto 20) <= i(35 downto 26);
41  o(39 downto 30) <= i(47 downto 38);
42 end Behavioral;
43