remove next-read debug printouts
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Jan 2022 15:16:04 +0000 (15:16 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Jan 2022 15:16:04 +0000 (15:16 +0000)
verilator/microwatt-verilator.cpp

index f77b2c5384dcbc32c2116916ce1e96133b7dacad..93abe8a1d589f5567c5bb1cc6ff20bfb830e20fc 100644 (file)
@@ -203,22 +203,12 @@ int main(int argc, char **argv)
             fflush(dump);
         }
         // read on one clock delay
-        if (next_read) {
+        if (top->bram_re) {
             fprintf(dump, "bram rd addr %08x din %16lx sel %x ",
-                    bram_addr, top->bram_do, top->bram_sel);
-            if ((mem != NULL) && bram_data1 != top->bram_do) { // check contents
-                fprintf(dump, "bram != %16lx ", bram_data1 );
-            }
-            ascii_dump((unsigned char*)&top->bram_do, 8, dump);
+                    top->bram_addr, bram_do, top->bram_sel);
+            ascii_dump((unsigned char*)&bram_do, 8, dump);
             fflush(dump);
         }
-        next_read = top->bram_re;
-        bram_addr = top->bram_addr;
-        bram_data1 = bram_data;
-        // get the contents of the memory
-        if ((mem != NULL) && next_read) {
-            bram_data = ((unsigned long long*)mem)[bram_addr];
-        }
 #endif // BRAM_DEBUG
        }