3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-23 12:48:54 +00:00

dfflibmap: add back tab and quote filters for good vibes

This commit is contained in:
Emil J. Tywoniak 2025-07-11 23:12:58 +02:00
parent c6e1d461fa
commit bf1f236998

View file

@ -92,6 +92,9 @@ static bool parse_next_state(const LibertyAst *cell, const LibertyAst *attr, std
auto expr = attr->value; auto expr = attr->value;
auto cell_name = cell->args[0]; 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 this isn't an enable flop, the next_state variable is usually just the input pin name.
if (expr[expr.size()-1] == '\'') { if (expr[expr.size()-1] == '\'') {
data_name = expr.substr(0, expr.size()-1); data_name = expr.substr(0, expr.size()-1);