mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix $global_clock handling vs autowire
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									65412466c5
								
							
						
					
					
						commit
						ce6695e22c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -941,7 +941,7 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage, | |||
| 			} | ||||
| 		} | ||||
| 		if (current_scope.count(str) == 0) { | ||||
| 			if (flag_autowire) { | ||||
| 			if (flag_autowire || str == "\\$global_clock") { | ||||
| 				AstNode *auto_wire = new AstNode(AST_AUTOWIRE); | ||||
| 				auto_wire->str = str; | ||||
| 				current_ast_mod->children.push_back(auto_wire); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue