Commit 173dd4e4 authored by Tristan Gingold's avatar Tristan Gingold

Remove unused declarations.

parent fbde2002
...@@ -567,9 +567,6 @@ begin ...@@ -567,9 +567,6 @@ begin
-- User CSR space -- User CSR space
gen_int_user_csr : if g_USER_CSR_EXT = false generate gen_int_user_csr : if g_USER_CSR_EXT = false generate
Inst_VME_User_CSR : entity work.VME_User_CSR Inst_VME_User_CSR : entity work.VME_User_CSR
generic map (
g_WB_DATA_WIDTH => g_WB_DATA_WIDTH
)
port map ( port map (
clk_i => clk_i, clk_i => clk_i,
rst_n_i => s_reset_n, rst_n_i => s_reset_n,
......
...@@ -219,15 +219,6 @@ architecture rtl of VME_CR_CSR_Space is ...@@ -219,15 +219,6 @@ architecture rtl of VME_CR_CSR_Space is
constant c_BEG_CRAM : crcsr_addr := unsigned(g_BEG_CRAM(18 downto 2)); constant c_BEG_CRAM : crcsr_addr := unsigned(g_BEG_CRAM(18 downto 2));
constant c_END_CRAM : crcsr_addr := unsigned(g_END_CRAM(18 downto 2)); constant c_END_CRAM : crcsr_addr := unsigned(g_END_CRAM(18 downto 2));
constant c_BAR_REG : integer := 16#7ffff# / 4;
constant c_BIT_SET_REG : integer := 16#7fffb# / 4;
constant c_BIT_CLR_REG : integer := 16#7fff7# / 4;
constant c_CRAM_OWNER_REG : integer := 16#7fff3# / 4;
constant c_USR_SET_REG : integer := 16#7ffef# / 4;
constant c_USR_CLR_REG : integer := 16#7ffeb# / 4;
constant c_ADER_REG_END : integer := 16#7ffdf# / 4;
constant c_ADER_REG_BEG : integer := 16#7ff63# / 4;
-- Indexes in bit set/clr register -- Indexes in bit set/clr register
constant c_RESET_BIT : integer := 7; constant c_RESET_BIT : integer := 7;
constant c_SYSFAIL_EN_BIT : integer := 6; constant c_SYSFAIL_EN_BIT : integer := 6;
...@@ -471,9 +462,6 @@ begin ...@@ -471,9 +462,6 @@ begin
variable csr_idx : unsigned(7 downto 4); variable csr_idx : unsigned(7 downto 4);
variable csr_boff : unsigned(3 downto 2); variable csr_boff : unsigned(3 downto 2);
variable v_addr : unsigned(18 downto 2);
variable v_index : integer;
variable v_byte : integer;
begin begin
if rising_edge(clk_i) then if rising_edge(clk_i) then
if rst_n_i = '0' then if rst_n_i = '0' then
......
...@@ -59,9 +59,6 @@ use ieee.numeric_std.all; ...@@ -59,9 +59,6 @@ use ieee.numeric_std.all;
use work.vme64x_pack.all; use work.vme64x_pack.all;
entity VME_User_CSR is entity VME_User_CSR is
generic (
g_WB_DATA_WIDTH : integer
);
port ( port (
clk_i : in std_logic; clk_i : in std_logic;
rst_n_i : in std_logic; rst_n_i : in std_logic;
...@@ -88,13 +85,14 @@ architecture rtl of VME_User_CSR is ...@@ -88,13 +85,14 @@ architecture rtl of VME_User_CSR is
constant c_IRQ_VECTOR : integer := 16#0002f# / 4; constant c_IRQ_VECTOR : integer := 16#0002f# / 4;
constant c_IRQ_LEVEL : integer := 16#0002b# / 4; constant c_IRQ_LEVEL : integer := 16#0002b# / 4;
constant c_ENDIAN : integer := 16#00023# / 4; constant c_ENDIAN : integer := 16#00023# / 4;
constant c_TIME0_NS : integer := 16#0001f# / 4; -- Now unused.
constant c_TIME1_NS : integer := 16#0001b# / 4; -- constant c_TIME0_NS : integer := 16#0001f# / 4;
constant c_TIME2_NS : integer := 16#00017# / 4; -- constant c_TIME1_NS : integer := 16#0001b# / 4;
constant c_TIME3_NS : integer := 16#00013# / 4; -- constant c_TIME2_NS : integer := 16#00017# / 4;
constant c_TIME4_NS : integer := 16#0000f# / 4; -- constant c_TIME3_NS : integer := 16#00013# / 4;
constant c_BYTES0 : integer := 16#0000b# / 4; -- constant c_TIME4_NS : integer := 16#0000f# / 4;
constant c_BYTES1 : integer := 16#00007# / 4; -- constant c_BYTES0 : integer := 16#0000b# / 4;
-- constant c_BYTES1 : integer := 16#00007# / 4;
constant c_WB32BITS : integer := 16#00003# / 4; constant c_WB32BITS : integer := 16#00003# / 4;
begin begin
......
...@@ -159,6 +159,7 @@ begin -- wrapper ...@@ -159,6 +159,7 @@ begin -- wrapper
g_CLOCK_PERIOD => g_CLOCK_PERIOD, g_CLOCK_PERIOD => g_CLOCK_PERIOD,
g_WB_DATA_WIDTH => g_WB_DATA_WIDTH, g_WB_DATA_WIDTH => g_WB_DATA_WIDTH,
g_WB_ADDR_WIDTH => g_WB_ADDR_WIDTH, g_WB_ADDR_WIDTH => g_WB_ADDR_WIDTH,
g_USER_CSR_EXT => g_USER_CSR_EXT,
g_MANUFACTURER_ID => g_MANUFACTURER_ID, g_MANUFACTURER_ID => g_MANUFACTURER_ID,
g_BOARD_ID => g_BOARD_ID, g_BOARD_ID => g_BOARD_ID,
g_REVISION_ID => g_REVISION_ID, g_REVISION_ID => g_REVISION_ID,
......
...@@ -47,7 +47,6 @@ architecture behaviour of top_tb is ...@@ -47,7 +47,6 @@ architecture behaviour of top_tb is
subtype lword_t is std_logic_vector (31 downto 0); subtype lword_t is std_logic_vector (31 downto 0);
subtype qword_t is std_logic_vector (63 downto 0); subtype qword_t is std_logic_vector (63 downto 0);
type byte_array_t is array (natural range <>) of byte_t;
type word_array_t is array (natural range <>) of word_t; type word_array_t is array (natural range <>) of word_t;
type lword_array_t is array (natural range <>) of lword_t; type lword_array_t is array (natural range <>) of lword_t;
type qword_array_t is array (natural range <>) of qword_t; type qword_array_t is array (natural range <>) of qword_t;
...@@ -637,9 +636,7 @@ begin ...@@ -637,9 +636,7 @@ begin
procedure read32_blt (addr : std_logic_vector (31 downto 0); procedure read32_blt (addr : std_logic_vector (31 downto 0);
am : vme_am_t; am : vme_am_t;
variable data : out lword_array_t) variable data : out lword_array_t) is
is
variable res : lword_t;
begin begin
VME_LWORD_n_i <= '0'; VME_LWORD_n_i <= '0';
read_setup_addr (addr, am); read_setup_addr (addr, am);
...@@ -664,9 +661,7 @@ begin ...@@ -664,9 +661,7 @@ begin
procedure read16_blt (addr : std_logic_vector (31 downto 0); procedure read16_blt (addr : std_logic_vector (31 downto 0);
am : vme_am_t; am : vme_am_t;
variable data : out word_array_t) variable data : out word_array_t) is
is
variable res : lword_t;
begin begin
VME_LWORD_n_i <= '1'; VME_LWORD_n_i <= '1';
read_setup_addr (addr, am); read_setup_addr (addr, am);
...@@ -690,9 +685,7 @@ begin ...@@ -690,9 +685,7 @@ begin
procedure read64_mblt (addr : std_logic_vector (31 downto 0); procedure read64_mblt (addr : std_logic_vector (31 downto 0);
am : vme_am_t; am : vme_am_t;
variable data : out qword_array_t) variable data : out qword_array_t) is
is
variable res : lword_t;
begin begin
VME_LWORD_n_i <= '0'; VME_LWORD_n_i <= '0';
read_setup_addr (addr, am); read_setup_addr (addr, am);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment