Set specified bit of stored integer to zero
Simulink / Logic and Bit Operations
HDL Coder / Logic and Bit Operations
The Bit Clear block sets the specified bit, given by its index, of the stored integer to zero. Scaling is ignored.
You can specify the bit to be set to zero with the Index of bit parameter, where bit zero is the least significant bit.
The Bit Clear block supports Simulink® integer, fixed-point, and Boolean data types. The block does not support true floating-point data types or enumerated data types.
Port_1— Input signal
The input signal is the specified bit of the stored integer.
Port_1— Output signal
The output consists of the specified bit set to zero.
fixed point |
Index of bit— Index of bit
Index of bit where bit 0 is the least significant bit.
|Type: scalar or vector|