完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,
我正在寻找有关如何在Spartan 3入门套件上编程Spartan 3的信息。 我查看了主板附带的用户手册,并相信我遗漏了一些东西。 当我对电路板进行编程时,我现在有iMPACT告诉我电路板已编程,我可以验证编程。 我可以使用我的.bin文件对FPGA进行编程,或者我可以使用从bin文件生成的PROM文件对PROM进行编程。 在对电路板进行编程的一类尝试中,我将跳线设置为“默认,从PROM加载”模式,在复位时,FPGA将从PROM获取其配置..通过此跳线设置,ISE似乎能够 通过JTAG控制电路板并报告编程成功。 我假设这种编程模式无效,但ISE / IMPACT不会给我一个错误。 在对电路板进行编程的第二类尝试中,我将跳线设置为JTAG编程模式,如手册中所述(并且正如其中一位Xilinx主持人在线程中的前一篇文章中所述)。 在这种情况下,我认为电路板编程没有任何区别。 ISE / IMPACT不会报告错误,在这种模式下,我也可以验证我编程的内容是放在FPGA中还是放在PROM中,具体取决于我尝试编程的内容。 我相信我在ISE中选择了正确的零件和包装。 我不确定的一件事是设备的速度设置。我不知道如何从零件包装上的丝网印刷中确定。 我尝试了ISE提供的两种速度,但这似乎并不重要。 我相信我正在做的是错误地加载PROM,或加载正确的数据(.bin),但格式错误。 ISE / IMPACT默认情况下要生成一个mcs(如果我没记错的话)格式化的PROM文件..这听起来像是正确的格式吗? 或者xilinx FPGA / PROM需要不同的格式吗? 选择“编程连接到此FPGA的串行PROM”,同时将.bin编程到FPGA中似乎并不重要。 我知道我可以用某种方式与董事会沟通。 电路板上加载了时钟演示。 从xilinx网站下载示例并尝试多次加载电路板(对VHDL进行微调)后没有明显变化,我试图手动擦除PROM,并且成功了。 在重新启动时,电路板现在出现的外观类似于我将电路板设置为等待JTAG编程时所看到的内容。 我注意到的一件事是,7段LED中的所有部分似乎都是昏暗地点亮..不确定这是否是一个线索。 这听起来像我在电路板上编程是坏事,还是我错过了编程闪存部件本身的重要步骤? 如果IMPACT可以在编程后验证图像,我似乎正在编程。 擦除和空白检查似乎像你期望的那样工作; 随后的程序和验证似乎也起作用。 我很难过。 谢谢, - Josh.Message由jr***ertram编辑于09-24-2007 11:27 AM 以上来自于谷歌翻译 以下为原文 Hi, I'm looking for information on how to program the Spartan 3 on the Spartan 3 Starter Kit. I've looked at the user manual that came with the board and believe I'm missing something. When I program the board, I now have iMPACT telling me that the board is programmed, and I can verify the programming. I can either program the FPGA with my .bin file, or I can program the PROM with the PROM file I generate from the bin file. In one class of attempts to program the board, I have the jumpers set to the "default, load from PROM" mode where upon reset the FPGA will obtain its configuration from the PROM.. with this jumper setting, ISE appears to be able to take control of the board via JTAG and reports that programming succeeds. I assume that this mode of programming is invalid, but ISE/IMPACT do not give me an error. In the second class of attempts to program the board, I have the jumpers set to the JTAG programming mode as described in the manual (and as explained in one of the previous posts on the thread by one of the Xilinx moderators). In this case, I don't see any difference in programming the board. ISE/IMPACT does not report an error, and in this mode I can also verify that what I programmed was put in either the FPGA or in the PROM, depending on what I attempt to program. I believe I have the correct part and package selected in ISE. One thing I'm not sure about is the speed setting for the device.. I wasn't sure how to determine that from the silk screening on the packaging of the part. I tried both speeds offered in ISE, but that didn't seem to matter. I believe that what I'm doing is incorrectly loading the PROM, or loading the correct data (.bin) but in the wrong format. ISE / IMPACT by default wants to generate an mcs (if I remember correctly) formatted PROM file.. does that sound like the right format? Or do xilinx FPGAs / PROMs expect a different format? Selecting the "program the serial PROM attached to this FPGA" while programming my .bin into the FPGA didn't seem to matter. I do know that I can communicated with the board in some fashion. The board had the clock demo loaded on it. After downloading the example from the xilinx website and attempting to load the board several times (with minor tweaks to the VHDL) with no apparent change, I tried to erase the PROM manually, and that succeeded. On reboot, the board now comes up in what looks similar to what I see when I set the board up to wait for JTAG programming. One thing I notice is that all of the segments in the 7-segment LEDs seem to be lit dimly.. not sure if that's a clue. Does this sound like what I'm programming into the board is bad, or am I missing an important step in the procedure to program the flash part itself? It seems that I'm programming it if IMPACT can verify the image after programming it. Erase and blank check seem to be working like you'd expect; a subsequent program and verify also appear to work. I'm stumped. Thank you,- Josh. Message Edited by jr***ertram on 09-24-2007 11:27 AM |
|
相关推荐
4个回答
|
|
HI Josh,要为FPGA编程,您有两种选择。
无论板载设置如何,无论是通过Power Cycling进行PROM还是通过脉冲PROG进行编程,还是通过JTAG.JTAG使用iMAPCT进行配置都将始终可用。 因此,如果您将电路板设置为从PROM加载,您仍然可以使用iMPACT对JTAG进行编程。如果您打算从PROM加载,则需要使用iMPACT通过JTAG对PROM进行编程。 然后,Power Cycling或ulsing PROG将加载您的设计。 您可以使用各种格式对PROM进行编程:MCS,TEK,UFP,EXO,BIN和HEX。 如果您使用iMPACTs PROM文件Formatter生成PROM文件,您可以使用其中任何一个。 PROM文件格式的说明:http://www.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=1&getPagePath=476Steps您应该尝试获得正确的流程:首先通过设置模式启动 使用带有来自Starter Kit示例的.bit文件的iMPACT进行JTAG编程FPGA获取此位文件并生成MCS usign iMPACT PROM文件格式化器以定位PROMErase并空白检查iMPACTProgram中的PROM并验证iMPACTS中的PROM切换板载模式以加载 来自PROMPower循环/脉冲PROG如果您按照这些步骤操作,您可以通过JTAG对相同的图像进行编程并形成PROM.-paul 以上来自于谷歌翻译 以下为原文 HI Josh, To program your FPGA you have two options. Either program from the PROM by Power Cycling or pulsing PROG or configuring using iMAPCT via JTAG. JTAG will always be available regardless of on board settings. So if you have your board set to load from the PROM you can still program vis JTAG using iMPACT. If you intend on loading from the PROM you will need to program the PROM via JTAG using iMPACT. Power Cycling or ulsing PROG will then load your design. You can ptogram the PROM usign a variety of formats: MCS, TEK, UFP, EXO, BIN and HEX. If you use iMPACTs PROM file Formatter to generate a PROM file you can use any of these. A description of PROM file formats: http://www.xilinx.com/xlnx/xil_ans_display.jsp?iLanguageID=1&iCountryID=1&getPagePath=476 Steps you should attempt to get the flow right: First off start by setting the mode to JTAG programming FPGA using iMPACT with a .bit file from the Starter Kit examples Take this bit file and generate an MCS usign iMPACTs PROM File Formatter to Target your PROM Erase and Blank Check the PROM in iMPACT Program and Verify the PROM in iMPACT Switch the board mode to load from the PROM Power Cycle/ Pulse PROG If you follow these steps you shoudl eb able to scucesfully program the same image Via JTAG and form the PROM. -paul |
|
|
|
我已经能够使用Digilent板验证下载(包括为VGA VHDL制作模块,重建,重建PROM等)对电路板进行编程。
一切都按预期工作(并在文档中描述)。 正如你所说,我能够通过JTAG对其进行编程而无需使用跳线切换模式.http://digilentinc.com/Data/Products/S3BOARD/S3BOARD-demo.zip我无法获得Xilinx的“时钟”参考 设计工作,但是http://www.ilinx.com/cn/products/boards/DO-SPAR3-DK/boards/clock.zip我确定我一定做错了。 是否有一组典型的东西,你通常寻找隔离问题? 我已经仔细检查了设备类型设置是否相同(包括包,速度等)。 我相信我以相同的方式生成MCS PROM文件(但GUI并没有真正为我提供双重检查的方法)。 Xilinx Spartan-3启动器看起来与digilent板相同。 知道他们为什么会有所不同吗?谢谢你, - 乔希。 以上来自于谷歌翻译 以下为原文 I have since been able to program the board using the Digilent board verification download (including making mods to the VGA VHDL, rebuilding, rebuilding PROM, etc). Everything works as expected (and as described in the documentation). As you say, I was able to program this over JTAG without switching modes with the jumpers. http://digilentinc.com/Data/Products/S3BOARD/S3BOARD-demo.zip I've been unable to get the Xilinx 'clock' reference design to work, however. http://www.xilinx.com/products/boards/DO-SPAR3-DK/boards/clock.zip I'm sure I must be doing something wrong. Is there a set of typical things you'd normally look for to isolate the problem? I've double checked that the device type is set the same (including package, speed, etc). I believe I'm generating the MCS PROM file the same way (but the GUI doesn't really provide me a way to doublecheck). The Xilinx Spartan-3 starter clearly looks the same as the digilent board. Any idea why they'd be different? Thank you, - Josh. |
|
|
|
啊..说得太早了。
我想我现在看到了什么。 当我生成一个构建时,我正在生成“.bit”。 在同一目录中还有一个“_cclktemp.bit”文件没有得到更新。 我相信MCS文件正在使用cclktemp.bit文件......? 但我无法弄清楚如何再生它.-乔希。 以上来自于谷歌翻译 以下为原文 Ah.. spoke too soon. I think I see what's going on now. When I generate a build, I'm generating " - Josh. |
|
|
|
根据以下说明从头开始:http://www.princeton.edu/~wolf/EE375/labs/lab4.html ...我能够创建一个非常简单的项目,使用LED打开/关闭LED
开关。 我在生成可以在FPGA上编程的BIT文件时没有问题,并且在编程和生成后生成一个“工作”的PROM文件。 一个电源循环。我回到参考设计,发现我的部件速度设置为“-5”,它应该是“-4”,我用“CCLK”代替“JTAG”生成PROM文件 “作为”生成编程文件属性“对话框中”启动选项“中的时钟。另外,我注意到的是我无法使用BIT文件直接编程FPGA,除非我生成了掩码文件并验证了FPGA 。 当我没有验证编程到FPGA中的内容时,我得到一个错误,说完成没有变高。 这是程序中的错误,还是FPGA在编程后只需要它? 我在论坛和网页上看到了同样主题的其他几个主题...似乎有很多人遇到它。如果你有Xilinx民间护理,我建议你创建一个简单的教程,如上面的princeton链接。 它会为我节省几个小时的评估你的组件和工具的挫折。谢谢, - 乔希。 以上来自于谷歌翻译 以下为原文 After starting from scratch based on the instructions at: http://www.princeton.edu/~wolf/EE375/labs/lab4.html ... I was able to create a very simple project that turned on/off the LEDs using the switches. I had no problems generating a BIT file that could be programmed on the FPGA, and generating a PROM file that "worked" after programming & a power cycle. I went back to the reference designs and found that I had the part speed set to "-5" when it should have been "-4", and I was generating the PROM file using "CCLK" instead of "JTAG" as the clock in the "Startup Options" within the Generate Programming File Properties dialog box. Also, something else I noticed was that I was not able to program the FPGA directly with the BIT file unless I generated the mask file and verified the FPGA. When I did not verify what was programmed into the FPGA, I got an error saying that done did not go high. Is that a bug in the program, or does the FPGA just need that after being programmed? I saw several other threads on the forums and the web on the same topic... seems like multiple people are running into it. If you Xilinx folk care, I'd recommend creating a simple tutorial like the princeton link above. It would've saved me several hours of frustration evaluating your component and tools. Thanks, - Josh. |
|
|
|
只有小组成员才能发言,加入小组>>
2429 浏览 7 评论
2831 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2298 浏览 9 评论
3378 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2468 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
1329浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
595浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
457浏览 1评论
2012浏览 0评论
737浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 06:29 , Processed in 1.383059 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号