Home /Modules/cpu/CPU.md

CPU.md

lib/cpu/cortex-m/CPU.md · 33 line(s) · markdown

SLeeLa ARM Cortex-M CPU Family

Status: Family-level behavioral model Path: /lib/cpu/cortex-m/ Evidence labels: documented = architecture-defined; profile-dependent = requires selected core profile; unspecified = not inferred.

Purpose

Models ARM Cortex-M microcontroller processor profiles for SLeeLa's CPU and SLVM tooling. Cortex-M is a family, not one interchangeable microarchitecture. A configured core profile controls available instructions, registers, exceptions, memory protection, security, FPU, caches, and timing.

Supported profile identifiers

These labels describe architectural profiles, not identical cycle timing or peripheral sets. Implementations may add vendor-specific features.

Model responsibilities

The SLeeLa model covers instruction decode and execution, register and special-register state, exception entry/return, NVIC-facing interrupt behavior, memory accesses, optional MPU/FPU/security features, and profile-aware faults. SoC peripherals and DMA engines are modeled separately and attached through the bus.

Non-goals

This is not an A-profile or AArch64 model. It does not assume a full operating system, MMU, data cache, FPU, TrustZone-M, or identical timing across Cortex-M variants. See SPECIFICATION.md and ARCHITECTURE.md.

Conformance

A profile must reject unsupported instructions and unavailable registers predictably. Unknown behavior is reported as unspecified rather than silently emulated. Timing is exact only where a selected implementation and memory/peripheral model provide enough information.