diff options
-rw-r--r-- | benchmarks/polybench-syn/common.mk | 1 | ||||
-rw-r--r-- | scripts/verilator_main.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/polybench-syn/common.mk b/benchmarks/polybench-syn/common.mk index 4d450e8..0913bf5 100644 --- a/benchmarks/polybench-syn/common.mk +++ b/benchmarks/polybench-syn/common.mk @@ -34,6 +34,7 @@ clean: rm -f *.clog rm -f *.tmp rm -f $(TARGETS) + rm -rf *.verilator .PRECIOUS: %.v %.gcc %.iver .PHONY: all clean diff --git a/scripts/verilator_main.cpp b/scripts/verilator_main.cpp index 4561158..94b6a33 100644 --- a/scripts/verilator_main.cpp +++ b/scripts/verilator_main.cpp @@ -19,7 +19,7 @@ int main(int argc, char **argv) { tb->reset = 0; tb->eval(); tb->clk = 1; tb->eval(); tb->clk = 0; tb->eval(); - int cycles = 1; + size_t cycles = 1; // Tick the clock until we are done while(!tb->finish) { @@ -30,6 +30,6 @@ int main(int argc, char **argv) { cycles++; } - printf("cycles: %d\nfinished: %d\n", cycles, (unsigned)tb->return_val); + printf("cycles: %lu\nfinished: %u\n", cycles, (unsigned)tb->return_val); exit(EXIT_SUCCESS); } |