mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	rename shifternew to shifter
This commit is contained in:
		
							parent
							
								
									cf324510f3
								
							
						
					
					
						commit
						5e10720bed
					
				| @ -106,8 +106,8 @@ module alu #(parameter WIDTH=32) ( | ||||
|   assign CondInvB = SubArith ? ~CondMaskB : CondMaskB; | ||||
|   assign {Carry, Sum} = CondShiftA + CondInvB + {{(WIDTH-1){1'b0}}, SubArith}; | ||||
|    | ||||
|   // Shifts
 | ||||
|   shifternew sh(.shA(shA), .rotA(rotA), .Amt(B[`LOG_XLEN-1:0]), .Right(Funct3[2]), .W64(W64), .Y(Shift), .Rotate(Rotate)); | ||||
|   // Shifts (configurable for rotation)
 | ||||
|   shifter sh(.shA(shA), .rotA(rotA), .Amt(B[`LOG_XLEN-1:0]), .Right(Funct3[2]), .W64(W64), .Y(Shift), .Rotate(Rotate)); | ||||
| 
 | ||||
|   // Condition code flags are based on subtraction output Sum = A-B.
 | ||||
|   // Overflow occurs when the numbers being subtracted have the opposite sign 
 | ||||
|  | ||||
| @ -29,7 +29,7 @@ | ||||
| 
 | ||||
| `include "wally-config.vh" | ||||
| 
 | ||||
| module shifternew ( | ||||
| module shifter ( | ||||
|   input  logic [`XLEN:0]     shA,                           // shift Source
 | ||||
|   input  logic [`XLEN-1:0]   rotA,                          // rotate source
 | ||||
|   input  logic [`LOG_XLEN-1:0] Amt,                         // Shift amount
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user