完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我只想知道有一个字符串类型可以帮助标记我的模拟过程。 我的意思是如果我在模拟CPU,是否有状态变量(字符串类型)会告诉我CPU现在在做什么? 我使用verilog编写我的测试平台。 先谢谢你。 最好的祝福, 彼得 以上来自于谷歌翻译 以下为原文 Hi , I just want to know that is there a string type which can help to label the process of my simulation. I mean if I am simulating a CPU, is there a state variable(string type) will tell me what the CPU is doing now? I use verilog to write my testbench. thank you in advance. best regards, Peter |
|
相关推荐
3个回答
|
|
嗨,我不认为Vivado有任何这样的系统任务。支持的系统任务很少被描述@ http://www.xilinx.com/support/documentation/university/Vivado-Teaching/HDL-Design/2013x/Nexys4
/Verilog/docs-pdf/lab4.pdfhttp://www.origin.xilinx.com/support/documentation/sw_manuals/xilinx2014_1/ug900-vivado-logic-simulation.pdf 谢谢,维杰----------------------------------------------- ---------------------------------------------请将帖子标记为 一个答案“接受为解决方案”,以防它有助于解决您的查询。如果一个帖子引导到解决方案,请给予赞誉。 以上来自于谷歌翻译 以下为原文 Hi, I don't think Vivado has any such system tasks. Few of the supported systems tasks are described @ http://www.xilinx.com/support/documentation/university/Vivado-Teaching/HDL-Design/2013x/Nexys4/Verilog/docs-pdf/lab4.pdf http://www.origin.xilinx.com/support/documentation/sw_manuals/xilinx2014_1/ug900-vivado-logic-simulation.pdfThanks,Vijay -------------------------------------------------------------------------------------------- Please mark the post as an answer "Accept as solution" in case it helped resolve your query. Give kudos in case a post in case it guided to the solution. |
|
|
|
谢谢您的回复。
你认为有没有其他方法来展示模拟过程? 使用modelsim进行vhdl或仿真会吗? 最好, 彼得 以上来自于谷歌翻译 以下为原文 thank you for your reply. Do you think is there any other way to show the process of simulation? Does vhdl or simulating with modelsim will do? best, Peter |
|
|
|
你好,
通过使用$ display,$ monitor或$ strobe显示在模拟过程中更改值的变量,可以逐步看到模拟过程。 这些系统任务也可用于在模拟期间显示文本。 在VHDL中,如果需要显示字符串,可以使用'image属性显示变量值,并使用assert-report语句显示字符串。 断言语句检查指定的条件是否为真,并相应地报告字符串。 要获得有关断言声明的更多详细信息,请查看此链接 http://vhdl.renerta.com/mobile/source/vhd00007.htm 问候,阿希什----------------------------------------------- - - - - - - - - - - - - - - - - - - - - - - - -请注意- 如果提供的信息有用,请将答案标记为“接受为解决方案”。给予您认为有用且回复的帖子。感谢Kudos .-------------------- -------------------------------------------------- ------------------------ 以上来自于谷歌翻译 以下为原文 Hello, The simulation process can be seen stepwise by displaying the variables which are changing the value during simulation process by using $display, $monitor or $strobe. These system tasks can be used to display text as well during simulation. In VHDL, if you need to display a string you can use 'image attribute to display value of a variable and assert-report statement to display a string. Assert statement checks that a specified condition is true and reports a string accordingly. To get further details regarding assertion statement please check this link http://vhdl.renerta.com/mobile/source/vhd00007.htm Regards, Ashish ---------------------------------------------------------------------------------------------- Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful. Give Kudos to a post which you think is helpful and reply oriented. ---------------------------------------------------------------------------------------------- |
|
|
|
只有小组成员才能发言,加入小组>>
2429 浏览 7 评论
2830 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2298 浏览 9 评论
3378 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2468 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1298浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
592浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
455浏览 1评论
2010浏览 0评论
736浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 10:55 , Processed in 1.454166 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号