mirror of
https://github.com/mist64/perfect6502.git
synced 2024-06-07 06:29:28 +00:00
cleanup
This commit is contained in:
parent
44ea268beb
commit
57d2ce2c91
|
@ -391,16 +391,15 @@ addNodeToGroup(nodenum_t i)
|
||||||
|
|
||||||
group_add(i);
|
group_add(i);
|
||||||
|
|
||||||
if (i == vss || i == vcc)
|
/* revisit all transistors that are controlled by this node */
|
||||||
return;
|
if (i != vss && i != vcc)
|
||||||
|
for (count_t t = 0; t < nodes_c1c2count[i]; t++)
|
||||||
for (count_t t = 0; t < nodes_c1c2count[i]; t++)
|
addNodeTransistor(i, nodes_c1c2s[i][t]);
|
||||||
addNodeTransistor(i, nodes_c1c2s[i][t]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline BOOL
|
static inline BOOL
|
||||||
getNodeValue()
|
getGroupValue()
|
||||||
{
|
{
|
||||||
if (group_contains(vss))
|
if (group_contains(vss))
|
||||||
return NO;
|
return NO;
|
||||||
|
@ -414,10 +413,7 @@ getNodeValue()
|
||||||
if (group_contains_pullup)
|
if (group_contains_pullup)
|
||||||
return YES;
|
return YES;
|
||||||
|
|
||||||
if (group_contains_hi)
|
return group_contains_hi;
|
||||||
return YES;
|
|
||||||
else
|
|
||||||
return NO;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -471,7 +467,7 @@ recalcNode(nodenum_t node)
|
||||||
addNodeToGroup(node);
|
addNodeToGroup(node);
|
||||||
|
|
||||||
/* get the state of the group */
|
/* get the state of the group */
|
||||||
BOOL newv = getNodeValue();
|
BOOL newv = getGroupValue();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* now all nodes in this group are in this state,
|
* now all nodes in this group are in this state,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user