Fix `isBuffer` (#329)
* Add support for "well" direction type (nwell, pwell, etc.), and fix isBuffer (+ other functions) to accommodate wells * Just fix isBuffer issue
This commit is contained in:
parent
f5cae661f4
commit
16a92707fb
|
|
@ -1226,7 +1226,8 @@ LibertyCell::bufferPorts(// Return values.
|
|||
}
|
||||
output = port;
|
||||
}
|
||||
else if (!dir->isPowerGround()) {
|
||||
else if (!port->isPwrGnd()) {
|
||||
// Invalid direction.
|
||||
input = nullptr;
|
||||
output = nullptr;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
buf_inst
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
# is_buffer property
|
||||
read_liberty ../examples/sky130hd_tt.lib.gz
|
||||
read_verilog get_is_buffer.v
|
||||
link_design dut
|
||||
report_object_full_names [get_cells -filter is_buffer]
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
module dut (
|
||||
input A,
|
||||
output Y
|
||||
);
|
||||
|
||||
sky130_fd_sc_hd__buf_2 buf_inst (
|
||||
.A(A),
|
||||
.X(Y)
|
||||
);
|
||||
|
||||
endmodule
|
||||
|
|
@ -140,6 +140,7 @@ record_example_tests {
|
|||
record_sta_tests {
|
||||
disconnect_mcp_pin
|
||||
get_filter
|
||||
get_is_buffer
|
||||
get_is_memory
|
||||
get_lib_pins_of_objects
|
||||
get_noargs
|
||||
|
|
|
|||
Loading…
Reference in New Issue