From 2412feec33402035d5070f433482b28f8dc778a7 Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Tue, 9 Sep 2025 00:04:21 +0000 Subject: [PATCH] pad cells are not buffers or inverters (#294) 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