mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	celltypes.h: Add extra properties
This commit is contained in:
		
							parent
							
								
									21747c468c
								
							
						
					
					
						commit
						4c9c4c1419
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -29,6 +29,8 @@ struct CellType | ||||||
| 	RTLIL::IdString type; | 	RTLIL::IdString type; | ||||||
| 	pool<RTLIL::IdString> inputs, outputs; | 	pool<RTLIL::IdString> inputs, outputs; | ||||||
| 	bool is_evaluable; | 	bool is_evaluable; | ||||||
|  | 	bool is_combinatorial; | ||||||
|  | 	bool is_synthesizable; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| struct CellTypes | struct CellTypes | ||||||
|  | @ -56,9 +58,9 @@ struct CellTypes | ||||||
| 		setup_stdcells_mem(); | 		setup_stdcells_mem(); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = false) | 	void setup_type(RTLIL::IdString type, const pool<RTLIL::IdString> &inputs, const pool<RTLIL::IdString> &outputs, bool is_evaluable = false, bool is_combinatorial = false, bool is_synthesizable = false) | ||||||
| 	{ | 	{ | ||||||
| 		CellType ct = {type, inputs, outputs, is_evaluable}; | 		CellType ct = {type, inputs, outputs, is_evaluable, is_combinatorial, is_synthesizable}; | ||||||
| 		cell_types[ct.type] = ct; | 		cell_types[ct.type] = ct; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue