From f98d72780df3d6e46014a570f97854df6e6bf376 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 4 Oct 2017 13:12:44 +0200 Subject: [PATCH] Fix case. --- hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd | 4 ++-- hdl/vme64x-core/rtl/VME_Funct_Match.vhd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd b/hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd index 2783968..e38e3ea 100644 --- a/hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd +++ b/hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd @@ -335,14 +335,14 @@ begin process (clk_i) -- Write to ADER bytes, if implemented. Take advantage of VITAL-1-1 Rule -- 10.19 - procedure set_ADER (Idx : natural range 0 to 7) is + procedure Set_ADER (Idx : natural range 0 to 7) is variable v_byte : integer; begin if g_ADEM (Idx) /= x"0000_0000" then v_byte := 3 - to_integer(s_addr(3 downto 2)); s_reg_ader(Idx)(8*v_byte+7 downto 8*v_byte) <= data_i; end if; - end set_ADER; + end Set_ADER; variable csr_idx : unsigned(7 downto 4); variable csr_boff : unsigned(3 downto 2); diff --git a/hdl/vme64x-core/rtl/VME_Funct_Match.vhd b/hdl/vme64x-core/rtl/VME_Funct_Match.vhd index de99aea..6a7fc5a 100644 --- a/hdl/vme64x-core/rtl/VME_Funct_Match.vhd +++ b/hdl/vme64x-core/rtl/VME_Funct_Match.vhd @@ -127,7 +127,7 @@ begin if s_function_sel_valid = '1' then mask := (others => '0'); - mask(c_ADEM_M) := g_adem(s_function_sel)(c_ADEM_M); + mask(c_ADEM_M) := g_ADEM(s_function_sel)(c_ADEM_M); addr_o <= addr_i and not mask; decode_sel_o <= '1'; else -- 2.18.1