完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
为了实现一个从x“8F”到x“00”的8位递减计数器,我编写了以下代码:
counter_P:进程(rst_b,clk)如果rst_b ='0'则开始计数elsif clk'event和clk ='1'然后如果ce ='1'那么如果count =“00000000”则计数else count count end if; 万一; 结束如果;结束过程; 但是当我用chipcope探测它时,计数就像这样: X “8E” X “8D”,...,X “01” X “00” X “FF”,X “8E”,... 可能是什么原因呢? 谢谢 阿南德 以上来自于谷歌翻译 以下为原文 With the intention of implementing an 8-bit down counter which counts from x"8F" to x"00", I wrote the following code: counter_P: process(rst_b,clk) begin if rst_b='0' then count <= "10001111"; elsif clk'event and clk='1' then if ce='1' then if count="00000000" then count <= "10001111"; else count <= count-1; end if; end if; end if; end process; But when I probed it using chipscope, the count was going like this: x"8E",x"8D",...,x"01",x"00",x"FF",x"8E",... What can be the reason for it? Thanks Anand |
|
相关推荐
4个回答
|
|
如何生成和分发时钟信号“clk”?
它是用BUFG时钟分配缓冲区缓冲的吗? 合成中是否有任何警告或信息消息? 计数器在逻辑模拟中是否正常工作? - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 How is the clock signal "clk" generated and distributed? is it buffered with a BUFG clock distribution buffer? Are there any warnings or info messages from synthesis? Does the counter function correctly in logic simulation? -- Bob Elkind SIGNATURE: README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369 Summary: 1. Read the manual or user guide. Have you read the manual? Can you find the manual? 2. Search the forums (and search the web) for similar topics. 3. Do not post the same question on multiple forums. 4. Do not post a new topic or question on someone else's thread, start a new thread! 5. Students: Copying code is not the same as learning to design. 6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please). 7. You are not charged extra fees for comments in your code. 8. I am not paid for forum posts. If I write a good post, then I have been good for nothing. |
|
|
|
annand写道:
对不起鲍勃, 将信号插入chipcope模块时出错。 我不小心选择了另一个信号而不是所需的“计数”信号。 当我发现错误时,我正要删除帖子。 谢谢你的时间。 阿南德 啊......在ChipScope插入器中找到正确信号的乐趣。 我发现在右边的列中查看表示类型的列很有用 驱动信号的实例。 计数器的输出应来自原语 从“FD”开始而不是“LUT” 我发现的另一件事是默认情况下列表没有按信号名称排序 有助于单击信号名称列标题以在尝试之前对网络进行排序 选一辆公共汽车。 干杯, 的Gabor - Gabor 以上来自于谷歌翻译 以下为原文 annand wrote:Ahh... the joys of finding the right signals in the ChipScope inserter. I have found that it's useful to look at the column on the right which indicates the type of instance that drives the signal. The outputs of a counter should come from primitives starting with "FD" and not "LUT" Another thing I've found is that the list is not sorted by signal name by default so it helps to click the signal name column header to get the nets sorted before trying to select a bus. Cheers, Gabor -- Gabor |
|
|
|
谢谢,Gabor ...现在,我更喜欢ILA核心的显式实例化而不是'Chipscope Inserter'......这样,你可以确定你在ILA中插入了什么......关心Anand
以上来自于谷歌翻译 以下为原文 Thanks, Gabor... Nowadays, I prefer the explicit instantiation of ILA core instead of 'Chipscope Inserter'... This way, you can be sure what you're inserting into the ILA... Regards Anand |
|
|
|
annand写道:谢谢,Gabor ......现在,我更喜欢ILA核心的显式实例化,而不是'Chipscope Inserter'...这样,你可以确定你在ILA中插入了什么......关心Anand
当你需要改变你想要监视的信号时,这是一个正确的皇家痛苦。 说真的,要弄清楚要添加到插入核心的信号并不难。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 annand wrote:And it's a right royal pain when you need to change what signals you want to monitor. Seriously, it's not difficult to figure out what signals you want to add to the inserted core. ----------------------------Yes, I do this for a living. |
|
|
|
只有小组成员才能发言,加入小组>>
2374 浏览 7 评论
2790 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2257 浏览 9 评论
3331 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2422 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
745浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
532浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
355浏览 1评论
749浏览 0评论
1950浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 06:21 , Processed in 1.377128 second(s), Total 85, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号