process value changeas inside dumpvars and start time 0

This commit is contained in:
Aliaksei Chapyzhenka 2021-08-16 00:00:37 -07:00
parent 5abcb9df7b
commit a7686d25c8
3 changed files with 4 additions and 4 deletions

View File

@ -216,8 +216,8 @@ const generate = cb => {
.skipTo(enddefinitions); .skipTo(enddefinitions);
simulation simulation
.match([' ', '\n', '\t'], simulation) .match([' ', '\n', '\t', '$dumpvars', '$end'], simulation)
.select(cmd('$dumpall $dumpoff $dumpon $dumpvars $comment'), .select(cmd('$dumpall $dumpoff $dumpon $comment'),
p.invoke(p.code.store('command'), commandSpan.start(inSimulation))) p.invoke(p.code.store('command'), commandSpan.start(inSimulation)))
.select(cmd('#'), .select(cmd('#'),
p.invoke(p.code.store('command'), timeSpan.start(simulationTime))) p.invoke(p.code.store('command'), timeSpan.start(simulationTime)))

2
vcd.c
View File

@ -136,7 +136,7 @@ METHOD(init) {
state->tmpStr2 = tmpStr2; state->tmpStr2 = tmpStr2;
state->value = valueBuf; state->value = valueBuf;
state->mask = maskBuf; state->mask = maskBuf;
state->time = UINT64_MAX; state->time = 0; // UINT64_MAX;
state->digitCount = 0; state->digitCount = 0;
napi_value status; napi_value status;

View File

@ -120,7 +120,7 @@ int init(
state->value = valueBuf; state->value = valueBuf;
state->mask = maskBuf; state->mask = maskBuf;
state->digitCount = 0; state->digitCount = 0;
state->time = UINT64_MAX; state->time = 0; // UINT64_MAX;
set_property_string("status", "declaration"); set_property_string("status", "declaration");