Contenuto principale

Operazioni logiche e di bit

Blocchi di operazioni logiche e di bit, come l’operatore logico e l’operatore relazionale

Utilizzare i blocchi della libreria Logic and Bit Operations per rilevare i cambiamenti nei valori del segnale, eseguire operazioni logiche o relazionali sugli input e per convertire i bit in numeri interi.

Blocchi

Bit ClearSet specified bit of stored integer to zero
Bit SetSet specified bit of stored integer to one
Bit to Integer ConverterMap vector of bits to corresponding vector of integers
Bitwise OperatorSpecified bitwise operation on inputs
Combinatorial LogicImplement truth table
Compare To ConstantDeterminare come il segnale si confronta con una costante specificata
Compare To ZeroDeterminare come il segnale si confronta con lo zero
Detect ChangeRilevare la variazione del valore del segnale
Detect DecreaseDetect decrease in signal value
Detect Fall NegativeDetect falling edge when signal value decreases to strictly negative value, and its previous value was nonnegative
Detect Fall NonpositiveDetect falling edge when signal value decreases to nonpositive value, and its previous value was strictly positive
Detect IncreaseDetect increase in signal value
Detect Rise NonnegativeDetect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative
Detect Rise PositiveDetect rising edge when signal value increases to strictly positive value, and its previous value was nonpositive
Extract BitsOutput selection of contiguous bits from input signal
Float Extract BitsExtract bits from floating-point input samples (Da R2023a)
Integer to Bit ConverterMap vector of integers to vector of bits
Interval TestDetermine if signal is in specified interval
Interval Test DynamicDetermine if signal is in specified interval
Logical OperatorEseguire l'operazione logica specificata sull'input
Relational OperatorPerform specified relational operation on inputs
Shift ArithmeticShift bits or binary point of signal