章宇, 葛宁, 冯重熙. SystemC与SCP结合仿真多处理器嵌入式系统[J]. 北京工业大学学报, 2007, 33(3): 251-256.
    引用本文: 章宇, 葛宁, 冯重熙. SystemC与SCP结合仿真多处理器嵌入式系统[J]. 北京工业大学学报, 2007, 33(3): 251-256.
    ZHANG Yu, GE Ning, FENG Zhong-xi. Multi-processor Embedded System Simulation Based on Combination of SystemC and SCP[J]. Journal of Beijing University of Technology, 2007, 33(3): 251-256.
    Citation: ZHANG Yu, GE Ning, FENG Zhong-xi. Multi-processor Embedded System Simulation Based on Combination of SystemC and SCP[J]. Journal of Beijing University of Technology, 2007, 33(3): 251-256.

    SystemC与SCP结合仿真多处理器嵌入式系统

    Multi-processor Embedded System Simulation Based on Combination of SystemC and SCP

    • 摘要: 为了在保持适当的仿真精度的前提下,使多处理器嵌入式系统(MPES)软硬件协同仿真的速度适合于实际应用,提出了一种基于SystemC及源代码分析器相结合的方法,即将自行开发的源代码分析器工具用于处理嵌入式软件源代码,并将其转换为标注了时间信息的ANSI C代码,通过使用BFM (bus functional model),这些代码可以被集成至SystemC系统模型中作为EPU (embedded processing unit)的时间注释模型.将专用SystemC模块用于硬件建模,并对SystemC仿真内核的同步机制进行扩展以支持新的处理器中心同步仿真.时间注释模型和新的同步机制均可有效地提高仿真速度.使用这一方法成功建模仿真了一台包含12个处理器的通信设备,仿真目标设备1s内的行为耗时59.8s.试验结果表明,该方法可被用于MPES的软硬件协同设计中.

       

      Abstract: To make HW/SW co-simulation of multi-processor embedded systems(MPES) fast enough for real applications while keeping simulation reasonably accurate,a methodology based on combination of SystemC and a source code parser(SCP) is presented.The SCP tool was developed to transform embedded software source codes to ANSI C codes annotated with time information.By using a BFM(bus functional model), these codes can be integrated into the SystemC system model as time annotation(TA) models of an EPU (embedded processing unit).Special SystemC modules were developed for modeling HW.Synchronization mechanism of SystemC simulation kernel was also extended to support a new processor-centralized synchronous simulation.The TA model and new synchronization mechanism can both improve simulation performance effectively.By implementing this methodology,a communication equipment including 12 processors was modeled and simulated successfully.The time required to simulate the target equipment behavior of 1 s is 59.8s.Experiments verified this methodology can be applied to HW/SW co-design of MPES.

       

    /

    返回文章
    返回