mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	Replace assert with error message
This commit is contained in:
		
							parent
							
								
									3cf2afc280
								
							
						
					
					
						commit
						6a0fb3035e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -244,7 +244,8 @@ struct XAigerWriter | |||
| 					if (c.second.is_fully_const()) continue; | ||||
| 					auto is_input = cell->input(c.first); | ||||
| 					auto is_output = cell->output(c.first); | ||||
| 					log_assert(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)); | ||||
| 
 | ||||
| 					if (is_input) { | ||||
| 						for (auto b : c.second.bits()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue