Safety & Functional Requirements¶
Safety Goal¶
Need: (SG) Prevent thermal damage by detecting abnormal temperature conditions and notifying the system to take corrective action. REQ_SAFETY_001
|
Safety Requirements¶
Need: (SR) The system shall detect when temperature exceeds the safe operating limit and report an unsafe state within 100ms. REQ_SAFETY_002
|
Rationale: Timely detection enables corrective action before damage occurs. Architecture: (ARCH) The State Machine sh... (ARCH_FUNC_003) |
Need: (SR) The system shall report a safe state when temperature returns to normal operating range. REQ_SAFETY_003
|
Rationale: Clear state transitions enable predictable system behavior. Architecture: (ARCH) The module shall tra... (ARCH_ERROR_002) |
Functional Requirements¶
Need: (FR) The module shall read analog sensor input and convert it to temperature in degrees Celsius. REQ_FUNC_001
|
Output Range: -40°C to +125°C (covers medical, industrial, automotive domains) Architecture: (ARCH) The Sensor Driver sh... (ARCH_FUNC_001), (ARCH) Raw Temperature Sign... (ARCH_SIGNAL_001), (ARCH) Temperature Reading ... (ARCH_SIGNAL_002) |
Rationale: Prevents spurious state changes from sensor noise. Architecture: (ARCH) The Temperature Filt... (ARCH_FUNC_002) |
Need: (FR) The module shall trigger a safe state alert when temperature ≥ 100°C (configurable threshold). REQ_FUNC_003
|
Architecture: (ARCH) The State Machine sh... (ARCH_FUNC_003), (ARCH) Temperature monitori... (ARCH_DESIGN_001) |
Need: (FR) The module shall trigger a recovery to normal state when temperature ≤ 95°C (hysteresis). REQ_FUNC_004
|
Rationale: 5°C hysteresis prevents oscillation at threshold boundary. Architecture: (ARCH) Temperature monitori... (ARCH_DESIGN_001) |
Design Specifications¶
Need: (ARCH) Temperature monitoring shall be implemented as a state machine with two states: SAFE and UNSAFE. ARCH_DESIGN_001
|
States:
Implementation: (CODE) Implementation is tr... (CODE_IMPL_001) Tests: (TEST) TEST_THRESHOLD_001: ... (TEST_THRESHOLD_001), (TEST) TEST_HYSTERESIS_001:... (TEST_HYSTERESIS_001) |
Need: (ARCH) The module shall store the last valid temperature reading and timestamp. ARCH_DESIGN_002
|
Need: (ARCH) All temperature thresholds shall be stored in read-only configuration registers. ARCH_DESIGN_003
|
Rationale: Prevents accidental or malicious threshold modification during operation. |