mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +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;
 | 
								reject;
 | 
				
			||||||
		if (c.wire->get_bool_attribute(\keep))
 | 
							if (c.wire->get_bool_attribute(\keep))
 | 
				
			||||||
			reject;
 | 
								reject;
 | 
				
			||||||
 | 
							Const init = c.wire->attributes.at(\init, State::Sx);
 | 
				
			||||||
 | 
							if (!init.is_fully_undef() && !init.is_fully_zero())
 | 
				
			||||||
 | 
								reject;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
endcode
 | 
					endcode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -355,6 +355,9 @@ code
 | 
				
			||||||
			reject;
 | 
								reject;
 | 
				
			||||||
		if (c.wire->get_bool_attribute(\keep))
 | 
							if (c.wire->get_bool_attribute(\keep))
 | 
				
			||||||
			reject;
 | 
								reject;
 | 
				
			||||||
 | 
							Const init = c.wire->attributes.at(\init, State::Sx);
 | 
				
			||||||
 | 
							if (!init.is_fully_undef() && !init.is_fully_zero())
 | 
				
			||||||
 | 
								reject;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
endcode
 | 
					endcode
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue