arXiv:2608.25910cs.CLAug 2026

Manuscript Offprint

arXiv:2608.25910

SAMpLE: A SystemC-AMS Machine LEarning-based Framework for Virtual Prototyping

Andrei Mihai Albu, Sara Vinco

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Andrei Mihai Albu and Sara Vinco

Politecnico di Torino, Italy – Emails: andrei.albu@polito.it, sara.vinco@polito.it

Abstract—Machine Learning (ML) is increasingly used in virtual prototypes of embedded systems to model behaviors that are difficult to capture analytically. However, integrating ML models into virtual platform simulation is still typically done through ad hoc solutions, which limits reuse, comparability, and reproducibility. This paper presents SAMpLE, an open-source SystemC-AMS-based framework that integrates ML models as first-class Timed Dataflow (TDF) components through a standardized plug-and-play interface. SAMpLE provides two execution backends: a native C++ backend for online training of lightweight models, and an offline backend for executing externally developed models without requiring re-implementation in C++ or manual integration steps. The framework uses ONNX as a standard model exchange format to enable integration of externally trained ML models into SystemC-AMS simulations, and allows the evaluation of different ML-based solutions within the same testbench, dataset, and simulation workflow. The modular design and unified and reproducible environment will allow future extensions of SAMpLE to new models, without modifying the SystemC-AMS structure.

Index Terms—SystemC-AMS, Virtual Prototyping, Machine Learning, Timed Dataflow (TDF), Hardware/Software Co-Design.

I. INTRODUCTION

Machine Learning (ML) techniques are increasingly adopted in embedded-system design to approximate complex behaviours that are difficult to capture with analytical models or traditional simulation approaches, including power consumption, sensor dynamics, ageing effects, and fault prediction [1]–[3]. Compared to conventional modeling techniques, ML-based surrogates provide a favourable trade-off between accuracy, computational cost, and data-driven adaptability, making them increasingly relevant in system-level virtual prototyping.

Despite this trend, virtual platform languages, such as SystemC and its extensions, do not provide a native or standardized mechanism for integrating ML models into simulation semantics [4], [5]. As a result, ML integration requires manual integration or on external, ad-hoc extensions layered on top of the simulation infrastructure. Existing approaches are therefore fragmented and tool-specific: ML inference is embedded into custom TLM interfaces targeting fixed application domains [6], delegated to external Python runtimes with strong toolchain coupling [7], or manually re-implemented in C++ at the cost of significant engineering effort and limited model portability. These limitations hinder systematic integration of heterogeneous ML techniques within a unified simulation environment.

This work introduces SAMpLE (Systemc-Ams Machine LEarning-based framework for virtual prototyping), a framework that enables direct execution of ML models as native TDF components. The goal of SAMpLE is to extend SystemC-based virtual platforms with support for ML models that can either learn online, adapting incrementally sample-by-sample during simulation execution, or be trained offline and loaded into the simulation via ONNX at elaboration time.

TDF was chosen as its semantics naturally aligns with ML inference: both operate on causal, sample-driven execution, where fixed-size input vectors are transformed into outputs at discrete activation steps. This equivalence allows ML models to be executed directly within the processing() semantics of TDF, removing the need for co-simulation layers, inter-process communication, or model translation.

SAMpLE implements this integration through a lightweight module abstraction that decouples simulation semantics from inference execution. The framework provides two interchangeable back-ends:

  1. ONLINE backend: a native C++ implementation designed for light-weight models and online-adaptive learning algorithms, tightly integrated with the SystemC-AMS simulation kernel;

  2. OFFLINE backend: an ONNX Runtime-based implementation [8] that enables transparent deployment and load of models trained using heterogeneous ML frameworks, e.g., PyTorch, TensorFlow, and scikit-learn [9]–[11].

Both backends conform to a unified interface, enabling heterogeneous ML models to coexist and run under identical SystemC-AMS simulation conditions.

The main contributions of this work are thus as follows:

  • A native integration methodology that embeds ML models directly within SystemC-AMS TDF semantics, eliminating the need for external co-simulation frameworks, middleware layers, or manual model translation;

  • A unified MLModule abstraction that separates simulation behavior from inference execution, enabling interchangeable ML backends within a single simulation environment;

  • A dual-backend architecture supporting both lightweight native C++ implementations and portable ONNX-based deployment of models trained using heterogeneous ML frameworks;

  • An open-source reproducible evaluation framework and Language Reference Manual (LRM)-compliant lifecycle management infrastructure supporting deterministic dataset handling, CSV-driven experimentation, and cross-framework model parity verification [12].

This work has received funding from the European Chips Joint Undertaking under Framework Partnership Agreement No. 101139789 (HAL4SDV).

979-8-3195-3997-7/26/$31.00 ©2026 IEEE

References (40)