assign zero to temp
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 09:30:38 +0000 (10:30 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 09:30:38 +0000 (10:30 +0100)
src/peripherals/sdram/sdr_top.bsv

index 56677f83b1effbf41eaa5bb229efbe4d2dba3b8f..d886fd56425f88f50dcaf3c2d85463486b5fb7c4 100644 (file)
@@ -770,7 +770,7 @@ module mksdr_axi4_slave#(Clock clk0) (Ifc_sdr_slave);
 
         interface osdr_den_n = interface Get
             method ActionValue#(Bit#(64)) get;
-                Bit#(64) temp;
+                Bit#(64) temp = 0;
                 for (int i=0; i<8; i=i+1) begin
                   temp[i*8] = sdr_cntrl.osdr_den_n[i];
                 end