GithubHelp home page GithubHelp logo

jsloan256 / hlscrashcourse Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 418 KB

Vivado project demonstrating the design and usage of Vitis HLS cores

License: MIT License

Tcl 64.21% Shell 7.34% Verilog 2.74% BitBake 1.16% Makefile 0.47% C++ 22.30% C 1.78%

hlscrashcourse's Introduction

HLSCrashCourse

This project demonstrates the HLS cores from the core itself, adding the core to a Vivado project, and using the core in petalinux.

Required Tools for Firmware (Vivado) compilation

  • Xilinx Vivado 2022.1
  • Xilinx Vitis HLS 2022.1
  • Petalinux 2022.1

A docker configuration is available at https://github.com/jsloan256/xilinx-docker (2022.1 branch).

Hardware

Target

Vivado project

Restoring the Vivado project

Perform the following steps to regenerate the Vivado top-level project as well as any Vivado HLS IP core projects. Vivado project restoration is not required for Matlab simulation.

  • Change to the Scripts folder in project directory (ie. /HLSCrashCourse/Scripts)
  • Run: Scripts$ ./RestoreAll.sh

Building the Vivado project from the command line

  • Run: Scripts$ ./GenerateXSA.sh

Building the Vivado project in the GUI

  • Open Vivado/HLSCrashCourse.xpr in Vivado 2022.1
  • Run Generate Bitstream from the Vivado Flow Navigator window pane
  • Run source Scripts/ExportXSA.tcl from the Vivado TCL window

Firmware Block Diagram

HLSCrashCourse Block Diagram

SimpleGpio Hierarchy Block Diagram

SimpleGPIO Hierarchy Block

SignalGenerator Hierarchy Block Diagram

SignalGenerator Hierarchy Block

Building Linux

After generating the bitstream and exporting the XSA in Vivado:

  • Run: Scripts$ ./BuildLinux.sh

Install Linux to SD card

Verify that JP2 is installed. Connect the SD card to your PC and find its mount point (often /dev/sda, /dev/sdb, etc.) BE CAREFUL, THE FOLLOWING COMMANDS WILL WIPE YOUR HARDDRIVE IF YOU SPECIFY THE WRONG /dev/sdX LOCATION.

Run

  • HCCLinux$ ../Scripts/PartitionSDCard /dev/sdX
  • Remove and reinstall SD card into PC
  • HCCLinux$ ../Scripts/ProgramSDCard /dev/sdX

Open a serial terminal and log into linux using petalinux as the username.

Debugging applications in Vitis SDK

  • Scripts$ ./CreateSDK.sh
  • Scripts$ ./CreateWorkspace.sh
  • $ vitis -workspace VitisWorkspace

hlscrashcourse's People

Contributors

jsloan256 avatar

Stargazers

Timothy avatar

Watchers

James Cloos avatar  avatar

Forkers

bun2012

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.