FMI 与 SystemC 的结合:一种跨工具虚拟原型设计框架
FMI Meets SystemC: A Framework for Cross-Tool Virtual Prototyping
AI总结:
本文提出一种基于FMI的框架,用于控制和交互SystemC虚拟平台,实现跨工具联合仿真,使目标软件能接收外部环境数据,从而支持早期测试与认证。
摘要:
随着系统变得越来越复杂,对全面测试和虚拟原型设计的需求日益增长。为了模拟整个系统,通常需要多种工具来覆盖不同的部分。这些部分包括系统的硬件以及系统与之交互的环境。用于联合仿真的功能样机接口(FMI)标准可用于连接这些工具。现代系统的控制部分通常是计算单元,例如片上系统(SoC)或微控制器单元(MCU),它们执行来自连接存储器的软件并与外设交互。为了在无需访问物理硬件的情况下开发软件,通常使用全系统模拟器,即所谓的虚拟平台(VP)。用于 VP 开发的 IEEE 标准化框架是 SystemC TLM。SystemC 提供了支持模块化设计和模型交换的接口和概念。然而,SystemC 缺乏对 FMI 的原生支持,这限制了其集成到更广泛的联合仿真环境中。本文提出了一种新颖的框架,用于通过 FMI 控制和交互基于 SystemC 的 VP。我们展示了一个案例研究,展示了 SystemC 仿真中的模拟温度传感器如何通过 FMI 从外部工具获取温度值。这种方法允许未经修改的目标软件在 VP 上运行,并接收来自其他工具的真实环境输入数据,如温度、速度或加速度值。因此,实现了广泛的软件测试和验证。通过提前准备好测试并使用 VP 对软件进行预测试,一旦物理硬件可用,就可以更早地进行诸如 ISO 26262 之类的认证。
英文摘要:
As systems become more complex, the demand for thorough testing and virtual prototyping grows. To simulate whole systems, multiple tools are usually needed to cover different parts. These parts include the hardware of a system and the environment with which the system interacts. The Functional Mock-up Interface (FMI) standard for co-simulation can be used to connect these tools. The control part of modern systems is usually a computing unit, such as a System-on-a-Chip (SoC) or Microcontroller Unit (MCU), which executes software from a connected memory and interacts with peripherals. To develop software without requiring access to physical hardware, full-system simulators, the so-called Virtual Platforms (VPs), are commonly used. The IEEE-standardized framework for VP development is SystemC TLM. SystemC provides interfaces and concepts that enable modular design and model exchange. However, SystemC lacks native FMI support, which limits the integration into broader co-simulation environments. This paper presents a novel framework to control and interact with SystemC-based VPs using the FMI. We present a case study showing how a simulated temperature sensor in a SystemC simulation can obtain temperature values from an external tool via FMI. This approach allows the unmodified target software to run on the VP and receive realistic environmental input data such as temperature, velocity, or acceleration values from other tools. Thus, extensive software testing and verification is enabled. By having tests ready and the software pre-tested using a VP once the physical hardware is available, certifications like ISO 26262 can be done earlier.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。