mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Supress error for unhandled \init if whole module selected
This commit is contained in:
		
							parent
							
								
									840bb17089
								
							
						
					
					
						commit
						b97a9cd3f3
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -141,9 +141,10 @@ struct ZinitPass : public Pass { | |||
| 				cell->setPort(ID::Q, initwire); | ||||
| 			} | ||||
| 
 | ||||
| 			for (auto &it : initbits) | ||||
| 				if (donebits.count(it.first) == 0) | ||||
| 					log_error("Failed to handle init bit %s = %s.\n", log_signal(it.first), log_signal(it.second)); | ||||
| 			if (!design->selected_whole_module(module)) | ||||
| 				for (auto &it : initbits) | ||||
| 					if (donebits.count(it.first) == 0) | ||||
| 						log_error("Failed to handle init bit %s = %s.\n", log_signal(it.first), log_signal(it.second)); | ||||
| 		} | ||||
| 	} | ||||
| } ZinitPass; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue