mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Allow $past, $stable, $rose, $fell in $global_clock blocks
This commit is contained in:
		
							parent
							
								
									adf1754729
								
							
						
					
					
						commit
						caa78388cd
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -405,9 +405,13 @@ bool AstNode::simplify(bool const_fold, bool at_zero, bool in_lvalue, int stage,
 | 
			
		|||
		current_always_clocked = false;
 | 
			
		||||
 | 
			
		||||
		if (type == AST_ALWAYS)
 | 
			
		||||
			for (auto child : children)
 | 
			
		||||
			for (auto child : children) {
 | 
			
		||||
				if (child->type == AST_POSEDGE || child->type == AST_NEGEDGE)
 | 
			
		||||
					current_always_clocked = true;
 | 
			
		||||
				if (child->type == AST_EDGE && GetSize(child->children) == 1 &&
 | 
			
		||||
						child->children[0]->type == AST_IDENTIFIER && child->children[0]->str == "\\$global_clock")
 | 
			
		||||
					current_always_clocked = true;
 | 
			
		||||
			}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	int backup_width_hint = width_hint;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue