Giter VIP home page Giter VIP logo

ultranet_hls_ref's Introduction

UltraNet HLS Reference Design

Original project here

Top Function

  • ultranet.cpp/ultranet

Clock

  • Period: 8
  • Uncertainty: defult

Build

To do high-level synthesis on the accelerator and export it as a Vivado IP, simply use make build.

Test the functionality using Csim

You can use c simulation to compare the results from the C model with the PyTorch one, using make csim. The results from each layer and the diff results will be dumped to ultranet_csim directory. The command-line output would show the Sum of Squared Error (SSE) and Mean of Squared Error (MSE) of each layer. The path to the model's state dict is hard-coded at:

csim.py, line26: state_dict = torch.load('../../export/4bitfs.pt', map_location = torch.device('cpu'))['model']

Modify it if necessary.

Before running using your account on our server, be sure to modify the PROJ_ROOT in the makefile:

Makefile line21: PROJ_ROOT = /home/yd383/dac-sdc

change this to point to the root of the git repo.

Verify the generated RTL using Cosim

The generated RTL can be verified with a custom cosim flow: make cosim. It compares the RTL model with the C++ code to make sure they are equivalent. NOTE: it does not compare the RTL model with the PyTorch model.

reference

ultranet_hls_ref's People

Contributors

zzzdavid avatar

Watchers

 avatar

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.