Skip to content

Commit

Permalink
process value changeas inside dumpvars and start time 0
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Aug 16, 2021
1 parent 5abcb9d commit a7686d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ const generate = cb => {
.skipTo(enddefinitions);

simulation
.match([' ', '\n', '\t'], simulation)
.select(cmd('$dumpall $dumpoff $dumpon $dumpvars $comment'),
.match([' ', '\n', '\t', '$dumpvars', '$end'], simulation)
.select(cmd('$dumpall $dumpoff $dumpon $comment'),
p.invoke(p.code.store('command'), commandSpan.start(inSimulation)))
.select(cmd('#'),
p.invoke(p.code.store('command'), timeSpan.start(simulationTime)))
Expand Down
2 changes: 1 addition & 1 deletion vcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ METHOD(init) {
state->tmpStr2 = tmpStr2;
state->value = valueBuf;
state->mask = maskBuf;
state->time = UINT64_MAX;
state->time = 0; // UINT64_MAX;
state->digitCount = 0;

napi_value status;
Expand Down
2 changes: 1 addition & 1 deletion wasm_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int init(
state->value = valueBuf;
state->mask = maskBuf;
state->digitCount = 0;
state->time = UINT64_MAX;
state->time = 0; // UINT64_MAX;

set_property_string("status", "declaration");

Expand Down

0 comments on commit a7686d2

Please sign in to comment.