mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Allow $specify[23] cells in blackbox modules
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									e807e88b60
								
							
						
					
					
						commit
						012c6af088
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -951,6 +951,9 @@ static AstModule* process_module(AstNode *ast, bool defer, AstNode *original_ast
 | 
			
		|||
					continue;
 | 
			
		||||
				if (child->type == AST_PARAMETER || child->type == AST_LOCALPARAM)
 | 
			
		||||
					continue;
 | 
			
		||||
				if (child->type == AST_CELL && child->children.size() > 0 && child->children[0]->type == AST_CELLTYPE &&
 | 
			
		||||
						(child->children[0]->str == "$specify2" || child->children[0]->str == "$specify3"))
 | 
			
		||||
					continue;
 | 
			
		||||
				blackbox_module = false;
 | 
			
		||||
				break;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			@ -1035,6 +1038,9 @@ static AstModule* process_module(AstNode *ast, bool defer, AstNode *original_ast
 | 
			
		|||
					child->delete_children();
 | 
			
		||||
					child->children.push_back(AstNode::mkconst_int(0, false, 0));
 | 
			
		||||
					new_children.push_back(child);
 | 
			
		||||
				} else if (child->type == AST_CELL && child->children.size() > 0 && child->children[0]->type == AST_CELLTYPE &&
 | 
			
		||||
						(child->children[0]->str == "$specify2" || child->children[0]->str == "$specify3")) {
 | 
			
		||||
					new_children.push_back(child);
 | 
			
		||||
				} else {
 | 
			
		||||
					delete child;
 | 
			
		||||
				}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue