xics: Fix -Whide warnings

xics.vhdl:83:25⚠️ declaration of "v" hides variable "v" [-Whide]
        function  bswap(v : in std_ulogic_vector(31 downto 0)) return std_ulogic_vector is

xics.vhdl:84:22⚠️ declaration of "r" hides signal "r" [-Whide]
            variable r : std_ulogic_vector(31 downto 0);

Signed-off-by: Joel Stanley <joel@jms.id.au>
pull/390/head
Joel Stanley 2 years ago
parent 60c54fb959
commit c6ca844c88

@ -80,14 +80,14 @@ begin
variable v : reg_internal_t; variable v : reg_internal_t;
variable xirr_accept_rd : std_ulogic; variable xirr_accept_rd : std_ulogic;


function bswap(v : in std_ulogic_vector(31 downto 0)) return std_ulogic_vector is function bswap(vec : in std_ulogic_vector(31 downto 0)) return std_ulogic_vector is
variable r : std_ulogic_vector(31 downto 0); variable rout : std_ulogic_vector(31 downto 0);
begin begin
r( 7 downto 0) := v(31 downto 24); rout( 7 downto 0) := vec(31 downto 24);
r(15 downto 8) := v(23 downto 16); rout(15 downto 8) := vec(23 downto 16);
r(23 downto 16) := v(15 downto 8); rout(23 downto 16) := vec(15 downto 8);
r(31 downto 24) := v( 7 downto 0); rout(31 downto 24) := vec( 7 downto 0);
return r; return rout;
end function; end function;


variable be_in : std_ulogic_vector(31 downto 0); variable be_in : std_ulogic_vector(31 downto 0);

Loading…
Cancel
Save