Operazioni logiche e di bit
R2026bBlocchi per la logica booleana, il confronto dei segnali, il rilevamento dei fronti e la manipolazione dei bit, come Logical Operator e Relational Operator
Utilizzare i blocchi della libreria Logic and Bit Operations per implementare la logica decisionale e il monitoraggio dei segnali nel modello. È possibile eseguire operazioni booleane, confrontare i segnali, rilevare i fronti di salita e di discesa e convertire campi di bit in interi e viceversa.
Per aggiungere blocchi da questa libreria al modello, vedere Add Blocks to Models.
Blocchi
| 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 | Determinare come il segnale si confronta con una costante specificata | |
| Compare To Zero | Determinare come il segnale si confronta con lo zero | |
| Detect Change | Rilevare la variazione del valore del segnale | |
| 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 | Detect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive | |
| Extract Bits | Output selection of contiguous bits from input signal | |
| Float Extract Bits | Extract bits from floating-point input samples (Da 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 | Eseguire l'operazione logica specificata sull'input | |
| Relational Operator | Perform specified relational operation on inputs | |
| Shift Arithmetic | Shift bits or binary point of signal |
Strumenti
| Library Browser | Find and add blocks to model |
Argomenti
- Add Blocks to Models
Use the Library Browser and quick insert menu to insert blocks.