Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

rightshift

rightshift( 
x_val 
x_num 
) 
=> x_result

Description

Returns the integer result of shifting a value a specified number of bits to the right. Prefix form of the >> arithmetic operator. rightshift is logical (that is, vacated bits are 0-filled).

Arguments

x_val

Value to be shifted.

x_num

Number of bits x_val is shifted.

Value Returned

x_result

Result of the operation.

Examples

rightshift(7 2)  
=> 1
rightshift(10 1) 
=> 5

Related Topics

leftshift


Return to top
 ⠀
X