System Architecture¶
Component Architecture¶
Need: (ARCH) The Thermal Sensor Interface Module (TSIM) shall consist of three components: Sensor Driver, Temperature Filter, and State Machine. ARCH_001
|
TSIM Component Architecture - Links: (ARCH) The Thermal Sensor I... (ARCH_001), (ARCH) The Sensor Driver sh... (ARCH_FUNC_001), (ARCH) The Temperature Filt... (ARCH_FUNC_002), (ARCH) The State Machine sh... (ARCH_FUNC_003)¶
Data Flow & Timing¶
TSIM Data Flow (Budget: (SR) The system shall detec... (REQ_SAFETY_002) @ 100ms) - Architecture: (ARCH) The Sensor Driver sh... (ARCH_FUNC_001), (ARCH) The Temperature Filt... (ARCH_FUNC_002), (ARCH) The State Machine sh... (ARCH_FUNC_003)¶
The diagram above shows the complete data flow from sensor input through each processing stage, with timing allocations required by (SR) The system shall detec... (REQ_SAFETY_002).
Rationale: 100Hz > 2× highest temperature change rate expected in any domain. |
Need: (ARCH) The Temperature Filter shall apply a 5-sample moving average before state evaluation. ARCH_FUNC_002
|
Need: (ARCH) The State Machine shall evaluate temperature against thresholds and output state transitions within 50ms of detection. ARCH_FUNC_003
|
Timing Budget: 50ms margin within 100ms requirement ((SR) The system shall detec... (REQ_SAFETY_002)). Tests: (TEST) TEST_THRESHOLD_001: ... (TEST_THRESHOLD_001), (TEST) TEST_HYSTERESIS_001:... (TEST_HYSTERESIS_001) |
Signal Definition¶
Need: (ARCH) Raw Temperature Signal shall be a 12-bit analog input representing -40°C to +125°C. ARCH_SIGNAL_001
|
ADC Resolution: 12-bit (4096 steps) Range Mapping:
Tested by: (TEST) TEST_CONVERSION_001:... (TEST_CONVERSION_001) |
Need: (ARCH) Temperature Reading shall be a 16-bit signed integer in units of 0.1°C. ARCH_SIGNAL_002
|
Range: -400 to +1250 (representing -40.0°C to +125.0°C) |
Error Handling¶
Need: (ARCH) If sensor reading is invalid (out of physical bounds), the module shall remain in current state and log an error. ARCH_ERROR_001
|
Rationale: Conservative approach—hold last safe state rather than guess. |
Need: (ARCH) The module shall track sensor read failures; after 10 consecutive failures, it shall enter UNSAFE state. ARCH_ERROR_002
|
Rationale: Domain-agnostic fail-safe for sensor degradation (medical, industrial, automotive contexts). Tested by: (TEST) TEST_FAIL_SAFE_001: ... (TEST_FAIL_SAFE_001) |
SEooC Boundary Definition¶
Domain-Agnostic SEooC Pattern - Architecture: (ARCH) The TSIM shall be a ... (ARCH_SEOOC_001), (ARCH) TSIM does not implem... (ARCH_SEOOC_002)¶
Need: (ARCH) The TSIM shall be a Safety Element out of Context (SEooC) assuming the integrating system provides safe shutdown capability. ARCH_SEOOC_001
|
Integration Assumptions:
Domain Examples (shown above):
|
Need: (ARCH) TSIM does not implement actual shutdown or corrective action; responsibility transfers to integrating system. ARCH_SEOOC_002
|
Rationale: Enables domain-agnostic reuse across medical (controlled environments), industrial (process control), robotics (motor shutdown), and automotive (powertrain management). |