完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我刚买了ATLYS板(基于Spartan-6)。 我已经阅读了参考手册。 我也知道如何用VHDL编程,我有ISE 13.1。 我想编制一个LED闪光灯,我知道非常简单,但我无法弄清楚如何 使用电路板上的LED或按钮...使用MCU更容易... 那么,对此有何帮助? -Ali 以上来自于谷歌翻译 以下为原文 Hello, I've just bought ATLYS board (based on Spartan-6). I've read the reference manual. I also know how to program in VHDL, and I have ISE 13.1. I want to program a LED flasher, very simple I know, but I cannot figure out how to use the LEDs on the board or the Buttons...with MCUs things were much easier... So, any help with this? -Ali |
|
相关推荐
16个回答
|
|
我想编写一个LED闪光灯,我知道非常简单,但我无法弄清楚如何使用电路板上的LED ......
LED闪光灯的高低切换的美妙之处在于它会闪烁连接两个驱动极性的LED。 或按钮...... 使用FPGA的按钮输入直接控制LED驱动输出。 按钮将变得非常简单匆忙。 使用MCU,事情变得更容易...... 设计的第一个简单步骤是绘制其工作原理的流程图或逻辑图,然后实现流程图或图表的每个逻辑步骤。 另一个想法:访问这个网站为fpga初学者。 那里有很多很好的信息和例子。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 I want to program a LED flasher, very simple I know, but I cannot figure out how to use the LEDs on the board...The beauty of a LED flasher which toggles high and low is that it will flash LEDs wired up for either drive polarity. or the Buttons...Use the button inputs to the FPGA to directly control the LED drive outputs. The buttons will become pretty simple in a hurry. with MCUs things were much easier...First simple step of design is to draw a flowchart or logic diagram of how it works, then implement each logic step of the flowchart or diagram. Another idea: visit this site for fpga beginners. Lots of good information and example to be found there. -- 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. |
|
|
|
鲍勃,谢谢,但这是我的问题:
库IEEE;使用IEEE.STD_LOGIC_1164.ALL;实体简单是端口(A:在STD_LOGIC; Z:输出STD_LOGIC);结束简单;架构arch_simple简单i***egin进程(A)开始如果(A = 1)则Z else Z结束 如果; 结束进程;结束arch_simple; 我该怎么告诉FPGA A意味着SW0和Z意味着LED0? 手册中唯一的信息是SW0 = A10,LED0 = U18 ...... 以上来自于谷歌翻译 以下为原文 Bob, thanks, but here's my problem: library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity Simple is Port ( A : in STD_LOGIC; Z : out STD_LOGIC); end Simple; architecture arch_simple of Simple is begin process(A) begin if (A=1) then Z <= '1'; else Z <= '0'; end if; end process; end arch_simple; How should I tell the FPGA that A means SW0 and Z means LED0 ? The only info in the manual is that SW0=A10, LED0=U18... |
|
|
|
在原理图中,似乎A10(SW0)被“称为”IO_L37N_GCLK12 ......
以上来自于谷歌翻译 以下为原文 In the schematic, it appears that A10 (SW0) is "called" IO_L37N_GCLK12... |
|
|
|
我该怎么告诉FPGA A意味着SW0和Z意味着LED0?
手册中唯一的信息是SW0 = A10,LED0 = U18 ...... 将A连接到SW0并将Z连接到LED0。 引脚详细信息在参考设计.UCF文件和电路板原理图中。 我可以很容易地把它拼出来......在Verilog中。 我可以阅读VHDL,但是我宁愿不发布我在人们依赖它时所写的VHDL代码是正确的。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 How should I tell the FPGA that A means SW0 and Z means LED0 ?Connect A to SW0 and connect Z to LED0. Pinout details are in reference design .UCF file, and in board schematics. I could spell it out for you quite easily... in Verilog. I can read VHDL, but I'd rather not post VHDL code which I've written when people are depending on it to be correct. -- 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. |
|
|
|
我懂了。
然后我会等到任何VHDL程序员帮助我: 以上来自于谷歌翻译 以下为原文 I see. Then I will wait until any VHDL programmer help me in this : ( |
|
|
|
然后我会等到任何VHDL程序员帮助我:
在此期间,建议您花时间学习VHDL。 这是基本VHDL结构的问题。 如果这对您来说是一个挑战,那么您还有很多需要学习的地方。 在等待这一项目的帮助时,我不会浪费任何时间。 您还可以从回顾用VHDL编写的示例和参考设计中学到很多东西。 连接信号引脚确实是一个通用的VHDL课程,并且肯定适用于所有FPGA和FPGA系列。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 Then I will wait until any VHDL programmer help me in this : (In the meantime, suggest you spend your time learning VHDL. This is a matter of a basic VHDL construct. If this is a challenge to you, you have much to learn yet. I wouldn't waste any time while you are waiting for help on this one item. You can also learn quite a bit from reviewing example and reference designs which are written in VHDL. Connecting signal pins really is a generic VHDL lesson, and surely is applicable universally to all FPGAs and FPGA families. -- 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. |
|
|
|
将用户约束文件(UCF)添加到项目中。
从Digilent站点上的Atlys参考UCF,复制您想要使用的LED和开关的定义,并将led(或其任何名称)重命名为Z,切换到AI通常包括整个参考UCF并注释掉 我没有使用的部件,如果存在不适用于您设计中任何内容的约束,您将会收到错误。 以上来自于谷歌翻译 以下为原文 Add a user constraints file (UCF) to your project. From the Atlys reference UCF on the Digilent site, copy the definition for the LED and switch you want to use and rename the led<0> (or whatever it's called) to Z, and the switch to A. I generally include the entire reference UCF and comment out the parts I'm not using, as you'll get errors if there are constraints that don't apply to anything in your design. |
|
|
|
ali.alsaqqa写道:
我懂了。 然后我会等到任何VHDL程序员帮助我: 你会永远等待,像这样: waitforever:进程是 等待; 结束过程等待; 因为使用VHDL的人不是程序员,我们是硬件设计工程师。 你不编写VHDL程序。 您编写描述您要创建的硬件的VHDL。 这不是一个无关紧要的区别。 ----------------------------是的,我这样做是为了谋生。 以上来自于谷歌翻译 以下为原文 ali.alsaqqa wrote: You'll wait forever, like this: waitforever : process is wait; end process waitforever; because people who use VHDL are not programmers, we are hardware design engineers. You do not write a VHDL program. You write VHDL that describes the hardware you wish to create. This is not an irrelevant distinction. ----------------------------Yes, I do this for a living. |
|
|
|
所以你想出来了吗?
我只是简单地看了你的HDL,但我没有看到任何错误。 至少不是在逻辑上,但那些“糟糕的同步描述”似乎偷偷摸摸我。 答案确实在UCF文件中。 当您使用uC时,您刚刚声明了一个可变LED,将其设置为1并期望LED继续运行吗? 您需要将该变量LED映射到GPIO。 所以你会有类似PORTA | = LED的东西吗? 这就是UCF文件的作用。 好吧,它实际上更像是将PORTA映射到芯片上的实际引脚。 我不记得语法,但它很简单,它在示例项目中(如果示例是正确的,Digilent总是在我购买的板上出错)。 在.ucf文件中查找包含您要使用的LED的行。 它将从NET开始,我记得那么多。 Digilent通常也会在电路板上写下这些信息,所以在LED和SW旁边你应该看到一个字母,后面跟着丝网印刷中的1或2个数字。 所以你会有类似的东西 NET LED LOC = X ##; (大致) NET SW0 LOC = X ##; (大致) 现在,当您写入LED时,硬件知道该怎么做。 你似乎知道足够的VHDL来做到这一点。 我不知道为什么有人会给你带来很多困难。 第一张海报应该说“你需要一个UCF文件”并关闭线程lol。 提到了UCF文件,但随之而来的是太多kack ...... VHDL或Verilog都不会花费你超过一周的时间来学习。 我参加了一个我们使用Basys板的课程,在课程结束时我设计了一个8位处理器,一个VGA乒乓球游戏和一个2通道VGA示波器。 我不认为教授花了3个多小时教授VHDL。 就像有人在你不编写VHDL程序之前所说的那样,你用它来描述硬件,只要你明白你想用硬件做什么,只需要问谷歌如何在HDL中说出来。 以上来自于谷歌翻译 以下为原文 So did you figure this out yet? I only briefly looked at your HDL but I didn't see any errors. At least not in the logic but those "bad synchrnous descriptions" seem to sneak up on me. The answer is indeed in the UCF file. When you were working with uC's did you just declare a variable LED, set it to 1 and expect the LED to go on? You needed to map that variable LED to your GPIO. So you would have something like PORTA |= LED right? That's what the UCF file does. Well kindof, it's actually more like mapping PORTA to the actual pins on the chip. I can't remember the syntax but it's simple and it's in the example project (provided the example is correct, Digilent has always made errors with the boards I have purchased). Look for the line in the.ucf file that has the LED you want to use. It will start with NET, I remember that much. Digilent also usually writes these right on the board so next to the LED and SW you should see a letter followed by 1 or 2 numbers in the silkscreen. So you will have something like NET LED LOC=X##; (roughly) NET SW0 LOC=X##; (roughly) Now when you write to LED the hardware knows what to do. You seem to know enough VHDL to do this. I don't know why anyone what giving you a hard time about that. First poster should have said "you need a UCF file" and closed the thread lol. UCF file was mentioned but too much kack along with it... Neither VHDL or Verilog should take you more than a week to learn. I took a class in which we used the Basys board and by the end of the class I had designed an 8 bit processor, a VGA pong game and a 2 channel VGA oscilliscope. I don't think the professor spent more than 3 hours teaching VHDL. Like someone said before you don't write a VHDL program, you use it to describe hardware and as long as you understand what you want to do with the hardware, it's just a matter of asking Google how to say it in HDL. |
|
|
|
“无论是VHDL还是Verilog都不会花费你超过一周的时间来学习。”我必须是一个*非常*慢学习者,因为12年后我仍然学习更好的方法......但是,40小时的学习应该让大多数人学习
远远超过'新手'阶段。 ------------------------------------------“如果它不起作用 模拟,它不会在板上工作。“ 以上来自于谷歌翻译 以下为原文 "Neither VHDL or Verilog should take you more than a week to learn." I must be a *really* slow learner, as after 12 years I'm still learing better ways... However, 40 hours of study should get most people well past the 'novice' stage. ------------------------------------------ "If it don't work in simulation, it won't work on the board." |
|
|
|
然而,40个小时的学习应该让大多数人远远超过“新手”阶段。
如果是Verilog,可能需要80个小时。 VHDL的两倍(至少)。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 However, 40 hours of study should get most people well past the 'novice' stage. Possibly 80 hours, if Verilog. Double that (at least) for VHDL. -- 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. |
|
|
|
您好,我已成功完成了一些简单的项目,如LED闪光灯,简单加法器等。
我现在正在学习Xilinix大学计划的教程。 他们教授如何专门使用MicroBlaze处理器 与ATLYS开发板。 谢谢你们的帮助,如果我需要任何进一步的帮助,我会发布一个新主题。 再次感谢。 问候, 阿里 以上来自于谷歌翻译 以下为原文 Hello, I have successfully done some simple projects, like LED flasher, simple adder, etc. I am now studying Xilinix University Program's tutorials. They teach how to use MicroBlaze processor specifically with ATLYS development board. Thank you guys for your help, If I need any further assistance I will post a new topic. Thanks again. Regards, Ali |
|
|
|
我并不是故意暗示我在一周内学会了有关VHDL和Verilog的所有知识。
但是我确定了足够的知识来设计(在我的意见中)一些非常酷的项目在几天之内。 我仍然看着事物并想“这到底是什么?” 以上来自于谷歌翻译 以下为原文 I didn't mean to imply I learned all there is to know about VHDL and Verilog in a week. But I definitley learned enough to design (in my oppinion) some really cool projects in a matter of days. I still look at things and think "what the hell is this?" |
|
|
|
你能发布一些你正在关注的Microblaze教程的链接吗?
这有什么机会吗? http://www.xilinx.com/university/workshops/embedded-system-design-flow/index.htm 以上来自于谷歌翻译 以下为原文 Can you post some links to these Microblaze tutorials you are following? Would it be this stuff by any chance? http://www.xilinx.com/university/workshops/embedded-system-design-flow/index.htm |
|
|
|
我并不是故意暗示我在一周内学会了有关VHDL和Verilog的所有知识。
但是我确定了足够的知识来设计(在我的意见中)一些非常酷的项目在几天之内。 我仍然看着事物并想“这到底是什么?” 谢谢你的澄清。 看完你之前的帖子后,我开始感到非常不适合。 我现在感觉好多了,我想我会取消我的守夜人工作申请。 - 鲍勃埃尔金德 签名:新手的自述文件在这里:http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369总结:1。 阅读手册或用户指南。 你读过手册了吗? 你能找到手册吗?2。 搜索论坛(并搜索网页)以寻找类似的主题。 不要在多个论坛上发布相同的问题。 不要在别人的主题上发布新主题或问题,开始新的主题!5。 学生:复制代码与学习设计不同.6“它不起作用”不是一个可以回答的问题。 提供有用的详细信息(请与网页,数据表链接).7。 您的代码中的评论不需要支付额外费用。 我没有支付论坛帖子的费用。 如果我写一篇好文章,那么我一无所获。 以上来自于谷歌翻译 以下为原文 I didn't mean to imply I learned all there is to know about VHDL and Verilog in a week. But I definitley learned enough to design (in my oppinion) some really cool projects in a matter of days. I still look at things and think "what the hell is this?" Thank you for the clarification. After reading your earlier post, I was starting to feel woefully inadequate. I feel better now, and I think I'll cancel my application for the night watchman job. -- 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. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
2178 浏览 7 评论
2616 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2090 浏览 9 评论
3156 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2211 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
448浏览 1评论
1540浏览 1评论
在使用xc5vsx95T时JTAG扫片不成功,测量TDO无信号输出
2184浏览 0评论
515浏览 0评论
1658浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-5-13 08:57 , Processed in 1.452007 second(s), Total 106, Slave 90 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号