mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-29 18:52:30 +00:00 
			
		
		
		
	Added support for "active high" and "active low" latches in BLIF back-end
This commit is contained in:
		
							parent
							
								
									965b0d59b5
								
							
						
					
					
						commit
						60ac1bd178
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -317,6 +317,18 @@ struct BlifDumper | ||||||
| 				continue; | 				continue; | ||||||
| 			} | 			} | ||||||
| 
 | 
 | ||||||
|  | 			if (!config->icells_mode && cell->type == "$_DLATCH_N_") { | ||||||
|  | 				f << stringf(".latch %s %s al %s%s\n", cstr(cell->getPort("\\D")), cstr(cell->getPort("\\Q")), | ||||||
|  | 						cstr(cell->getPort("\\E")), cstr_init(cell->getPort("\\Q"))); | ||||||
|  | 				continue; | ||||||
|  | 			} | ||||||
|  | 
 | ||||||
|  | 			if (!config->icells_mode && cell->type == "$_DLATCH_P_") { | ||||||
|  | 				f << stringf(".latch %s %s ah %s%s\n", cstr(cell->getPort("\\D")), cstr(cell->getPort("\\Q")), | ||||||
|  | 						cstr(cell->getPort("\\E")), cstr_init(cell->getPort("\\Q"))); | ||||||
|  | 				continue; | ||||||
|  | 			} | ||||||
|  | 
 | ||||||
| 			if (!config->icells_mode && cell->type == "$lut") { | 			if (!config->icells_mode && cell->type == "$lut") { | ||||||
| 				f << stringf(".names"); | 				f << stringf(".names"); | ||||||
| 				auto &inputs = cell->getPort("\\A"); | 				auto &inputs = cell->getPort("\\A"); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue