- fixed problems
This commit is contained in:
@@ -585,6 +585,9 @@ package body mips_types is
|
|||||||
elsif word2_en = '1' then
|
elsif word2_en = '1' then
|
||||||
sign := signed and x(15);
|
sign := signed and x(15);
|
||||||
result := (31 downto 16 => sign) & x(15 downto 0);
|
result := (31 downto 16 => sign) & x(15 downto 0);
|
||||||
|
elsif word4_en = '1' then
|
||||||
|
sign := signed and x(7);
|
||||||
|
result := (31 downto 8 => sign) & x(7 downto 0);
|
||||||
else
|
else
|
||||||
sign := signed and x(7);
|
sign := signed and x(7);
|
||||||
result := (31 downto 8 => sign) & x(7 downto 0);
|
result := (31 downto 8 => sign) & x(7 downto 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user