From 5e1cecc38b96c4d1f5ab0de17c85dd9fe5c06919 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Tue, 2 Sep 2025 17:42:06 +0000 Subject: [PATCH] pad cells are not buffers or inverters Signed-off-by: Matt Liberty --- liberty/Liberty.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/liberty/Liberty.cc b/liberty/Liberty.cc index c87093fb..ecf81f24 100644 --- a/liberty/Liberty.cc +++ b/liberty/Liberty.cc @@ -1175,7 +1175,8 @@ LibertyCell::isBuffer() const bufferPorts(input, output); return input && output && hasBufferFunc(input, output) - && !is_level_shifter_; + && !is_level_shifter_ + && !is_pad_; } bool @@ -1195,7 +1196,9 @@ LibertyCell::isInverter() const LibertyPort *output; bufferPorts(input, output); return input && output - && hasInverterFunc(input, output); + && hasInverterFunc(input, output) + && !is_level_shifter_ + && !is_pad_; } bool