Don't infer latch for newcrf
authorAnton Blanchard <anton@linux.ibm.com>
Fri, 11 Oct 2019 05:31:14 +0000 (16:31 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Fri, 11 Oct 2019 05:31:14 +0000 (16:31 +1100)
Always initialize newcrf to avoid inferring a latch.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
execute1.vhdl

index 1c5e5cbff0f648cf41405cf5e6804c6aa46b56b0..d0ff461ee376785965fcc89a1ccb7be1adab2f27 100644 (file)
@@ -121,6 +121,7 @@ begin
                result := (others => '0');
                result_with_carry := (others => '0');
                result_en := 0;
+               newcrf := (others => '0');
 
                v := r;
                v.e := Execute1ToExecute2Init;