From b25501acffb8fa761832dfe9ad1a3138b165ff90 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 13 Nov 2021 23:00:52 +0000 Subject: Remove verilator from Makefile --- scripts/verilator_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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); } -- cgit