mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Replace assert with error message
This commit is contained in:
		
							parent
							
								
									7074ec9cd5
								
							
						
					
					
						commit
						fddb027cab
					
				
					 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