Code Monkey home page Code Monkey logo

insider-multiapp's Introduction

Insider-multiapp

Status License

Restrictions

We have not integrated the support of simultaneous multiple applications into Insider compiler. Instead, we provide a template that supports three concurrent applications; the user can replace the placeholder kernel with their application logic.

This version is simply a proof of concept. Since it is not integrated with Insider compiler, the user needs to manually add the reset logic into their kernels which is somehow cumbersome. For the normal use case, please adopt the single-application version which has the full end-to-end compilation support.

BUILD from Source

The same as the one in the single-application version.

Usage

We provide the template in the template folder which is structured as the following.

template
 |------- cosim      # The template for C-RTL co-simulation.
 |------- host       # Host code folder which contains the data generator and the host program.
 |------- synthesis  # The template for code synthesis.

Code Synthesis

synthesis folder contains the code for the end-to-end execution. It contains three very simple pass-through kernels (kernels/app_pt_{0, 1, 2}) that have different executing rates. The user can replace that with their application logic, and interconnects.cpp should be modified accordingly.

After that, execute staccel_syn to generate the project folder for the code synthesis. Steps go exactly the same as the ones in the single-application version.

C Simulation

Execute staccel_csim in the folder Insider-multiapp/template/synthesis/ will generate the C-Sim folder csim. After that, edit csim/src/interconnects.cpp to add user's CSIM logic. Steps go exactly the same as the ones in the single-application version.

We have already provided an example at Insider-multiapp/template/synthesis/csim. Please refer to it to see how to write the CSIM logic.

C-RTL Co-Simulation

We provide a template at Insider-multiapp/template/cosim/. User first needs to replace kernels/app_pt* into their application kernels, and then updates interconnects.cpp accordingly to instantiate them. After that, execute staccel_syn to generate the project folder. User needs to modify project/software/verif_rtl/src/test_main.c to add their COSIM logic. The originaltest_main.c contains our example code.

Finally, execute make C_TEST=test_main in project/verif/scripts. Steps go exactly the same as the ones in the single-application version.

insider-multiapp's People

Contributors

zainryan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.