首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

【源码】手把手教你用Python实现Vivado和ModelSim仿真自动化

1.2.3 simulate脚本 simulate.bat脚本全部内容如下: @echo off set bin_path=C:\questasim64_10.6c\win64 call %bin_path...%/vsim -do "do {xxxxxxxx_simulate.do}" -l simulate.log if "%errorlevel%"=="1" goto END if "%errorlevel...经过对比,发现除了xxxxxxxx_simulate.do文件和simulate.bat脚本存在一点差别外,其他脚本内容完全相同,存在差别的脚本内容如下 xxxxxxxx_simulate.do内容:.../*命令和将想添加的信号替换进xxxxxxxx_wave.do脚本中之外,还需要额外删除脚本xxxxxxxx_simulate.do最后一行的quit -force,以及脚本simulate.bat中vsim.../*后重新覆写xxxxxxxx_simulate.do脚本; 读取生成的simulate.bat脚本文件内容,删除其中vsim命令后的-c选项后,重新覆写simulate.bat脚本; 读取Python

2.8K50

【干货分享】微信小程序单元测试攻略

02.微信小程序测试框架 miniprogram-simulate 这是微信小程序自定义组件测试工具集。主要提供以下功能方便测试: 1.模拟 touch 事件、自定义事件触发。 2.选取子节点。...2.1 架构 (图片来源:掘金技术社区) 2.2 接入 2.21 安装 // 小程序工具集$ npm i --save-dev miniprogram-simulate// Jest测试框架.../dist-wx/components/dialog/index')); // comp是渲染后的组件树 const comp = simulate.render(id, {.../app.data.json");simulate.extendApp(extendAppData); 扩展getCurrentPages()的返回结果,当组件中需要使用页面栈数据时,可通过该方式进行mock...: simulate.extendCurrentPages(["pages/index/index.html"]); 模拟元素滚动: simulate.scroll(comp, 100, 15) /

2.5K40
领券