Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.01 KB

File metadata and controls

30 lines (23 loc) · 1.01 KB

cgsim compute graph prototyping library

This project enables development and simulation of compute graphs for AMD Versal SoCs without AMD's official toolchain. The cgsim library provides a compute graph simulator, while the graph extractor can convert cgsim-based compute graphs into AMD Versal AIE projects (as well as HLS in the future).

Building

Requirements:

  • CMake >= 3.25
  • Clang >= 16
  • Ninja
  • GNU ld
  • Boost

Additionally, if you copy or link the aietools directory from a recent Vitis install into the root directory of this project, it will build a set of AIE-specific examples.

To build:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
ninja

Testing

  • Run scripts/run-{example_name}.sh to test cgsim.
  • Run scripts/extract-{example_name}.sh to test the graph extractor. Resulting Vitis project files are placed in output/{example_name}.