Mem technology compiling but still reading all zeros

This commit is contained in:
felsabbagh3
2019-10-18 16:45:42 -04:00
parent f7d826593f
commit 4cae140ac1
5 changed files with 112 additions and 94 deletions

View File

@@ -1 +1 @@
#define VCD_OFF
#define VCD_OUTPUT

View File

@@ -21,6 +21,13 @@
#include <verilated_vcd_c.h>
#endif
unsigned long time_stamp = 0;
double sc_time_stamp()
{
return time_stamp / 1000.0;
}
class Vortex
{
public:
@@ -404,6 +411,7 @@ bool Vortex::simulate(std::string file_to_simulate)
counter = 0;
}
++time_stamp;
++stats_total_cycles;
}