实验1EDA工具的使用Word下载.docx

上传人:b****3 文档编号:14653823 上传时间:2022-10-23 格式:DOCX 页数:9 大小:1.33MB
下载 相关 举报
实验1EDA工具的使用Word下载.docx_第1页
第1页 / 共9页
实验1EDA工具的使用Word下载.docx_第2页
第2页 / 共9页
实验1EDA工具的使用Word下载.docx_第3页
第3页 / 共9页
实验1EDA工具的使用Word下载.docx_第4页
第4页 / 共9页
实验1EDA工具的使用Word下载.docx_第5页
第5页 / 共9页
点击查看更多>>
下载资源
资源描述

实验1EDA工具的使用Word下载.docx

《实验1EDA工具的使用Word下载.docx》由会员分享,可在线阅读,更多相关《实验1EDA工具的使用Word下载.docx(9页珍藏版)》请在冰豆网上搜索。

实验1EDA工具的使用Word下载.docx

模型创建、添加用户约束文件、创建一个Vivado工程、输入所创建的电路模型、对用户约束文件添加约束、行为仿真、设计综合、设计实现、生成下载文件,最后是将下载文件下载到硬件平台上进行实际验证。

图1设计流程图

二、实验内容

1.创建一个Vivad工程,对设计源文件进行分析;

2.使用XSim仿真器对设计进行仿真;

3.设计综合;

4.设计实现;

5.进行时序仿真;

6.生成下载文件。

三、实验步骤

使用现成的设计文件针对XC7A100TCSG324C-1器件完成整个设计流程。

电路如图2所示,部分输入通过逻辑处理后送到输出。

具体操作步骤如下:

图2整个电路图

3.1用IDE创建一个Vivado工程

1.OpenVivadobyselectingStart>

AllPrograms>

XilinxDesignTools>

Vivado2014.2>

Vivado2014.2

2.ClickCreateNewProjecttostartthewizard.YouwillseeCreateANewVivadoProjectdialogbox.ClickNext.

3.ClicktheBrowsebuttonoftheProjectlocationfieldoftheNewProjectform,browseto,forexampled:

\Lab1_source,andclickSelect.

4.EntertutorialintheProjectnamefield.MakesurethattheCreateProjectSubdirectoryboxischecked.ClickNext.

5.SelectRTLProjectoptionintheProjectTypeform,andclickNext.

6.SelectVerilogastheTargetlanguageandSimulatorlanguageintheAddSourcesform.

7.ClickontheAddFiles…button,browsetothed:

\Lab1_sourcedirectory,selecttutorial.v,clickOpen,andthenclickNext.

8.ClickNexttogettotheAddConstraintsform.

9.ClickNextiftheentryisalreadyauto-populated,otherwiseclickontheAddFiles…button,browsetothed:

\Lab1_sourcedirectoryandselecttutorial.xdc,andclickOpen.

10.IntheDefaultPartform,usingthePartsoptionandvariousdrop-downfieldsoftheFiltersection,selecttheXC7A100TCSG324-1part.ClickNext.

11.ClickFinishtocreatetheVivadoproject.

12.Openthetutorial.vsourceandanalyzethecontent.

13.Openthetutorial.xdcsourceandanalyzethecontent.

14.PerformRTLanalysisonthesourcefile.ExpandtheOpenElaboratedDesignentryundertheRTLAnalysistasksoftheFlowNavigatorpaneandclickonSchematic.Themodel(design)willbeelaboratedandalogicviewofthedesignisdisplayed.NoticethatsomeoftheswitchinputsgothroughgatesbeforebeingoutputtoLEDsandtherestgostraightthroughtoLEDsasmodeledinthefile.

3.2用XSimSimulator对设计进行仿真

1.Addthetutorial_tb.vtestbenchfile.ClickAddSourcesundertheProjectManagertasksoftheFlowNavigatorpane.SelecttheAddorCreateSimulationSourcesoptionandclickNext.IntheAddSourcesFilesform,clicktheAddFiles…Button.Browsetothed:

\Lab1_sourcefolderandselecttutorial_tb.vandclickOK.ClickFinish.

2.SelecttheSourcestabandexpandtheSimulationSourcesgroup.Thetutorial_tb.vfileisaddedundertheSimulationSourcesgroup,andtutorial.visautomaticallyplacedinitshierarchyasatut1instance.

3.Double-clickonthetutorial_tbintheSourcespanetoviewitscontents.Thetestbenchdefinesthesimulationstepsizeandtheresolutioninline1.Thetestbenchmoduledefinitionbeginsonline5.Line15instantiatestheDUT(device/moduleundertest).Lines17through26definethesamemodulefunctionalityfortheexpectedvaluecomputation.Lines28through39definethestimuligenerationandcomparestheexpectedoutputwithwhattheDUPprovides.Line41endsthetestbench.The$displaytaskwillprintthemessageinthesimulatorconsolewindowwhenthesimulationisrun.

4.Simulatethedesignfor200nsusingtheXSimsimulator.SelectSimulationSettingsundertheProjectManagertasksoftheFlowNavigatorpane.AProjectSettingsformwillappearshowingtheSimulationpropertiesform.SelecttheSimulationtab,andsettheSimulationRunTimevalueto200nsandclickOK.ClickonRunSimulation>

RunBehavioralSimulationundertheProjectManagertasksoftheFlowNavigatorpane.ThetestbenchandsourcefileswillbecompiledandtheXSimsimulatorwillberun(assumingnoerrors).Youwillseeasimulatoroutputsimilartotheoneshownbelow.

5.ClickontheZoomFitbutton()locatedleftofthewaveformwindowtoseetheentirewaveform.

6.Changedisplayformatifdesired.Selecti[31:

0]inthewaveformwindow,right-click,selectRadix,andthenselectUnsignedDecimaltoviewthefor-loopindexinintegerform.Similarly,changetheradixofswitches[7:

0]toHexadecimal.Leavetheleds[7:

0]ande_led[7:

0]radixtobinaryaswewanttoseeeachoutputbit.

7.Addmoresignalstomonitorlower-levelsignalsandcontinuetorunthesimulationfor500ns.Expandthetutorial_tbinstance,ifnecessary,intheScopeswindowandselectthetut1instance.Theswt[7:

0]andled[7:

0]signalswillbedisplayedintheObjectswindow.Selectswt[7:

0]anddragthemintothewaveformwindowtomonitorthoselower-levelsignals.Onthesimulatortoolbuttonsribbonbar,type500inthetimewindow,clickonthedrop-downbuttonoftheunitsfieldandselectns,andclickonthe()button.

8.Thesimulationwillrunforanadditional500ns.ClickontheZoomFitbuttonandobser

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 职业教育 > 其它

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1