-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtractAlphaPtatParameter.vhd
executable file
·77 lines (66 loc) · 2.2 KB
/
ExtractAlphaPtatParameter.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 17:01:44 01/24/2023
-- Design Name:
-- Module Name: ExtractAlphaPtatParameter - Behavioral
-- Project Name:
-- Target Devices:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
library UNISIM;
use UNISIM.VComponents.all;
entity ExtractAlphaPtatParameter is
port (
i_clock : IN std_logic;
i_reset : IN std_logic;
i_ee0x2410 : IN std_logic_vector (15 downto 0);
o_alphaptat: OUT std_logic_vector (31 downto 0)
);
end ExtractAlphaPtatParameter;
architecture Behavioral of ExtractAlphaPtatParameter is
signal odata_alphaptat : std_logic_vector (31 downto 0);
signal address_alphaptat : std_logic_vector (8 downto 0);
begin
p0 : process (i_ee0x2410) is
begin
address_alphaptat <= std_logic_vector(to_unsigned(to_integer(unsigned("000000000000"&i_ee0x2410 (15 downto 12))),9));
end process p0;
o_alphaptat <= odata_alphaptat;
inst_mem_alphaptat : RAMB16_S36
generic map (
INIT => X"000000000", -- Value of output RAM registers at startup
SRVAL => X"000000000", -- Output value upon SSR assertion
WRITE_MODE => "WRITE_FIRST", -- WRITE_FIRST, READ_FIRST or NO_CHANGE
INIT_00 => X"411c0000411800004114000041100000410c0000410800004104000041000000",
INIT_01 => X"413c0000413800004134000041300000412c0000412800004124000041200000"
)
port map (
DO => odata_alphaptat, -- 1-bit Data Output
DOP => open, -- 1-bit Data Output
ADDR => address_alphaptat, -- 14-bit Address Input
CLK => i_clock, -- Clock
DI => (others => '0'), -- 1-bit Data Input
DIP => (others => '0'), -- 1-bit Data Input
EN => '1', -- RAM Enable Input
SSR => i_reset, -- Synchronous Set/Reset Input
WE => '0' -- Write Enable Input,
);
-- End of RAMB16_S1_inst instantiation
end Behavioral;