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:
Akash Levy
2025-11-16 15:34:37 -08:00
committed by GitHub
parent f5cae661f4
commit 16a92707fb
5 changed files with 20 additions and 1 deletions
+2 -1
View File
@@ -1226,7 +1226,8 @@ LibertyCell::bufferPorts(// Return values.
} }
output = port; output = port;
} }
else if (!dir->isPowerGround()) { else if (!port->isPwrGnd()) {
// Invalid direction.
input = nullptr; input = nullptr;
output = nullptr; output = nullptr;
break; break;
+1
View File
@@ -0,0 +1 @@
buf_inst
+5
View File
@@ -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]
+11
View File
@@ -0,0 +1,11 @@
module dut (
input A,
output Y
);
sky130_fd_sc_hd__buf_2 buf_inst (
.A(A),
.X(Y)
);
endmodule
+1
View File
@@ -140,6 +140,7 @@ record_example_tests {
record_sta_tests { record_sta_tests {
disconnect_mcp_pin disconnect_mcp_pin
get_filter get_filter
get_is_buffer
get_is_memory get_is_memory
get_lib_pins_of_objects get_lib_pins_of_objects
get_noargs get_noargs