Skip to content

Commit

Permalink
works except for time
Browse files Browse the repository at this point in the history
  • Loading branch information
esromneb committed Sep 28, 2020
1 parent 0d73ffd commit 68a6115
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/wasmparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = async () => {
s.change = {
on: (id, fn) => {
triemit2 = triemit;
// console.log(id, fn);
triee.on(id, fn);
const triggerString = triee.eventNames().join(' ') + ' ';
lib.setTrigger(cxt, triggerString);
Expand Down
2 changes: 1 addition & 1 deletion lib/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module.exports = () => {
let big_value = u8ToBn(view0);
let big_mask = u8ToBn(view1);

console.log(big_value.toString(16));
// console.log(big_value.toString(16));

ee[1](name, time, command, big_value, big_mask);
}, 'viiiiiii');
Expand Down
1 change: 1 addition & 0 deletions test/wasmdump.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('dump', () => {
['"}G', '{u', 'u)'] // array of all signal ids
.map(id =>
inst.change.on(id, (time, cmd, value, mask) => {
console.log(time, cmd, value, mask);
dump.push({
id,
time,
Expand Down
4 changes: 2 additions & 2 deletions vcd_spans.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ int idSpan(vcd_parser_t* state, const unsigned char* p, const unsigned char* end
value[0] = 1;
mask[0] = 0;
}
printf("valueWords %d %d %d\n", valueWords, (int)command, state->digitCount);
printf("\ntriee %lx\n", *value);
// printf("valueWords %d %d %d\n", valueWords, (int)command, state->digitCount);
// printf("\ntriee %llx\n", *value);
#ifndef VCDWASM
napi_value undefined, eventName, aTime, aCommand, aValue, aMask, return_val;
ASSERT(undefined, napi_get_undefined(env, &undefined))
Expand Down

0 comments on commit 68a6115

Please sign in to comment.