From 517a17477564aa4ef4d0bf5d246dae4a94b618f7 Mon Sep 17 00:00:00 2001 From: Stan Lee <135666755+stanminlee@users.noreply.github.com> Date: Mon, 11 May 2026 18:41:18 -0700 Subject: [PATCH] Update passes/techmap/clockgate.cc Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- passes/techmap/clockgate.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/passes/techmap/clockgate.cc b/passes/techmap/clockgate.cc index 048ac8581..241f7cbb6 100644 --- a/passes/techmap/clockgate.cc +++ b/passes/techmap/clockgate.cc @@ -208,10 +208,11 @@ static void update_ff_activity_attr(Cell *cell, IdString attr_key, double new_cl std::istringstream iss(cell->get_string_attribute(attr_key)); for (std::string tok; iss >> tok; ) { if (tok.compare(0, 3, "EN=") == 0) continue; // remove EN from attribute + if (!out.empty()) out += " "; if (tok.compare(0, 4, "CLK=") == 0) - out += stringf("CLK=%f ", new_clk_value); // Update CLK value + out += stringf("CLK=%f", new_clk_value); // Update CLK value else - out += tok + " "; // All other values remain unchanged + out += tok; // All other values remain unchanged } cell->set_string_attribute(attr_key, out); }