Main Content
Bit Set
Set specified bit of stored integer to one
Libraries:
Simulink /
Logic and Bit Operations
HDL Coder /
Logic and Bit Operations
Description
The Bit Set block sets the specified bit of the stored integer to one. Scaling is ignored.
You can specify the bit to be set to one with the Index of bit parameter, where bit zero is the least significant bit.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Extended Capabilities
Version History
Introduced before R2006a
See Also
Bit Clear | Bitwise Operator | Bit Rotate (HDL Coder) | Bit Shift (HDL Coder)