ImageVerifierCode 换一换
格式:DOC , 页数:19 ,大小:1.37MB ,
资源ID:7654027      下载积分:10 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/7654027.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(Xilinx_ISE_10.1_Tutorials.doc)为本站上传会员【xrp****65】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

Xilinx_ISE_10.1_Tutorials.doc

1、EGR426 W’09 19 EGR426 W’09 Laboratory #1 Tutorial on Xilinx ISE 10.1 Objectives · To become familiar with using Xilinx ISE to draw schematic representations of PLD circuits · To become familiar with using Xilinx ISE to conduct graphical waveform simulations of PLD circuits · To becom

2、e familiar with using Xilinx ISE to write HDL representations of PLD circuits · To become familiar with using Xilinx ISE to write HDL testbench simulations of PLD circuits · To become familiar with downloading PLD circuits to the Nexys development board Introduction “There is more than one way

3、 to do it” (TIMTOWTDI, usually pronounced "Tim Toady") is a Perl motto. The language was designed with this idea in mind, so that it "doesn't try to tell the programmer how to program". This makes it easy to write extremely messy programs, but, as proponents of this motto argue, it also makes it eas

4、y to write beautiful and concise ones. The Zen of Python has a principle which is the exact opposite of TIMTOWTDI: "There should be one—and preferably only one—obvious way to do it." Description reprinted from Wikipedia In designing programmable logic, and in the tools used to do so, there is de

5、finitely more than one way to do it. Part I – Drawing Schematics The Xilinx Integrated Software Environment (ISE) allows users to design circuits for Xilinx FPGA’s and CPLD’s. It involves the use of Project Navigator, a user interface that helps users manage the entire design process including

6、 design entry, simulation, synthesis, implementation and finally downloading the design onto an FPGA or CPLD. 1. Start ISE from the Start menu by selecting Start -> Programs -> Xilinx ISE Design Suite 10.1 -> ISE -> Project Navigator. The ISE Project Navigator opens as shown in Figure 1. The Pro

7、ject Navigator lets you manage the sources and processes in your ISE project. Figure 1: Launching ISE Project Navigator 2. The next step is to create a new ISE project. To create a new project for this tutorial: Ø Select File -> New Project. The New Project Wizard appears as shown

8、in Figure 2. Ø First, enter a Project Location (directory path) for the new project. Choose a location on your USB drive since files stored on laboratory computers do not persist once the computer shuts down. Ø Type counter in the Project Name field. When you type counter in the Project Name field

9、 a counter subdirectory is created automatically in the directory path you selected. Ø Select Schematic in the Top-Level Source Type list, indicating that the top-level file in your project will be a schematic rather than another type, such as HDL, EDIF or NGC/NGO. Click Next to go to the Device P

10、roperties window Figure 2: Creating a new project 3. In the Device Properties window, you will be selecting your Target device, Simulator tool, Synthesis tool and Hardware language in which you will be writing your design code. Figure 3 shows the selections you need to make. NOTE: If you purch

11、ased the Nexys board with the -1200 option, you should select the XC3S1200E device instead of the XC3S500E device. All other fields can stay the same. Figure 3: Target Device and Tool Selection 4. Click Next three times and you will reach the Project Summary window. This window gives you an

12、overview of your project created so far. Click on Finish and your project is created as shown in Figure 4. Verify that the project name is counter.ise (shown as the last component in the title bar of the application). You can also verify by going to the location where you created the project and dou

13、ble-clicking on the folder named counter. Figure 4: Successful creation of project 5. Now you will create a top level schematic for your design. In the Sources window, right click on xc3s500e-4fg320 and select New Source. A New Source Wizard window appears as shown in Figure 5. Select Schemati

14、c and enter counter under file name. Make sure the “Add to project” checkbox is checked. Figure 5: Creation of a schematic source file 6. Click Next two times followed by Finish to create the counter.sch file under the project folder. Figure 6 shows the final layout of the project after the

15、source file is created. If you don’t see the schematic, you may see a Design Summary. Click on the “counter.sch” tab at the bottom of the main design window to see the schematic. Figure 6: Project Navigator showing top-level schematic 7. The Sources window at the top-left should have the Symbo

16、ls tab selected (there are 5 tabs at the bottom of the window). From this tab, you can select schematic symbols to add to the schematic. From the Categories listbox, select Counter. Then, from the Symbols listbox, select “cb2ce”. Move your cursor to the main schematic window on the right and you wil

17、l see a schematic symbol attached to the cursor. Left-click to place the symbol on the schematic. Press ESCAPE to detach the symbol from the cursor, and then press the F8 key several times to zoom in on the symbol you placed. The result should be as shown in Figure 7. Figure 7: CB2CE symbol ad

18、ded to schematic 8. To enable the counter to count, we have to tie the CLR input low, since this is an active-high asynchronous clear input. From the Categories listbox on the left, select General, and from the Symbols listbox select ‘gnd’. Place a ground symbol on the schematic below the connect

19、ion point of the CLR pin (look forward to Figure 8 for reference). 9. The CE clock-enable pin is active-high. To allow the counter to count, we have to tie this pin high. From the Categories listbox, select the <-All Symbols-> choice right at the top, and type ‘vcc’ in the Symbol Name Filter text

20、box (a quicker way to add symbols when you already know the name). Click on the ‘vcc’ symbol name in the Symbols listbox and use the cursor to place a VCC symbol above the CE pin on the schematic. 10. Press Ctrl-W to start drawing wires, then click on the connection point of the CE pin (the small

21、 square). Draw a wire ending at the connection point of the VCC symbol. Similarly, connect the CLR pin and GND symbol together. The result should be as shown in Figure 8. Figure 8: VCC and GND symbols connected to the CB2CE symbol 11. Press Ctrl-G or click on the “Add I/O Marker” tool in the t

22、oolbar to start placing I/O markers (which are connections to the outside world). Place an I/O marker directly over the connection point for the C (clock) input. An I/O port symbol with an arbitrary name such as “XLXN_3” will appear. Press ESCAPE and use the mouse to click and drag this I/O port sym

23、bol away from the symbol. A wire will automatically be drawn to keep the I/O port and clock pin connected. 12. Right-click on the I/O port symbol, select Rename Port and type in the name CLK. The result should be as shown in Figure 9. Figure 9: CB2CE symbol connected to an I/O port 13. Fina

24、lly, add two I/O ports for the Q0 and Q1 outputs and connect them. Name the I/O ports Q0 and Q1. This is a good time to save your work (press Ctrl-S). 14. The counter design must now be synthesized, i.e., converted to a representation that maps to actual hardware resources on the Xilinx FPGA that

25、 you selected. To do so: 1. In the Sources window, click on the left-most Sources tab at the bottom. 2. Open the tree control beside the xc3s500e-4fg320 heading. 3. This will show the counter(counter.sch) item. Click on it. 4. Go to the Processes window below the Sources window and click on th

26、e Processes tab at the bottom. Your screen should now appear as in Figure 10. 5. Double-click on the Synthesize-XST item. It’s OK if a yellow warning icon appears next to this item once the process is complete. Figure 10: Preparation for synthesizing the design Part II – Constructing Wavefo

27、rm Simulations 1. In the Sources window at the top-left, click the Sources tab at the bottom of the window. Right-click on the counter.sch filename and and select New Source. In the New Source Wizard dialog, select Test Bench Waveform from the window on the left and enter countersim in the File n

28、ame text box. Make sure the “Add to project” checkbox is checked (see Figure 11). Click Next and make sure that counter is the top-level module name selected for this test bench waveform file. Click Next followed by Finish. Figure 11: A test bench waveform file is added to the project 2. The

29、Initial Timing and Clock Wizard dialog opens, which allows you to create a clock stimulus for the 2-bit counter design. Set the values in the dialog as shown in Figure 12 and then click Finish. Figure 12: Clock stimulus settings for behavioral simulation 3. You should see a timing diagram di

30、splay that looks like a logic analyzer with the filename countersim.tbw, as shown in Figure 13. Press Ctrl-S to save the file. Figure 13: Test bench waveform for 2-bit counter 4. To run the simulation, go to the Sources window at the top-left, click on the Sources tab at the bottom, and use th

31、e drop-down listbox to switch from Implementation to Behavioral Simulation. Click on the countersim(countersim.tbw) module name. In the Processes window below it, click on the Processes tab, then open the Xilinx ISE Simulator tree control. Finally, double-click on the Simulate Behavioral Model item.

32、 5. After a surprisingly long time for such a simple circuit, the simulation results should appear in a Simulation window, as shown in Figure 14. Verify that your circuit functions as a 2-bit counter with Q1 as the most significant bit. Figure 14: Results of 2-bit counter simulation P

33、art III – Circuit Design with VHDL 1. Close the 2-bit counter project by using the File->Close Project menu item. Now create a new project by selecting File->New Project. In the New Project Wizard dialog, set the name for this project to be counter_vhdl, and set the Top-Level Source Type to be HD

34、L. The wizard should appear as in Figure 15. Figure 15: Creating a new project using VHDL as the top-level source 2. Click Next, and verify that the Device Properties are the same as for the previous project (Spartan3E XC3S500E FG320-4 device (or XC3S1200E device), VHDL as the preferred lang

35、uage, XST synthesis tool, ISE simulator). 3. Once again, right-click on the xc3s500e-4fg320 module name in the Sources window and select New Source. The New Source Wizard dialog appears. Set the file name to be ‘counter_vhdl’ and select the type of the module to be VHDL Module. Make sure the “Ad

36、d to project” checkbox is checked. Click Next. 4. The Define Module dialog box appears. In this dialog you will set the names of the input and output “pins” of the circuit. Set the fields of this dialog to appear as in Figure 16 and click Next and then Finish. Figure 16: Defining the inputs

37、and outputs of a VHDL module 5. Back in the New Project Wizard dialog, click Next twice then Finish. After the process completes, you should see the ‘counter_vhdl.vhd’ file, as shown in Figure 17. Figure 17: A new project showing the VHDL top-level source 6. Some of the VHDL code has already

38、been written for you. Finish implementing the circuit by modifying the source code as shown in Figure 18. Press Ctrl-S to save your work. Figure 18: VHDL code implementation of an 8-bit counter 7. To verify that you typed in the code correctly, perform a syntax check by clicking on the count

39、er_vhdl module in the Sources window, opening the Synthesize-XST tree control in the Processes window and double-clicking on the Check Syntax item. If your code is correct, a green checkbox will eventually appear next to this item. 8. Once the code is correct, synthesize the design by double-clic

40、king on the Synthesize-XST tree control in the Processes window. 9. After synthesizing the design, let’s perform a behavioral simulation of the design. Right-click on counter_vhdl in the Sources window and select New Source. In New Source Wizard, select Test Bench Waveform and set the File name t

41、o be ‘countersim’. Click Next and then make sure ‘counter_vhdl’ is the top level module name with which you are associating this test bench file. Click Next followed by Finish to open Initial Timing and Clock Wizard. Make changes as shown in Figure 19 and then click Finish. Figure 19: Setting a

42、 clock stimulus for the counter_vhdl circuit. 10. Once you click on Finish, the Test bench waveform window opens as shown in Figure 20. Figure 20: Test bench waveform stimulus for counter_vhdl circuit 11. To run the simulation, switch the Sources window drop-down listbox from Implementati

43、on to Behavioral Simulation, then click on the countersim(countersim.tbw) module (you will have to expand the xc3s500e-4fg320 module tree control). Under the Processes window, click on the Processes tab and expand Xilinx ISE Simulator and double-click Simulate Behavioral Model. 12. The simulator

44、runs and opens another window which has the results of the simulation. You may need to zoom in on the simulation by clicking on icon on the toolbar at the top of the window. Figure 21 shows the simulation output. Figure 21: Results of behavioral simulation for the counter_vhdl design 13. Sc

45、roll horizontally through the simulation results to verify that the circuit functions as an 8-bit counter. Part IV – VHDL Test Benches Although we can construct waveform stimulus for our designs using the graphical editor, doing so is cumbersome, time consuming, and error-prone. Furthermore, t

46、he graphical simulation results must be verified “by eye”, which is also cumbersome, time-consuming, and error-prone. We can instead use VHDL to both specify the input stimulus (just a clock so far) and check the output results. 1. In the Sources window, make sure the drop-down box setting is st

47、ill Behavioral Simulation. In the Processes window, select the Processes tab and expand the Xilinx ISE Simulator tree control. Expand the Simulate Behavioral Model tree control and double-click on the Generate Self-Checking Test Bench item, as shown in Figure 22. Figure 22: Generating a self-chec

48、king test bench 2. Note that a new entry has been added to the ‘xc3s500e-4fg320’ module in the Sources window. Right-click on the new ‘countersim_selfcheck_beh’ item in the Sources window and select Open. The ‘countersim_selfcheck_beh.vhd’ file is a VHDL test bench that both provides clock stimul

49、us to your counter and also checks the outputs. Scroll through this file for a big-picture view of what it is doing. 3. To simulate this test bench, make sure the countersim_selfcheck_beh.vhd module is highlighted in the Sources window. Open the Xilinx ISE Simulator tree control in the Processes

50、window and double-click the Simulate Behavioral Model item. 4. To verify that this test bench is capable of detecting errors, let’s change an expected result. In the ‘countersim_selfcheck_beh.vhd’ file at about line 103 (simulation time of 75ns), change the line that reads “CHECK_ledout(“00000100

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服