21
PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan [email protected] 1

PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan [email protected] 1 Start Vivado 2 Search for Vivado 2018.3 Create a

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

PA0Guide

ECE3401–Spring2020

CourseTAcontactinformation:MohsinShan

[email protected]

1

Page 2: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

StartVivado

2

SearchforVivado2018.3

Page 3: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CreateaNewProject

3

ClickHereonNewProject(andletWizardcreateanewproject)

Page 4: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

ProjectWizard

4

•  Theprojectwizardwillopen.Giveanynametoyourproject(e.g.lab0)andleavetherestasis

Thenclicknext

YoucanworkfromyourPdrivewheredataissavedacrossmultiplemachinelogins

P://

Page 5: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

ProjectWizard

5

•  Theprojectwizardwillopen.Giveanynametoyourproject(e.g.lab0)andleavetherestasis

Thenclicknext

IfPdrivedoesnotletyousaveyourwork,thenworkinthemachine’sCdrive.Beforeloggingout,copytheprojectfolderinyourPdrive.OnthesubsequentlogincopytheprojectbacktoCdrivetoworkonit.Repeatthisprocessacrossmultiplemachinelogins

Page 6: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

ProjectSettings

6

•  SelectRTLProject,thenclicknext•  AndthenFinish

ChooseRTLProjectandclickNext

Page 7: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CreatingSourceFiles

7

Createanewsourcefile

ChangetoVHDL

Page 8: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CreatingSourceFiles

8

SelectVHDLandtypethename.ThenclickOK

Page 9: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CreatingSourceFiles

9

ThenclickNext

Page 10: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CreatingSourceFiles

10

LeavetheIPandConstraintspartsasisClickNext

Page 11: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

PartSelection

11

ChoosethedefaultFPGAxc7k70tfbv676-1ThenclicknextThenclickfinishTheprojectwillthenbecreated

Page 12: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

PortDefinitions

12

LeavethispartasisandclickOKYouwillbeaddingtheportdefinitionsintheVHDLcodelater

Page 13: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

StartProgramming

13

2.Copy&Pastethecodefromlab0.vhdhere(Itisa1-bitadderthatisdownloadablefromthecoursewebpage).Savelab0.vhdusingCtrl+S.TheleftpanelshouldnowsayBIT_ADDER–BHVunderDesignSources

1.Double-clickon‘lab0–Behavioral’forthelab0.vhdfiletoopenintherightpanel

Page 14: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

AddingaTestBench

14

2.SelectSimulationSourceshereandclickNext

1.Clickheretoaddanewfile

Page 15: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

AddingaTestBench

15

1.ClickCreateFile

2.AddthenameofthetestbenchandclickOK.ThenclickFinish

Page 16: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

AddingaTestBench

16

1.ClickOK2.ClickYestoignorethewarning.You’lladdtheportdefinitionslater

Page 17: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CopythetestbenchCode

17

1.ClickSimulationSourcesthensim_1,andthendouble-clickon‘test0-Behavioral’forthetest0.vhdfiletoopenintherightpanel

2.Copy&Pastethecodefromtest0.vhdhere(Itisa1-bitadderthatisdownloadablefromthecoursewebpage).Savetest0.vhdusingCtrl+S.TheleftpanelshouldnowsayTEST_ADD–TESTunderSimulationSourcesandsim_1

Page 18: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

RunningSimulation

18

ClickonRunSimulation,andthenRunBehavioralSimulation

Page 19: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

BehavioralSimulation

19

•  AwaveformwindowshouldautomaticallyopenafteryouclickRunSimulation

•  Enablesonetovisualizewaveformsforthedigitaldesign– Runsforthetimespecifiedinthetestbench– Allowsonetovisualizeinterfaceaswellasinternalstateofthesimulateddesign

– Simulatesinputconfigurationsspecifiedinthetestbench

Page 20: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

RunningtheSimulation

20

ClicktoZoomFit

Theseinterfacesignalsshouldautomaticallyappear

Page 21: PA0 Guide · 2020-05-17 · PA0 Guide ECE 3401 – Spring 2020 Course TA contact information: Mohsin Shan mohsin.shan@uconn.edu 1 Start Vivado 2 Search for Vivado 2018.3 Create a

CheckWaveform

21

•  Youshouldstudylab0.vhdcodeandthenunderstandhowtest0.vhdsensitizesinputstocreateatestbenchtotestthe1-bitaddercircuit

•  TheSUMandCOUToutputscanbeverifiedbyvisuallyinspectingtheA,BandCINinputsatvarioustimestamps