works except for time
This commit is contained in:
parent
0d73ffd4f6
commit
68a61150b3
@ -47,6 +47,7 @@ module.exports = async () => {
|
|||||||
s.change = {
|
s.change = {
|
||||||
on: (id, fn) => {
|
on: (id, fn) => {
|
||||||
triemit2 = triemit;
|
triemit2 = triemit;
|
||||||
|
// console.log(id, fn);
|
||||||
triee.on(id, fn);
|
triee.on(id, fn);
|
||||||
const triggerString = triee.eventNames().join(' ') + ' ';
|
const triggerString = triee.eventNames().join(' ') + ' ';
|
||||||
lib.setTrigger(cxt, triggerString);
|
lib.setTrigger(cxt, triggerString);
|
||||||
|
@ -140,7 +140,7 @@ module.exports = () => {
|
|||||||
let big_value = u8ToBn(view0);
|
let big_value = u8ToBn(view0);
|
||||||
let big_mask = u8ToBn(view1);
|
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);
|
ee[1](name, time, command, big_value, big_mask);
|
||||||
}, 'viiiiiii');
|
}, 'viiiiiii');
|
||||||
|
@ -21,6 +21,7 @@ describe('dump', () => {
|
|||||||
['"}G', '{u', 'u)'] // array of all signal ids
|
['"}G', '{u', 'u)'] // array of all signal ids
|
||||||
.map(id =>
|
.map(id =>
|
||||||
inst.change.on(id, (time, cmd, value, mask) => {
|
inst.change.on(id, (time, cmd, value, mask) => {
|
||||||
|
console.log(time, cmd, value, mask);
|
||||||
dump.push({
|
dump.push({
|
||||||
id,
|
id,
|
||||||
time,
|
time,
|
||||||
|
@ -200,8 +200,8 @@ int idSpan(vcd_parser_t* state, const unsigned char* p, const unsigned char* end
|
|||||||
value[0] = 1;
|
value[0] = 1;
|
||||||
mask[0] = 0;
|
mask[0] = 0;
|
||||||
}
|
}
|
||||||
printf("valueWords %d %d %d\n", valueWords, (int)command, state->digitCount);
|
// printf("valueWords %d %d %d\n", valueWords, (int)command, state->digitCount);
|
||||||
printf("\ntriee %lx\n", *value);
|
// printf("\ntriee %llx\n", *value);
|
||||||
#ifndef VCDWASM
|
#ifndef VCDWASM
|
||||||
napi_value undefined, eventName, aTime, aCommand, aValue, aMask, return_val;
|
napi_value undefined, eventName, aTime, aCommand, aValue, aMask, return_val;
|
||||||
ASSERT(undefined, napi_get_undefined(env, &undefined))
|
ASSERT(undefined, napi_get_undefined(env, &undefined))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user