mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Reject if (* init *) present
This commit is contained in:
		
							parent
							
								
									34aa3532fb
								
							
						
					
					
						commit
						cd8a640989
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -333,6 +333,9 @@ code
 | 
			
		|||
			reject;
 | 
			
		||||
		if (c.wire->get_bool_attribute(\keep))
 | 
			
		||||
			reject;
 | 
			
		||||
		Const init = c.wire->attributes.at(\init, State::Sx);
 | 
			
		||||
		if (!init.is_fully_undef() && !init.is_fully_zero())
 | 
			
		||||
			reject;
 | 
			
		||||
	}
 | 
			
		||||
endcode
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -355,6 +355,9 @@ code
 | 
			
		|||
			reject;
 | 
			
		||||
		if (c.wire->get_bool_attribute(\keep))
 | 
			
		||||
			reject;
 | 
			
		||||
		Const init = c.wire->attributes.at(\init, State::Sx);
 | 
			
		||||
		if (!init.is_fully_undef() && !init.is_fully_zero())
 | 
			
		||||
			reject;
 | 
			
		||||
	}
 | 
			
		||||
endcode
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue