mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	greenpak4: More fixups of GP_DCMPx cells
This commit is contained in:
		
							parent
							
								
									3491d33863
								
							
						
					
					
						commit
						3690aa556c
					
				
					 1 changed files with 3 additions and 9 deletions
				
			
		|  | @ -132,18 +132,12 @@ module GP_DAC(input[7:0] DIN, input wire VREF, output reg VOUT); | ||||||
| 
 | 
 | ||||||
| endmodule | endmodule | ||||||
| 
 | 
 | ||||||
| module GP_DCMPREF(output OUT); | module GP_DCMPREF(output reg[7:0]OUT); | ||||||
| 	parameter[7:0] REF_VAL = 8'h00; | 	parameter[7:0] REF_VAL = 8'h00; | ||||||
| 	wire[7:0] OUT = REF_VAL; | 	initial OUT = REF_VAL; | ||||||
| endmodule | endmodule | ||||||
| 
 | 
 | ||||||
| module GP_DCMPMUX(input SEL, input IN0, input IN1, input IN2, input IN3, output OUT); | module GP_DCMPMUX(input[1:0] SEL, input[7:0] IN0, input[7:0] IN1, input[7:0] IN2, input[7:0] IN3, output reg[7:0] OUT); | ||||||
| 	wire[1:0] SEL; |  | ||||||
| 	wire[7:0] IN0; |  | ||||||
| 	wire[7:0] IN1; |  | ||||||
| 	wire[7:0] IN2; |  | ||||||
| 	wire[7:0] IN3; |  | ||||||
| 	reg[7:0] OUT; |  | ||||||
| 
 | 
 | ||||||
| 	always @(*) begin | 	always @(*) begin | ||||||
| 		case(SEL) | 		case(SEL) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue