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

bitfield1

bitfield1( 
x_val 
x_bitPosition 
) 
=> x_result

Description

Returns the value of a specified bit of a specified integer. Prefix form of the <> operator.

Arguments

x_val

Integer for which you want to extract the value of a specified bit.

x_bitPosition

Position of the bit whose value you want to extract.

Value Returned

x_result

Value of a single bit.

Examples

x = 0b1001
bitfield1(x 0)
=> 1
bitfield1(x 3)
=> 1

Related Topics

bitfield

setqbitfield1


Return to top
 ⠀
X