support / src_en /api.get_cell_cofactors.txt
gofeco's picture
Upload 100 files
fe683c0 verified
raw
history blame
656 Bytes
<h3 id='___get_cell_cofactors'>get_cell_cofactors</h3>
<pre>Get combinational cell pin Shannon expansion cofactors
<b>Usage:</b> @cofactors = get_cell_cofactors($cell, $pin);
$cell: Leaf cell name
$pin: Input pin name
@cofactors: Shannon cofactors for the pin of the cell
It has two items if the cell is combinational
It is empty if the cell is sequential or black-box
<b>Examples:</b>
#1. NAND2X1 A pin
@ret = get_cell_cofactors("NAND2X1", "A"); # @ret = (1, B);
#2. AOI222X1 A0 pin
@ret = get_cell_cofactors("OAI222X4", "A0");
returned @ret = ("!(A1*(B0*(C0+C1)+!B0*(B1*(C0+C1))))", "!(B0*(C0+C1)+!B0*(B1*(C0+C1)))");
</pre>