Skip to content

Commit 57063b4

Browse files
committed
fixed hard subtractor sign extension logic
1 parent 5e7e1d3 commit 57063b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parmys/parmys-plugin/core/subtractor.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ void split_adder_for_sub(nnode_t *nodeo, int a, int b, int sizea, int sizeb, int
568568
}
569569
}
570570
}
571+
connect_nodes(netlist->gnd_node, 0, node[count-1], 0);
572+
connect_nodes(netlist->vcc_node, 0, node[count-1], sizea);
571573
node[count - 1]->output_pins[0] = allocate_npin();
572574
// Pad outputs with a unique and descriptive name to avoid collisions.
573575
node[count - 1]->output_pins[0]->name = append_string("", "%s~dummy_output~%d~%d", node[(count - 1)]->name, (count - 1), 0);

0 commit comments

Comments
 (0)