mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Update shifter.sv
Program clean up
This commit is contained in:
		
							parent
							
								
									0f36cbd830
								
							
						
					
					
						commit
						5f73c9727f
					
				@ -41,7 +41,7 @@ module shifter (
 | 
			
		||||
 | 
			
		||||
  assign Sign = A[`XLEN-1] & SubArith;  // sign bit for sign extension
 | 
			
		||||
  if (`XLEN==32) begin // rv32
 | 
			
		||||
    if (`ZBB_SUPPORTED) begin: rotfunnel32 //rv32 shifter with rotates
 | 
			
		||||
    if (`ZBB_SUPPORTED) begin: rotfunnel32 // rv32 shifter with rotates
 | 
			
		||||
      always_comb  // funnel mux
 | 
			
		||||
        case({Right, Rotate})
 | 
			
		||||
          2'b00: Z = {A[31:0], 31'b0};
 | 
			
		||||
@ -84,5 +84,3 @@ module shifter (
 | 
			
		||||
  assign ZShift = Z >> Offset;
 | 
			
		||||
  assign Y = ZShift[`XLEN-1:0];    
 | 
			
		||||
endmodule
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user