주요 콘텐츠

Simulink 블록 관련 고려 사항

R2026b
이름, 수학 연산, 포트 및 서브시스템, 신호 라우팅, 논리 연산 및 비트 연산

Simulink® 블록 이름, 수학 연산, 포트 및 서브시스템, 신호 라우팅, 논리 연산 및 비트 연산에 고무결성 지침을 적용합니다.

모델링 지침

모두 확장

hisl_0031: 모델 파일 이름Use naming conventions for model file names
hisl_0032: 모델 요소 이름Naming conventions for model elements that produce valid identifiers in generated code
hisl_0001: Abs 블록 사용Avoid unsupported data types and protect against integer overflow for the Abs block
hisl_0002: 나머지 및 역수 연산 사용To support robustness of generated code, when using the Math Function block with remainder-after-division (rem) or reciprocal (reciprocal) operations
hisl_0003: 제곱근 연산 사용To support robustness of generated code, when using the Square Root operations
hisl_0028: Reciprocal Square Root 블록 사용Protect inputs of the Reciprocal Square Root block to avoid undesirable results in generated code
hisl_0004: 자연 로그 및 밑이 10인 로그 연산 사용Protect against invalid inputs to logarithm operations
hisl_0005: Product 블록 사용Protect divisor inputs from becoming singular matrices in Product blocks
hisl_0029: Assignment 블록 사용Initialize array fields before first use in the Assignment block to avoid undesirable results in generated code
hisl_0066: Gain 블록 사용Set the Gain block value to a nonzero value other than 1 to support traceability of generated code
hisl_0067: 0으로 나누기 계산 방지Protect the divisor from going to zero in divide operations to improve robustness of generated code
hisl_0006: While Iterator 블록 사용Set maximum number of iterations for While Iterator blocks to support bounded iterative behavior
hisl_0007: For Iterator Subsystem 또는 While Iterator Subsystem 사용Avoid using sample time-dependent blocks within For Iterator or While Iterator subsystems
hisl_0008: For Iterator 블록 사용Configure For Iterator blocks to support bounded iterative behavior in generated code
hisl_0010: If 블록 및 If Action Subsystem 블록 사용Connect If block outports to If Action Subsystem blocks and use else conditions to support verifiable generated code
hisl_0011: Switch Case 블록 및 Action Subsystem 블록 사용To support verifiable generated code, when using the Switch Case block
hisl_0024: Inport 인터페이스 정의Define data type, port dimensions, and sample time for inports to support strong typing and unambiguous model behavior
hisl_0025: 입력 인터페이스의 설계 최솟값/최댓값 지정Provide design minimum and maximum ranges for inport interfaces to support precise input interface specification
hisl_0026: 출력 인터페이스의 설계 최솟값/최댓값 지정Provide design minimum and maximum ranges for outport interfaces to support precise output interface specification
hisl_0075: 라이브러리 링크 사용Avoid disabled and parameterized library links for consistent simulation and code generation (R2022a 이후)
hisl_0077: Outport 인터페이스 정의Define data type, port dimensions, and sample time for outport interfaces (R2022b 이후)
hisl_0078: 동일한 모델링 패턴 사용Account for identical and similar modeling patterns to reduce code complexity (R2024a 이후)
hisl_0079: 루트 입력/출력 포트에 대한 연결Adhere to internal connection constraints on root-level Inport and Outport blocks to improve traceability (R2024a 이후)
hisl_0015: Merge 블록 사용Use Merge blocks with mutually exclusive conditionally executed subsystems to support unambiguous behavior
hisl_0021: 일관된 벡터 인덱싱 방법Use a consistent vector indexing method within a model to reduce the risk of indexing errors
hisl_0022: 인덱스 신호에 대한 데이터형 선택Use an appropriate data type for index signals to prevent unexpected results and enable correct data access
hisl_0023: Variant 블록의 검증Configure Variant block activation time to simplify consistency testing between a model and generated code
hisl_0034: Signal Routing 블록 사용Avoid the ~= operator on floating-point data types in Switch blocks to improve model robustness
hisl_0016: 관계 연산자를 계산하는 블록 사용Avoid using equality and inequality operators on floating-point data types
hisl_0017: 관계 연산자를 계산하는 블록 사용(2)Configure relational operator blocks to produce unambiguous behavior in generated code
hisl_0018: Logical Operator 블록 사용Configure the Logical Operator block to produce unambiguous behavior in generated code
hisl_0073: 비트 시프트 연산 사용Avoid shift operations greater than or equal to the bit-width to prevent violations of coding standards
hisl_0033: Lookup Table 블록 사용Keep out-of-range protection enabled in Lookup Table blocks to protect against out-of-range inputs or indices
hisl_0072: 참조된 모델에 대해 조정 가능형 파라미터 사용Use Simulink.Parameter objects to define tunable parameters and prevent unintended loss of tunability
hisl_0073: 비트 시프트 연산 사용Avoid shift operations greater than or equal to the bit-width to prevent violations of coding standards