完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我有一个包含3个计数器的代码,每个计数器取决于另一个计数器我的意思是当第二个达到1000时第一个计数器计数加1,当第三个达到1000时第二个计数加1所有这些都在FSM的单个状态中完成 这个系统有一个复位信号但是当我将它下载到FPGA而没有将复位分配给一个按钮时系统无法工作,当我将它分配给一个按钮系统工作时,根据我的知识,如果我没有将重置分配给一个按钮它 将连接到0逻辑,那么为什么它不起作用,这是FPGA中的缺陷吗? 如果这不是缺陷,我需要对FPGA内部的内容进行物理解释。 注意:我正在使用斯巴达3AN启动板 以上来自于谷歌翻译 以下为原文 Hi all, i have a code that includes 3 counters each counter depends on the other one i mean the first counter count by one when the second reach 1000 and the second count by one when the third reach 1000 all this is done in a single state of a FSM this system has a reset signal but when i download it to FPGA without assigning the reset to a button the system doesnt work and when i assigne it to a button the system works , according to my knowladge if i didnt assign the reset to a button it will be connected to 0 logic , so why it doesnt work, is this a defect in the FPGA ? i need a physical explanation to what is hapining inside the FPGA in both cases if this is not a defect. note : i am using spartan 3AN starter board |
|
相关推荐
16个回答
|
|
一种可能的解决方案(Verilog):
初始 开始 enable_reset_pin = 0; enable_reset_pin = 1; //如果没有使用输入引脚进行重置,请注释此行 结束 assign counter_reset = enable_reset_pin? reset_input_pin:0; 根据您的代码(您尚未发布),您可能还有其他问题而不是感染重置值。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 A possible solution (Verilog): initial begin enable_reset_pin = 0; enable_reset_pin = 1; //comment this line if not using input pin for reset end assign counter_reset = enable_reset_pin ? reset_input_pin : 0; Depending on your code (which you have not posted), you may have some other problem than infered reset value. -- 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. |
|
|
|
感谢您的回复,但是如果我没有向FPGA分配任何按钮,FPGA内部会发生什么使它无法工作,实际上我想了解FPGA内部发生了什么
以上来自于谷歌翻译 以下为原文 thanks for your reply , but in case i didnt assign any push button to the FPGA what happens inside the FPGA that makes it didnt work , actually i want to understand what happens inside the FPGA |
|
|
|
|
|
|
|
具体而言,“无效”是什么意思?
- 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 What does "didn't work" mean, specifically? -- 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. |
|
|
|
如果我没有向FPGA分配任何按钮,FPGA内部会发生什么使它无法工作,实际上我想了解FPGA内部发生了什么
如果没有为第一个输入分配引脚,则XST将自动分配引脚。 检查综合后报告中的引脚摘要。 如果您为第一个输入分配了一个引脚,并且按钮被激活,那么您的状态机和计数器将被破坏,因为您没有将第一个输入同步(对齐)到系统时钟(clk)。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 in case i didnt assign any push button to the FPGA what happens inside the FPGA that makes it didnt work , actually i want to understand what happens inside the FPGA If you don't assign a pin for rst input, then XST will assign a pin automatically. Check the pin summary in the post-synthesis reports. If you do assign a pin for rst input, and the pushbutton is activated, then your state machine and counters will be corrupted because you did not synchronise (align) the rst input to the system clock (clk). -- 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. |
|
|
|
实际上,如果我没有给第一个输入分配一个引脚什么都没有,但如果我指定一个按钮,每一件事情都工作得很好,那么为什么代码不工作,如果我没有分配rst?
以上来自于谷歌翻译 以下为原文 actually if i didnt assign a pin to the rst input nothing work at all but if i assign a pushbutton every thing work fine so why the code doesnt work if i didnt assign the rst ? |
|
|
|
ahmedmohamed_45写道:
实际上,如果我没有给第一个输入分配一个引脚什么都没有,但如果我指定一个按钮,每一件事情都工作得很好,那么为什么代码不工作,如果我没有分配rst? 你仍然没有解释你的意思“不起作用”。 但这是我的怀疑。 如果未将rst输入分配给特定引脚,则工具会选择一个。 如果该引脚没有连接任何东西,默认情况下它的逻辑状态(由bitgen选项设置)将被拉高。 因此,您的复位线始终处于断言状态,将状态机保持在复位状态,因此没有任何反应。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 ahmedmohamed_45 wrote:You still haven't explained what you mean by "doesn't work." But here is my suspicion. If you didn't assign the rst input to a particular pin, the tools choose one. And if that pin isn't connected to anything, by default its logic state (set by a bitgen option) will be pulled up. So your reset line is always asserted, holding your state machine in reset, so nothing happens. ----------------------------Yes, I do this for a living. |
|
|
|
我检查了引脚报告,它显示默认情况下复位连接到引脚R17,你怎么看?
以上来自于谷歌翻译 以下为原文 i checked the pin report and it shows that reset is connected by default to pin R17 so what do you think ? |
|
|
|
实际上如果我没有给第一个输入分配一个引脚根本没什么用
请发布您的代码,显示您“如何将引脚分配给第一个输入”。 您是否从代码中删除了第一个端口,或者是否删除了.UCF中的第一个引脚分配? 如果从.UCF中删除了第一个引脚分配,XST将自动为第一个端口分配引脚。 然后,您的结果将取决于Starte Kit板上自动分配的引脚的连接方式。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 actually if i didnt assign a pin to the rst input nothing work at all Please post your code showing how you "didnt assign a pin to the rst input". Did you delete the rst port from your code, or did you delete the rst pin assignment from the .UCF? If you deleted the rst pin assignment from the .UCF, XST will auto-assign a pin for the rst port. Your results will then depend on how this auto-assigned pin is connected on the Starte Kit board. -- 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. |
|
|
|
我的意思是没有任何工作,根本没有输出
以上来自于谷歌翻译 以下为原文 and i mean by nothing work that there is no output at all |
|
|
|
|
|
|
|
我检查了引脚报告,它显示默认情况下复位连接到引脚R17,你怎么看?
引脚R17未连接在电路板上。 如果您的综合默认值是未连接引脚上的弱上拉,则输入电平为“1”。 这意味着rst总是被断言。 即使不使用弱上拉,也可能将未连接的输入感应为“1”,除非您已经进行了下拉。 这有意义吗? - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 i checked the pin report and it shows that reset is connected by default to pin R17 so what do you think ? Pin R17 is unconnected on the board. If your synthesis default is weak pullup on unconnected pins, then input level is '1'. This means that rst is always asserted. Even if the weak pullup is not used, it is likely that the unconnected input is sensed as '1', unless you have infered a pulldown. Does this make sense? -- 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. |
|
|
|
ahmedmohamed_45写道:
我附上了ucf文件 除非我的S3AN启动套件设计副本损坏,否则您已将T15引脚上的复位信号连接到标有“SOUTH”的按钮。 未按下时,SOUTH按钮不连接,按下时连接到供电轨。 电路板用户指南(UG334)强烈声明“所有BTN_ *按钮输入都需要一个内部下拉电阻。” 如果您没有包含 - 而您没有,因为PULLDOWN约束不在您的UCF中 - 默认上拉已启用,因此,您的设计始终处于重置状态。 您已阅读此套件的原理图和用户指南,对吗? ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 ahmedmohamed_45 wrote:Unless my copy of the S3AN start kit design is corrupt, you've connected your reset signal on pin T15 to the button labeled "SOUTH." The SOUTH button makes no connection when not pressed, and is connected to the supply rail when pressed. The User Guide for the board (UG334) claerly states that "All BTN_* push-button inputs require an internal pull-down resistor." If you did not include that -- and you didn't, because the PULLDOWN constraint isn't in your UCF -- the default pullup is enabled and so, again, your design is always in reset. You DID read the schematics and user guide for this kit, right? ----------------------------Yes, I do this for a living. |
|
|
|
我的意思是没有任何工作,根本没有输出
我们生活在硬件世界,而不是软件世界。 以下是您需要理解和接受的两个现实: 内存位置和寄存器永远不会“空”。 它们将包含1和0的某种组合,因此不存在“空”存储器位置或寄存器。 在读取所有有用内容的意义上,FIFO可能是“空的”,但FIFO存储器确实包含1和0的某种组合。 输出永远不会“没有”。 在封装引脚的物理硬件中,它们总是某些东西 - 1或0或某些无效电平 - 或高阻抗(三态)(如果禁用)。 内部LUT和寄存器输出始终是 - 或者是1或0. [旧的FPGA系列支持内部'三态'结构的例外] 当你说“根本没有输出”时,你的意思是输出是一个恒定的'0'水平吗? 这有意义吗? - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 and i mean by nothing work that there is no output at all We are living in the hardware world, not the software world. Here are two realities you need to understand and accept:
Does this make sense? -- 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. |
|
|
|
艾哈迈德
你是否同意在这个主题中学习有用的东西,并且这个非常简单的设计实例? 在您采用复杂的JPEG解码器设计之前,您是否理解为什么我们建议您从一个简单的设计开始 - 学习FPGA的基础知识和设计工具? 欢迎来到FPGA设计的精彩世界。 你在问问题而你正在学习,这些对你来说都是好事。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 Ahmed, Do you agree that you are learning useful things in this thread, and with this very simple design example? Do you understand why we suggested you start with a simple design -- to learn the basics of FPGAs and the design tools -- before you took on the complex JPEG decoder design? Welcome to the wonderful world of FPGA design. You are asking questions and you are learning, and these are good things for you. -- 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. |
|
|
|
我完全同意你的意见,我非常感谢你为我学习的好东西
以上来自于谷歌翻译 以下为原文 I completly agree with you and really i am learning good things thanks a lot for you |
|
|
|
只有小组成员才能发言,加入小组>>
2163 浏览 7 评论
2605 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2079 浏览 9 评论
3149 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2193 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
423浏览 1评论
1523浏览 1评论
在使用xc5vsx95T时JTAG扫片不成功,测量TDO无信号输出
2177浏览 0评论
508浏览 0评论
1641浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 13:42 , Processed in 1.308426 second(s), Total 93, Slave 76 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号