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

setqbitfield1

setqbitfield1( 
s_var 
x_val 
x_bitPosition 
) 
=> x_result

Description

Sets a value into a single bit in the bit field specified by the variable s_var, stores the new value back into the variable, and then returns the new value. Prefix form of the <>= operator.

Arguments

s_var

Variable representing the bit field whose value is to be changed.

x_val

New value of the bit.

x_bitPosition

Position of the bit whose value you are changing.

Value Returned

x_result

New value of s_var.

Examples

x = 0b1001
setqbitfield1(x 1 1)
=> 11
x => 11
setqbitfield1(x 1 2) 
=> 15
x => 15

Related Topics

bitfield


Return to top
 ⠀
X