tutorial 2 working with mio leds and pushbuttons · create a vivado project with the same device...

5
Working with MIO LEDs and Pushbuttons Vivado Environment: 1. Create a Vivado project with the same device settings as for the first tutorial. 2. Create a new block design and include only PS in it. 3. Right click and make “FIXED_IO” as external connection. Note: You can perform “Run automation” to make DDR and FIXED_IO connections external. Connections to DDR are avoided because our C code is relatively small in size and can be accommodated in OCM. We do not require: 1. ACI GPIO 2. Reset system 3. XDC file.

Upload: vuongnga

Post on 11-Jul-2019

212 views

Category:

Documents


0 download

TRANSCRIPT

WorkingwithMIOLEDsandPushbuttons

VivadoEnvironment:

1. CreateaVivadoprojectwiththesamedevicesettingsasforthefirsttutorial.2. CreateanewblockdesignandincludeonlyPSinit.3. Rightclickandmake“FIXED_IO”asexternalconnection.

Note:Youcanperform“Runautomation”tomakeDDRandFIXED_IOconnectionsexternal.ConnectionstoDDRareavoidedbecauseourCcodeisrelativelysmallinsizeandcanbeaccommodatedinOCM.

Wedonotrequire:

1. ACIGPIO2. Resetsystem3. XDCfile.

PScustomization:

1. EnablebothUART1andGPIOMIOunderMIOConfigurationofPS.

2. DisableMAXIGP0interfaceunderPS-PLConfiguration.

Restofoperations:

1. Validateyourdesign2. CreatetheHDLWrapper3. Generateblockdesign4. Synthesize,implementandgeneratethebitstream5. ExportthehardwareandlaunchSDK

SDKEnvironment:

1. Createanapplicationproject2. AddtheCsourcefile“led_btns_pc.c”inyour“src”directoy3. Buildtheprogramandgeneratethebinary4. ProgramFPGA5. DoRUNconfigurationsandRUNyourproject

Responses:

1. Whenbuttonisnotpressed

Indication:MIOLEDisONwhenbuttonisnotpressed

2. Whenbuttonispressed

Indication:MIOLEDisOFFwhenbuttonispressed