mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 19:52:31 +00:00 
			
		
		
		
	greenpak4: Can now techmap inferred D latches (without set/reset or output inverter)
This commit is contained in:
		
							parent
							
								
									797c03997e
								
							
						
					
					
						commit
						c53a33143e
					
				
					 3 changed files with 17 additions and 0 deletions
				
			
		|  | @ -3,6 +3,7 @@ OBJS += techlibs/greenpak4/synth_greenpak4.o | ||||||
| OBJS += techlibs/greenpak4/greenpak4_counters.o | OBJS += techlibs/greenpak4/greenpak4_counters.o | ||||||
| OBJS += techlibs/greenpak4/greenpak4_dffinv.o | OBJS += techlibs/greenpak4/greenpak4_dffinv.o | ||||||
| 
 | 
 | ||||||
|  | $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_latch.v)) | ||||||
| $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_map.v)) | $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_map.v)) | ||||||
| $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_sim.v)) | $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_sim.v)) | ||||||
| $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/gp_dff.lib)) | $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/gp_dff.lib)) | ||||||
|  |  | ||||||
							
								
								
									
										15
									
								
								techlibs/greenpak4/cells_latch.v
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								techlibs/greenpak4/cells_latch.v
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | module $_DLATCH_P_(input E, input D, output Q); | ||||||
|  | 	GP_DLATCH _TECHMAP_REPLACE_ ( | ||||||
|  | 		.D(D), | ||||||
|  | 		.nCLK(!E), | ||||||
|  | 		.Q(Q) | ||||||
|  | 		); | ||||||
|  | endmodule | ||||||
|  | 
 | ||||||
|  | module $_DLATCH_N_(input E, input D, output Q); | ||||||
|  | 	GP_DLATCH _TECHMAP_REPLACE_ ( | ||||||
|  | 		.D(D), | ||||||
|  | 		.nCLK(E), | ||||||
|  | 		.Q(Q) | ||||||
|  | 		); | ||||||
|  | endmodule | ||||||
|  | @ -161,6 +161,7 @@ struct SynthGreenPAK4Pass : public ScriptPass | ||||||
| 			run("memory_map"); | 			run("memory_map"); | ||||||
| 			run("opt -undriven -fine"); | 			run("opt -undriven -fine"); | ||||||
| 			run("techmap"); | 			run("techmap"); | ||||||
|  | 			run("techmap -map +/greenpak4/cells_latch.v"); | ||||||
| 			run("dfflibmap -prepare -liberty +/greenpak4/gp_dff.lib"); | 			run("dfflibmap -prepare -liberty +/greenpak4/gp_dff.lib"); | ||||||
| 			run("opt -fast"); | 			run("opt -fast"); | ||||||
| 			if (retime || help_mode) | 			if (retime || help_mode) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue