mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Bugfix in simlib.v for iverilog
This commit is contained in:
		
							parent
							
								
									77e2d39cd0
								
							
						
					
					
						commit
						2145e57ef0
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		|  | @ -455,11 +455,12 @@ input [B_WIDTH-1:0] B; | |||
| output [Y_WIDTH-1:0] Y; | ||||
| 
 | ||||
| generate | ||||
| 	if (B_SIGNED) begin:BLOCK1 | ||||
| 		assign Y = A[$signed(B) +: Y_WIDTH]; | ||||
| 	end else begin:BLOCK2 | ||||
| 		assign Y = A[B +: Y_WIDTH]; | ||||
| 	end | ||||
| 	if (Y_WIDTH > 0) | ||||
| 		if (B_SIGNED) begin:BLOCK1 | ||||
| 			assign Y = A[$signed(B) +: Y_WIDTH]; | ||||
| 		end else begin:BLOCK2 | ||||
| 			assign Y = A[B +: Y_WIDTH]; | ||||
| 		end | ||||
| endgenerate | ||||
| 
 | ||||
| endmodule | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue