mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Ignore 'whitebox' attr in flatten with "-wb" option
This commit is contained in:
		
							parent
							
								
									f4abc21d8a
								
							
						
					
					
						commit
						290a798cec
					
				
					 2 changed files with 21 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -569,8 +569,8 @@ struct RTLIL::AttrObject
 | 
			
		|||
	void set_bool_attribute(RTLIL::IdString id);
 | 
			
		||||
	bool get_bool_attribute(RTLIL::IdString id) const;
 | 
			
		||||
 | 
			
		||||
	bool get_blackbox_attribute() const {
 | 
			
		||||
		return get_bool_attribute("\\blackbox") || get_bool_attribute("\\whitebox");
 | 
			
		||||
	bool get_blackbox_attribute(bool ignore_wb=false) const {
 | 
			
		||||
		return get_bool_attribute("\\blackbox") || (!ignore_wb && get_bool_attribute("\\whitebox"));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	void set_strpool_attribute(RTLIL::IdString id, const pool<string> &data);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue