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

leftshift

leftshift( 
x_val 
x_num 
) 
=> x_result 

Description

Returns the integer result of shifting a value a specified number of bits to the left. Prefix form of the << arithmetic operator. leftshift 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

leftshift(7 2)  
=> 28
leftshift(10 1) 
=> 20

Related Topics

rightshift

Arithmetic Functions


Return to top
 ⠀
X