mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Recognise built-in types (e.g. $_DFF_*)
This commit is contained in:
		
							parent
							
								
									f33abd4eab
								
							
						
					
					
						commit
						e9bb252e77
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -263,12 +263,12 @@ struct XAigerWriter | ||||||
| 				} | 				} | ||||||
| 			} | 			} | ||||||
| 			else { | 			else { | ||||||
| 				bool cell_known = inst_module; | 				bool cell_known = inst_module || cell->known(); | ||||||
| 				for (const auto &c : cell->connections()) { | 				for (const auto &c : cell->connections()) { | ||||||
| 					if (c.second.is_fully_const()) continue; | 					if (c.second.is_fully_const()) continue; | ||||||
| 					auto port_wire = inst_module ? inst_module->wire(c.first) : nullptr; | 					auto port_wire = inst_module ? inst_module->wire(c.first) : nullptr; | ||||||
| 					auto is_input = !cell_known || port_wire->port_input; | 					auto is_input = (port_wire && port_wire->port_input) || !cell_known || cell->input(c.first); | ||||||
| 					auto is_output = !cell_known || port_wire->port_output; | 					auto is_output = (port_wire && port_wire->port_output) || !cell_known || cell->output(c.first); | ||||||
| 					if (!is_input && !is_output) | 					if (!is_input && !is_output) | ||||||
| 						log_error("Connection '%s' on cell '%s' (type '%s') not recognised!\n", log_id(c.first), log_id(cell), log_id(cell->type)); | 						log_error("Connection '%s' on cell '%s' (type '%s') not recognised!\n", log_id(c.first), log_id(cell), log_id(cell->type)); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue