mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-04 22:46:10 +00:00
verilog: Do not set module_not_derived on internal cells
This commit is contained in:
parent
e9cd6ca9e8
commit
93c4d005ff
1 changed files with 5 additions and 2 deletions
|
|
@ -2087,8 +2087,6 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
||||||
check_unique_id(current_module, id, this, "cell");
|
check_unique_id(current_module, id, this, "cell");
|
||||||
RTLIL::Cell *cell = current_module->addCell(id, "");
|
RTLIL::Cell *cell = current_module->addCell(id, "");
|
||||||
set_src_attr(cell, this);
|
set_src_attr(cell, this);
|
||||||
// Set attribute 'module_not_derived' which will be cleared again after the hierarchy pass
|
|
||||||
cell->set_bool_attribute(ID::module_not_derived);
|
|
||||||
|
|
||||||
for (auto it = children.begin(); it != children.end(); it++) {
|
for (auto it = children.begin(); it != children.end(); it++) {
|
||||||
AstNode *child = *it;
|
AstNode *child = *it;
|
||||||
|
|
@ -2151,6 +2149,11 @@ RTLIL::SigSpec AstNode::genRTLIL(int width_hint, bool sign_hint)
|
||||||
}
|
}
|
||||||
log_abort();
|
log_abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set attribute 'module_not_derived' which will be cleared again after the hierarchy pass
|
||||||
|
if (cell->type.isPublic())
|
||||||
|
cell->set_bool_attribute(ID::module_not_derived);
|
||||||
|
|
||||||
for (auto &attr : attributes) {
|
for (auto &attr : attributes) {
|
||||||
if (attr.second->type != AST_CONSTANT)
|
if (attr.second->type != AST_CONSTANT)
|
||||||
input_error("Attribute `%s' with non-constant value.\n", attr.first.c_str());
|
input_error("Attribute `%s' with non-constant value.\n", attr.first.c_str());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue