Logic and Bit Operations
R2026bBloques de lógica booleana, comparación de señales, detección de flancos y manipulación de bits, como Logical Operator y Relational Operator
Utilice bloques de la biblioteca Logic and Bit Operations para implementar lógica de decisiones y monitorización de señales en el modelo. Puede realizar operaciones booleanas, comparar señales, detectar flancos ascendentes y descendentes, y llevar a cabo conversiones entre campos de bits y enteros.
Para añadir bloques de esta biblioteca al modelo, consulte Add Blocks to Models.
Bloques
| Bit Clear | Set specified bit of stored integer to zero | |
| Bit Set | Set specified bit of stored integer to one | |
| Bit to Integer Converter | Map vector of bits to corresponding vector of integers | |
| Bitwise Operator | Specified bitwise operation on inputs | |
| Combinatorial Logic | Implement truth table | |
| Compare To Constant | Determinar cómo se compara la señal con una constante especificada | |
| Compare To Zero | Determinar cómo se compara la señal con cero | |
| Detect Change | Detectar cambios en el valor de una señal | |
| Detect Decrease | Detect decrease in signal value | |
| Detect Fall Negative | Detect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative | |
| Detect Fall Nonpositive | Detect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive | |
| Detect Increase | Detect increase in signal value | |
| Detect Rise Nonnegative | Detect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative | |
| Detect Rise Positive | Detectar el flanco ascendente cuando el valor de una señal aumenta a un valor estrictamente positivo y su valor anterior era no positivo | |
| Extract Bits | Output selection of contiguous bits from input signal | |
| Float Extract Bits | Extract bits from floating-point input samples (Desde R2023a) | |
| Integer to Bit Converter | Map vector of integers to vector of bits | |
| Interval Test | Determine if signal is in specified interval | |
| Interval Test Dynamic | Determine if signal is in specified interval | |
| Logical Operator | Perform specified logical operation on input | |
| Relational Operator | Perform specified relational operation on inputs | |
| Shift Arithmetic | Shift bits or binary point of signal |
Herramientas
| Library Browser | Find and add blocks to model |
Temas
- Add Blocks to Models
Use the Library Browser and quick insert menu to insert blocks.