mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Using $initstate in "initial assume" and "initial assert"
This commit is contained in:
		
							parent
							
								
									5c166e76e5
								
							
						
					
					
						commit
						7fef5ff104
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1387,7 +1387,12 @@ skip_dynamic_range_lvalue_expansion:; | |||
| 		assign_check = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), new AstNode(AST_REDUCE_BOOL, children[0]->clone())); | ||||
| 		assign_check->children[0]->str = id_check; | ||||
| 
 | ||||
| 		assign_en = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), mkconst_int(1, false, 1)); | ||||
| 		if (current_always == nullptr || current_always->type != AST_INITIAL) { | ||||
| 			assign_en = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), mkconst_int(1, false, 1)); | ||||
| 		} else { | ||||
| 			assign_en = new AstNode(AST_ASSIGN_LE, new AstNode(AST_IDENTIFIER), new AstNode(AST_FCALL)); | ||||
| 			assign_en->children[1]->str = "\\$initstate"; | ||||
| 		} | ||||
| 		assign_en->children[0]->str = id_en; | ||||
| 
 | ||||
| 		newNode = new AstNode(AST_BLOCK); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue