mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	write_aiger: make more robust
This commit is contained in:
		
							parent
							
								
									f576721a37
								
							
						
					
					
						commit
						19ec54f956
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -787,6 +787,14 @@ struct AigerBackend : public Backend { | |||
| 		if (top_module == nullptr) | ||||
| 			log_error("Can't find top module in current design!\n"); | ||||
| 
 | ||||
| 		if (!design->selected_whole_module(top_module)) | ||||
| 			log_cmd_error("Can't handle partially selected module %s!\n", log_id(top_module)); | ||||
| 
 | ||||
| 		if (!top_module->processes.empty()) | ||||
| 			log_error("Found unmapped processes in module %s: unmapped processes are not supported in AIGER backend!\n", log_id(top_module)); | ||||
| 		if (!top_module->memories.empty()) | ||||
| 			log_error("Found unmapped memories in module %s: unmapped memories are not supported in AIGER backend!\n", log_id(top_module)); | ||||
| 
 | ||||
| 		AigerWriter writer(top_module, zinit_mode, imode, omode, bmode, lmode); | ||||
| 		writer.write_aiger(*f, ascii_mode, miter_mode, symbols_mode); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue