diff options
Diffstat (limited to 'frontends/ast')
| -rw-r--r-- | frontends/ast/simplify.cc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index 5f9f9f49c..f77b59d83 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -1025,7 +1025,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,  	// create name resolution entries for all objects with names  	// also merge multiple declarations for the same wire (e.g. "output foobar; reg foobar;") -	if (type == AST_MODULE) { +	if (type == AST_MODULE || type == AST_INTERFACE) {  		current_scope.clear();  		std::set<std::string> existing;  		int counter = 0; @@ -1710,7 +1710,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,  	current_filename = filename; -	if (type == AST_MODULE) +	if (type == AST_MODULE || type == AST_INTERFACE)  		current_scope.clear();  	// convert defparam nodes to cell parameters @@ -4700,7 +4700,7 @@ void AstNode::mem2reg_as_needed_pass1(dict<AstNode*, pool<std::string>> &mem2reg  	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)) +	if ((type == AST_MODULE || type == AST_INTERFACE) && get_bool_attribute(ID::mem2reg))  		children_flags |= AstNode::MEM2REG_FL_ALL;  	dict<AstNode*, uint32_t> *proc_flags_p = NULL; | 
