mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-27 00:18:46 +00:00
add morphCell instead of type assignments, test_cell passes for all cells
This commit is contained in:
parent
d2107a9ee4
commit
1be8f8023a
33 changed files with 129 additions and 99 deletions
|
@ -2093,9 +2093,10 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
|||
for (auto it = children.begin(); it != children.end(); it++) {
|
||||
AstNode *child = *it;
|
||||
if (child->type == AST_CELLTYPE) {
|
||||
cell->type = child->str;
|
||||
if (flag_icells && cell->type.begins_with("\\$"))
|
||||
cell->type = cell->type.substr(1);
|
||||
auto type = IdString(child->str);
|
||||
if (flag_icells && type.begins_with("\\$"))
|
||||
type = type.substr(1);
|
||||
cell = cell->module->morphCell(type, cell);
|
||||
continue;
|
||||
}
|
||||
if (child->type == AST_PARASET) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue