Skip to content

Commit c093995

Browse files
authored
Update subtractor.cc
Connect first node's cin to gnd instead of a pad node.
1 parent 57063b4 commit c093995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parmys/parmys-plugin/core/subtractor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ void split_adder_for_sub(nnode_t *nodeo, int a, int b, int sizea, int sizeb, int
512512
if ((flag == 1 && count == 1) || configuration.adder_cin_global)
513513
connect_nodes(netlist->vcc_node, 0, node[0], node[0]->num_input_pins - 1);
514514
else
515-
connect_nodes(netlist->pad_node, 0, node[0], node[0]->num_input_pins - 1);
515+
connect_nodes(netlist->gnd_node, 0, node[0], node[0]->num_input_pins - 1);
516516

517517
// for normal subtraction: if any input pins beside intial cin is NULL, it should connect to unconn
518518
// for unary subtraction: the first number should has the number of a input pins connected to gnd. The others are as same as normal subtraction

0 commit comments

Comments
 (0)