Logic and Bit Operations
R2026b부울 논리, 신호 비교, 에지 감지, 비트 조작을 위한 블록(예: Logical Operator, Relational Operator)
Logic and Bit Operations 라이브러리의 블록을 사용하여 모델에서 의사 결정 로직 및 신호 모니터링을 구현할 수 있습니다. 부울 연산을 수행하고, 신호를 비교하며, 상승 에지와 하강 에지를 감지하고, 비트 필드와 정수 간을 변환할 수 있습니다.
이 라이브러리의 블록을 모델에 추가하려면 모델에 블록 추가하기 항목을 참조하십시오.
블록
| Bit Clear | 저장된 정수의 지정된 비트를 0으로 설정 | |
| Bit Set | 저장된 정수의 지정된 비트를 1로 설정 | |
| Bit to Integer Converter | Map vector of bits to corresponding vector of integers | |
| Bitwise Operator | 입력에 대해 지정된 비트별 연산 | |
| Combinatorial Logic | Implement truth table | |
| Compare To Constant | 신호와 지정된 상수를 비교하는 방법 결정 | |
| Compare To Zero | 신호를 0과 비교하는 방법 결정 | |
| Detect Change | 신호 값의 변경 감지 | |
| Detect Decrease | 신호 값의 감소 감지 | |
| 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 Rise Nonnegative | Detect rising edge when signal value increases to nonnegative value, and its previous value was strictly negative | |
| Detect Rise Positive | 신호 값이 순양수 값으로 증가하고 이전 값이 양수가 아닌 경우 상승 에지 감지 | |
| Extract Bits | Output selection of contiguous bits from input signal | |
| Float Extract Bits | Extract bits from floating-point input samples (R2023a 이후) | |
| Integer to Bit Converter | Map vector of integers to vector of bits | |
| Interval Test | 신호가 지정된 구간 내에 있는지 확인 | |
| Interval Test Dynamic | Determine if signal is in specified interval | |
| Logical Operator | 입력에 대해 지정된 논리 연산 수행 | |
| Relational Operator | 입력에 대해 지정된 관계 연산 수행 | |
| Shift Arithmetic | Shift bits or binary point of signal |
툴
| 라이브러리 브라우저 | 블록을 찾고 모델에 추가 |
도움말 항목
- 모델에 블록 추가하기
라이브러리 브라우저와 빠른 삽입 메뉴를 사용하여 블록을 삽입합니다.