Skip to content

Commit aed0d9a

Browse files
committed
Fix #3
1 parent 4142ac1 commit aed0d9a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

netlist_sim.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -615,12 +615,11 @@ stabilizeChip(state_t *state)
615615
void
616616
setNode(state_t *state, nodenum_t nn, BOOL s)
617617
{
618-
BOOL oldstate = get_nodes_pullup(state, nn);
619-
if (s != oldstate) {
620-
set_nodes_pullup(state, nn, s);
621-
set_nodes_pulldown(state, nn, !s);
622-
listout_add(state, nn);
623-
}
618+
set_nodes_pullup(state, nn, s);
619+
set_nodes_pulldown(state, nn, !s);
620+
listout_add(state, nn);
621+
622+
recalcNodeList(state);
624623
}
625624

626625
BOOL

0 commit comments

Comments
 (0)