mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Improved support for $sop cells
This commit is contained in:
		
							parent
							
								
									52bb1b968d
								
							
						
					
					
						commit
						95757efb25
					
				
					 6 changed files with 89 additions and 10 deletions
				
			
		|  | @ -1340,7 +1340,7 @@ wire [WIDTH-1:0] pos_clr = CLR_POLARITY ? CLR : ~CLR; | |||
| 
 | ||||
| genvar i; | ||||
| generate | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bit | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bitslices | ||||
| 		always @(posedge pos_set[i], posedge pos_clr[i]) | ||||
| 			if (pos_clr[i]) | ||||
| 				Q[i] <= 0; | ||||
|  | @ -1409,7 +1409,7 @@ wire [WIDTH-1:0] pos_clr = CLR_POLARITY ? CLR : ~CLR; | |||
| 
 | ||||
| genvar i; | ||||
| generate | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bit | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bitslices | ||||
| 		always @(posedge pos_set[i], posedge pos_clr[i], posedge pos_clk) | ||||
| 			if (pos_clr[i]) | ||||
| 				Q[i] <= 0; | ||||
|  | @ -1485,7 +1485,7 @@ wire [WIDTH-1:0] pos_clr = CLR_POLARITY ? CLR : ~CLR; | |||
| 
 | ||||
| genvar i; | ||||
| generate | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bit | ||||
| 	for (i = 0; i < WIDTH; i = i+1) begin:bitslices | ||||
| 		always @* | ||||
| 			if (pos_clr[i]) | ||||
| 				Q[i] = 0; | ||||
|  |  | |||
|  | @ -452,7 +452,7 @@ endmodule | |||
| 
 | ||||
| `ifndef NOLUT | ||||
| (* techmap_simplemap *) | ||||
| (* techmap_celltype = "$lut" *) | ||||
| (* techmap_celltype = "$lut $sop" *) | ||||
| module _90_lut; | ||||
| endmodule | ||||
| `endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue