mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Cleanup; reduce Module::derive() calls
This commit is contained in:
		
							parent
							
								
									cea614f5ae
								
							
						
					
					
						commit
						e79127fceb
					
				
					 4 changed files with 164 additions and 153 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| (* abc9_box *) | ||||
| module \$__ABC9_DELAY (input I, output O); | ||||
| module $__ABC9_DELAY (input I, output O); | ||||
|   parameter DELAY = 0; | ||||
|   specify | ||||
|     (I => O) = DELAY; | ||||
|  | @ -7,7 +7,7 @@ module \$__ABC9_DELAY (input I, output O); | |||
| endmodule | ||||
| 
 | ||||
| (* abc9_flop, abc9_box, lib_whitebox *) | ||||
| module $__DFF_N__$abc9_flop(input C, D, Q, (* init=INIT *) output n1); | ||||
| module $__DFF_N__$abc9_flop (input C, D, Q, (* init=INIT *) output n1); | ||||
|   parameter [0:0] INIT = 1'bx; | ||||
|   assign n1 = D; | ||||
|   specify | ||||
|  | @ -17,7 +17,7 @@ module $__DFF_N__$abc9_flop(input C, D, Q, (* init=INIT *) output n1); | |||
| endmodule | ||||
| 
 | ||||
| (* abc9_flop, abc9_box, lib_whitebox *) | ||||
| module $__DFF_P__$abc9_flop(input C, D, Q, (* init=INIT *) output n1); | ||||
| module $__DFF_P__$abc9_flop (input C, D, Q, (* init=INIT *) output n1); | ||||
|   parameter [0:0] INIT = 1'bx; | ||||
|   assign n1 = D; | ||||
|   specify | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ module $__DFF_x__$abc9_flop (input C, D, Q, (* init = INIT *) output n1); | |||
| endmodule | ||||
| 
 | ||||
| (* techmap_celltype = "$__DFF_N_ $__DFF_P_" *) | ||||
| module $__DFF_N__$abc9_flop(input C, D, output Q); | ||||
| module $__DFF_N__$abc9_flop (input C, D, output Q); | ||||
|   parameter _TECHMAP_CELLTYPE_ = ""; | ||||
|   generate if (_TECHMAP_CELLTYPE_ == "$__DFF_N_") | ||||
|     $_DFF_N_ _TECHMAP_REPLACE_ (.C(C), .D(D), .Q(Q)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue