summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/projects/embed/verilator/hello_vcd/src/sim_main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/projects/embed/verilator/hello_vcd/src/sim_main.cpp b/tests/projects/embed/verilator/hello_vcd/src/sim_main.cpp
index 0aa763a0a..decc1fff0 100644
--- a/tests/projects/embed/verilator/hello_vcd/src/sim_main.cpp
+++ b/tests/projects/embed/verilator/hello_vcd/src/sim_main.cpp
@@ -10,9 +10,9 @@ int main(int argc, char** argv) {
char const* vcdfile = NULL;
if (argc == 2) {
vcdfile = argv[1];
- } else {
- printf("xmake run hello [vcdfile]\n");
- return -1;
+ }
+ if (!vcdfile) {
+ vcdfile = "hello.vcd";
}
VerilatedContext* contextp = new VerilatedContext;
contextp->commandArgs(argc, argv);