works except for time

This commit is contained in:
Ben 2020-09-27 18:50:58 -07:00
parent 0d73ffd4f6
commit 68a61150b3
4 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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');

View File

@ -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,

View File

@ -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))