mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix null pointer dereference after failing to extract DFF from memory.
Fixes #3110.
This commit is contained in:
		
							parent
							
								
									b07ca8756a
								
							
						
					
					
						commit
						48ed6d998b
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -985,7 +985,8 @@ Cell *Mem::extract_rdff(int idx, FfInitVals *initvals) { | |||
| 		c = ff.emit(); | ||||
| 	} | ||||
| 
 | ||||
| 	log("Extracted %s FF from read port %d of %s.%s: %s\n", trans_use_addr ? "addr" : "data", | ||||
| 	if (c) | ||||
| 		log("Extracted %s FF from read port %d of %s.%s: %s\n", trans_use_addr ? "addr" : "data", | ||||
| 			idx, log_id(module), log_id(memid), log_id(c)); | ||||
| 
 | ||||
| 	port.en = State::S1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue