Benefits

Using the AUTOSAR block in VisualSim offers several user advantages:

  • Early RTOS Validation: Simulate schedulers and timing behavior before code deployment.
  • Functional Safety Testing: Verify compliance with ISO 26262 by injecting faults and monitoring recovery.
  • Optimization: Balance ECU compute load, supervision cycles, and power consumption.
  • Reduced Development Cost: Detect scheduling conflicts before hardware integration.
  • Cross-Domain Coverage: Support for engine, ADAS, communication, and infotainment software testing.
  • Scalability: Model both Classic AUTOSAR ECUs and Adaptive AUTOSAR high-performance platforms.

The AUTOSAR (AUTomotive Open System ARchitecture) library in VisualSim provides a framework for modeling and simulating automotive real-time software environments. It enables the design, scheduling, and validation of tasks, schedulers, and watchdog timers within Electronic Control Units (ECUs). By incorporating fault injection mechanisms, it allows engineers to evaluate how an automotive system behaves under various error conditions, ensuring functional safety and reliability before deployment.

This block is especially valuable in the early stages of ECU software development, where it helps explore timing, resource utilization, and fault recovery strategies. It reduces risk by identifying potential scheduling conflicts or failure points in a simulated environment rather than on costly hardware prototypes.

Overview

  • Runnable Tasks: Define and execute software tasks triggered by specific conditions or events.
  • RTOS (Real-Time Operating System): Manages scheduling, preemption, and task prioritization.
  • Watchdog Timer: Monitors task execution and resets systems in case of failures.
  • Electronic Control Units (ECUs): Model the compute platform for engine, braking, infotainment, and ADAS functions.
  • Fault Injection: Simulate error conditions and study the behavior of recovery strategies.
  • Timing Analysis: Evaluate task response times, jitter, and execution latency.

Supported Standards

The AUTOSAR block in VisualSim aligns with widely used industry standards in automotive embedded software:

  • AUTOSAR Classic Platform (CP): Focused on deeply embedded ECUs with static configurations.
  • AUTOSAR Adaptive Platform (AP): Enables dynamic applications for autonomous and connected vehicles.
  • ISO 26262: Functional safety standard for automotive electronic systems.
  • OSEK/VDX RTOS: Legacy RTOS specification still used in many ECUs.
  • MISRA Guidelines: Compliance support for safe automotive software development.

Key Parameters

Key modeling and configuration parameters include:

  • ECU_Speed_MHz: Defines CPU execution frequency for scheduling calculations.
  • Supervision_Cycles: Configures watchdog timer intervals for task monitoring.
  • Enable_Events: Determines which events trigger specific runnable tasks.
  • Fault Injection Settings: Type, timing, and severity of injected faults.
  • Task Priorities: Priority levels for different ECU functions.
  • Task Deadlines & Response Time: Latency constraints for real-time behavior.
  • Context Switching Overhead: Time required to switch tasks.
  • Memory Footprint: Stack and heap usage of scheduled tasks.
  • Communication Latency: Between tasks and across ECUs.
  • Safety Parameters: Coverage metrics for fault tolerance.

Application

The AUTOSAR block is applied across multiple automotive domains:

  • Engine Control & Powertrain: Task scheduling for ignition, fuel injection, and emissions monitoring.
  • Chassis & Safety Systems: Braking (ABS/ESC), steering, and suspension control requiring deterministic behavior.
  • Advanced Driver Assistance Systems (ADAS): Real-time software for lane keeping, adaptive cruise, and collision avoidance.
  • In-Vehicle Networking: Managing scheduling for CAN, LIN, FlexRay, and Ethernet communication stacks.
  • Infotainment & Telematics: Supporting multimedia and connected car services.
  • Fault-Tolerant Systems: Simulating and testing watchdog and recovery mechanisms for safety compliance.

Integrations

  • Works seamlessly with processor, memory, and bus components in VisualSim.
  • Can be integrated with communication protocol models (CAN, LIN, FlexRay, Ethernet).
  • Supports system-level simulation when combined with automotive hardware IP blocks.
  • Enables co-simulation with hardware safety verification tools.

Schedule a consultation with our experts

    Subscribe