- fixed problems

This commit is contained in:
2022-09-09 15:29:25 +02:00
parent 11c980bc09
commit c80258eefe
+3
View File
@@ -585,6 +585,9 @@ package body mips_types is
elsif word2_en = '1' then
sign := signed and x(15);
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
sign := signed and x(7);
result := (31 downto 8 => sign) & x(7 downto 0);