From bf1f236998954bbfd5d3695201c225e7a0ce6800 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Fri, 11 Jul 2025 23:12:58 +0200 Subject: [PATCH] dfflibmap: add back tab and quote filters for good vibes --- passes/techmap/dfflibmap.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/passes/techmap/dfflibmap.cc b/passes/techmap/dfflibmap.cc index ade155791..409ac7865 100644 --- a/passes/techmap/dfflibmap.cc +++ b/passes/techmap/dfflibmap.cc @@ -92,6 +92,9 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std auto expr = attr->value; auto cell_name = cell->args[0]; + for (size_t pos = expr.find_first_of("\"\t"); pos != std::string::npos; pos = expr.find_first_of("\"\t")) + expr.erase(pos, 1); + // if this isn't an enable flop, the next_state variable is usually just the input pin name. if (expr[expr.size()-1] == '\'') { data_name = expr.substr(0, expr.size()-1);