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

bitfield

bitfield( 
x_val 
x_msb 
x_lsb 
) 
=> x_result

Description

Returns the value of a specified set of bits of a specified integer. Prefix form of the <:> operator.

Arguments

x_val

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

x_msb

Leftmost bit of the set of bits to be extracted.

x_lsb

Rightmost bit of the set of bits to be extracted.

Value Returned

x_result

Value of the set of bits.

Examples

x = 0b1011
bitfield(x 2 0)
=> 3
bitfield(x 3 0)
=> 11

Related Topics

setqbitfield1


Return to top
 ⠀
X