1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-03-28 10:42:39 +00:00

Fix a ghdlsynth issue in fast_spr_num

I've submitted a bug report for this, but we can work around it easily
for now.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
This commit is contained in:
Anton Blanchard
2020-01-11 17:13:23 +11:00
committed by Anton Blanchard
parent dcee60a729
commit f1d0382587

View File

@@ -346,6 +346,7 @@ package body common is
when SPR_XER =>
n := 12;
when others =>
n := 0;
return "000000";
end case;
return "1" & std_ulogic_vector(to_unsigned(n, 5));