mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 01:55:33 +00:00
ast/simplify: don't bitblast async ROMs declared as logic
.
Fixes #2020.
This commit is contained in:
parent
d1c8837572
commit
66d0ed2bcc
3 changed files with 11 additions and 2 deletions
|
@ -3477,8 +3477,8 @@ void AstNode::mem2reg_as_needed_pass1(dict<AstNode*, pool<std::string>> &mem2reg
|
|||
}
|
||||
}
|
||||
|
||||
// also activate if requested, either by using mem2reg attribute or by declaring array as 'wire' instead of 'reg'
|
||||
if (type == AST_MEMORY && (get_bool_attribute(ID::mem2reg) || (flags & AstNode::MEM2REG_FL_ALL) || !is_reg))
|
||||
// also activate if requested, either by using mem2reg attribute or by declaring array as 'wire' instead of 'reg' or 'logic'
|
||||
if (type == AST_MEMORY && (get_bool_attribute(ID::mem2reg) || (flags & AstNode::MEM2REG_FL_ALL) || !(is_reg || is_logic)))
|
||||
mem2reg_candidates[this] |= AstNode::MEM2REG_FL_FORCED;
|
||||
|
||||
if (type == AST_MODULE && get_bool_attribute(ID::mem2reg))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue