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 56677f8..d886fd5 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