Fix a ghdlsynth issue in fast_spr_num
authorAnton Blanchard <anton@linux.ibm.com>
Sat, 11 Jan 2020 06:13:23 +0000 (17:13 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sat, 11 Jan 2020 06:13:23 +0000 (17:13 +1100)
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>
common.vhdl

index 8e24ab9fb11c8d1e4523ac10e32f1248c8b3248a..a27f4f2acfa5bca099bc7451f038e64f9ea0816c 100644 (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));