在带真实PCIE设备的系统级测试环境中,由于驱动程序或应用测试程序的更换,可能需要频繁引导操作系统,造成额外时间开销;同时,由于真实外设的存在,系统调试能力急剧降低,给调试带来巨大挑战。分别对带真实PCIE设备的系统级验证流程及调试进行了优化。验证流程方面,一方面采用"抽屉式"内存管理机制,通过ramdisk直接更换驱动程序及benchmark,避免重复引导OS;另一方面,通过Ethernet通路实现程序更换,进一步节省状态恢复、PCIE热复位时间。调试能力优化方面,利用display buffer,SDL捕捉关键信号并导出处理后还原成波形,并通过选定合适的捕捉信号、buffer深度、降频操作,尽可能增大连续波形长度,改善调试能力。
Due to frequent change of driver or benchmark in system level verification environment with real PCIE device,operation system would be rebooted frequently,this would result in extra simulation time.On the other hand,the weaken debugging ability would contribute to the challenge of debug.As a response,optimizations of both the PCIE system level verification flow and the debugging were presented in this paper.As for the verification flow,a "drawer-style" ram disk management mechanism was adopted.The driver or benchmark was replaced directly,avoiding OS reboot,via this ram disk.And the transportation of driver or benchmark to memory via NIO or Ethernet data path would further avoid both state restore and PCIE hot reset time.As for debug,the signal captured by SDL would be dumped and transported into waveform via display buffer.And the debugging ability would be improved with proper choice of capture signal,buffer depth and doping clock frequency.