Practical 1Introduction to lab hardwaresoftware.docx

上传人:b****8 文档编号:10295819 上传时间:2023-02-09 格式:DOCX 页数:14 大小:1.84MB
下载 相关 举报
Practical 1Introduction to lab hardwaresoftware.docx_第1页
第1页 / 共14页
Practical 1Introduction to lab hardwaresoftware.docx_第2页
第2页 / 共14页
Practical 1Introduction to lab hardwaresoftware.docx_第3页
第3页 / 共14页
Practical 1Introduction to lab hardwaresoftware.docx_第4页
第4页 / 共14页
Practical 1Introduction to lab hardwaresoftware.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

Practical 1Introduction to lab hardwaresoftware.docx

《Practical 1Introduction to lab hardwaresoftware.docx》由会员分享,可在线阅读,更多相关《Practical 1Introduction to lab hardwaresoftware.docx(14页珍藏版)》请在冰豆网上搜索。

Practical 1Introduction to lab hardwaresoftware.docx

Practical1Introductiontolabhardwaresoftware

Practical1:

IntroductiontoLabHardwareandSoftware

Introduction

ThisPracticalconsistsofanintroductiontocreatingsimplecircuitsonanFPGAusingVHDLandXilinxISE.FirstlyyouwillcreateanewprojectusingthewizardofXilinxISE.ThisPracticalconsistsofseveralstepsbrokendownoverthisdocument.

InthisPracticalexercise,wewillfirstlearnhowtocreateasimpleVHDLprojectofa2-to-1multiplexer(MUX)usingXilinxISE.Afterthedesignisfullyverified,wewilluseXilinxISEtosynthesizethedesignintoaSpartan3FPGAconfigurationdatafilewhichwillthenbedownloadedontoaSpartan3printedcircuitboard(PCB)wheretheimplementeddesignwillbeverified.YouwillsecondlylearnhowtodesignandimplementafewbasiclogicfunctionssoastobefamiliarwiththeXilinxISEdesigntoolandbasicVHDL.

Task1:

2-to-1multiplexer

The2-to-1multiplexerhasthreeinputs(twodatainputsandoneselectinput)andonedataoutputasbelow:

∙DataInputs:

Din0,Din1

∙SelectInput:

Sel

∙DataOutput:

Dout

ItsLogicFunctionis:

whenSel=0,Dout=Din0;whenSel=1,Dout=Din1.ItsBooleanLogicEquationis:

Dout=Din0*Sel+Din1*/Sel.Followthenextstepstocreate,designandimplementtheabove2-to-1multiplexer.

DesignSteps

Step1:

CreateanewprojectusingISE:

Clickthestartmenu,andtypeinProject.Thenlookfor"64-bitProjectNavigator"andclickonit.YoumayuseotherwayslaunchXilinxISE.

AfterISEislaunched,wewillcreateanewprojectinFile->NewProject…

Createanewprojectunderthedirectory“C:

\Tem"oranotherdirectoryofyourchoice,andgivetheprojectadescriptivenamesuchas\Lab0VHDL".Westronglyreckonyousaveallyourprojects.Alsosetthe“Top-levelsourcetype:

"to“HDL".Click“Next".

TheSpartan3StarterKitPCBboardusesaXilinxSpartan3XC3S200FPGAchipwhichispackagedinaflatthin256-pin(FT256)BallGridArray,somakethefollowingchanges.Click“Next"whenyouaredone.

Thenextpagedisplaysasummaryofthenewproject.Click“Finish"whenyou'redonetoexit.

 

Step2:

CreatecircuitusingVHDLfile

ClickonProject->NewSource...

SelectVHDLmoduleandgivethefileanameandclick“Next”.

Addtheportnamesanddirectionsasshown.

Click“Finish"toexitthewizard.

Addthefollowinglineofcode:

Dout<=(Din0andnotSel)or(Din1andSel);

SavethefileandproceedtoSynthesize.

Selectthefiletobesynthesizedanddouble-clickon“Synthesize".Youcanalsoright-clickon“Synthesize"andselectRun.

Step3:

InputandOutputPinPlanning

Weneedaconstraintsfiletoensurethatinputsandoutputsgotothedesiredpins.

SelectProject->NewSource...

Click"ImplementationConstraintsFile"intheleftframeandtypeinthenamefortheconstraintsfile,forexample"mux21".Thenclick"Next"and"Finish".

Doubleclickonthe"I/OPinPlanning(PlanAhead)-Post-Synthesis"under"UnderConstraints"tolaunchPlanAhead.

Step4:

ImplementDesign

Doubleclickon“ImplementDesign”touseyourconstraint

Double-clickon“GenerateProgrammingFile"togenerateFPGAconfigurationdatafilesuchas“21MUX.bit”.

Step5:

ProgramFPGA

Connectthe5VDCpowercabletothepowerinputonthedemoboard(J4).

ConnectthedownloadJTAG-USBcablebetweenthePCparallelportandthedemoboard(J7).Carefullynotethepositionofthelabelonthecable.

Start“Adept”Software,whichcandownloadthebitfileontotheFPGAthroughJTAG-USBcable.

YoucaneitherchoosetoprogramFPGAforPROM.

VerifyyourimplementationandshowyourresulttotheTutorformarkingwhenyouareready.

Task2:

Implementthenextbasiclogicfunctionsfollowingthesamestepsabove.Youneedtodefineindependentprojectforeachofthefunctionsbelow:

∙ANDGate

∙ORGate

∙NANDGate

∙Exclusive-NORGate

Task3:

Implementthenext74XX30chip:

Task4:

UsetheK-MAPtosimplifytheBooleanfunctioninproductofsums,andimplementthesimplifiedlogic,andverifyitbycomparingwiththeTruthTable.

F(A,B,C,D)=

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

当前位置:首页 > 求职职场 > 简历

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

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