摘要
为解决传统 Zynq-7045 平台仿真方案在成本、速度与灵活性方面的局限性,以及软硬件开发分离导致的验证周期长等问题,设计并实现了一种基于 QEMU(Quick Emulator)的 PS(Processing System)和 PL(Programmable Logic)联合仿真系统.该系统采用分层架构设计,通过全系统 CPU(Central Processing Unit)模拟、多核并行处理、内存分层建模及外设虚拟化等手段构建高精度的 PS 子系统.为 PL 子系统引入多精度建模框架,涵盖行为级、RTL(Register Transfer Level)及硬件在环仿真,同时集成动态重构机制,并通过 AXI(Advanced eXtensible In-terface)总线协议仿真、混合通信架构及统一调试追踪系统,实现 PS 与 PL 间的高效数据交换与同步.实验结果表明,该系统能够有效支持软硬件协同的早期开发与验证,在不同仿真模式下可兼顾速度与精度,显著缩短了开发周期并降低了对物理硬件的依赖.
To address the limitations of traditional Zynq-7045 platform simulation solutions in terms of cost,speed,and flexibility,as well as the long verification cycle caused by the separation of software and hardware development,a joint simulation system based on quick simulator(QE-MU)for processing system(PS)and programmable logic(PL)is designed and implemented.A high-precision PS subsystem is constructed through methods such as central processing unit(CPU)simulation,multi-core parallel processing,memory layered modeling,and peripheral vir-tualization,and a layered architecture design is adopted by the system.A high-precision model-ing framework for the PL subsystem is introduced,covering behavior level,register transfer level(RTL),and hardware-in-the-loop simulation,while integrating a dynamic reconstruction mech-anism.Efficient data exchange and synchronization between the PS and PL subsystems are a-chieved through Advanced eXtensible Interface(AXI)bus protocol simulation,a hybrid commu-nication architecture,and a unified debugging and tracking system.The experimental results show that the system can effectively support early development and verification of software hard-ware collaboration,balancing speed and accuracy in different simulation modes,significantly shortening the development cycle and reducing dependence on physical hardware.