From fe9f1add6f738b928749448756df159ccfae59c8 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 25 Nov 2017 15:14:31 -0500 Subject: [PATCH] examples: Fix wide signal overflow, and stop on errors. --- examples/tracing_c/Makefile | 2 +- examples/tracing_c/sim_main.cpp | 4 ++-- examples/tracing_sc/Makefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/tracing_c/Makefile b/examples/tracing_c/Makefile index 70bb03dbd..70d4ffa76 100644 --- a/examples/tracing_c/Makefile +++ b/examples/tracing_c/Makefile @@ -73,7 +73,7 @@ run: @echo @echo "-- RUN ---------------------" @mkdir -p logs - obj_dir/Vtop +trace | tee logs/sim.log + obj_dir/Vtop +trace @echo @echo "-- COVERAGE ----------------" diff --git a/examples/tracing_c/sim_main.cpp b/examples/tracing_c/sim_main.cpp index 76d126688..0f16842f7 100644 --- a/examples/tracing_c/sim_main.cpp +++ b/examples/tracing_c/sim_main.cpp @@ -62,9 +62,9 @@ int main(int argc, char** argv, char** env) { top->clk = 0; top->in_small = 1; top->in_quad = 0x1234; - top->in_wide[0] = 0x1; + top->in_wide[0] = 0x11111111; top->in_wide[1] = 0x22222222; - top->in_wide[2] = 0x33333333; + top->in_wide[2] = 0x3; // Simulate until $finish while (!Verilated::gotFinish()) { diff --git a/examples/tracing_sc/Makefile b/examples/tracing_sc/Makefile index 6a24a4ebc..0c5d3bd46 100644 --- a/examples/tracing_sc/Makefile +++ b/examples/tracing_sc/Makefile @@ -81,7 +81,7 @@ run: @echo @echo "-- RUN ---------------------" @mkdir -p logs - obj_dir/Vtop +trace | tee logs/sim.log + obj_dir/Vtop +trace @echo @echo "-- COVERAGE ----------------"