Note: Compared to Morpher, Morpher-v2 can automatically generate RTL and synthesis. If you do not need this function, we suggest using Morpher
Welcome to Morpher, an open-source framework that provides comprehensive support for modeling diverse Coarse-Grained Reconfigurable Array (CGRA) architectures. The framework offers the following key features:
-
Architecture Description: Morpher enables users to design architecture characteristics through its Architecture Description Language (ADL).
-
Complex Kernels: It efficiently handles the mapping of complex compute kernels, going beyond simple test cases.
-
RTL Generation: Morpher automatically generates Verilog RTL code for custom CGRAs.
-
Functionality Verification: The framework validates the functionality of the architecture through Verilator/C++-based simulations.
Video Demonstration: Dive into the capabilities of Morpher as it highlights the CGRA compilation, architecture generation, and simulation flow.
morpher_demo.mp4
- An environment running Ubuntu 22.04.
- Clone and Setup the Repository:
git clone [YOUR_REPOSITORY_LINK]
cd [YOUR_REPOSITORY_NAME]
- Setup LLVM:
git clone https://github.com/llvm/llvm-project.git
cd llvm-project
git checkout 99020b3c73c1e22fa388be8fd0c44391d40b3a38
mkdir llvm-build && cd llvm-build
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=TRUE -DLLVM_TARGETS_TO_BUILD="X86" ../llvm
make -j$(nproc)
- Add LLVM to PATH:
export PATH=$PATH:[YOUR_PATH_TO_LLVM]/llvm-project/llvm-build/bin
- Install sbt:
echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
sudo apt-get update
sudo apt-get install sbt
- Install Verilator:
sudo apt-get install -y autoconf g++ libfl2 libfl-dev zlib1g-dev
git clone http://git.veripool.org/git/verilator
cd verilator
git pull
git checkout v4.110
autoconf
./configure
make -j$(nproc)
sudo make install
- Setup Python:
sudo apt install python3.8
python3 -m venv venv
source venv/bin/activate
- Install Dependencies:
echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu focal main universe" | sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt -y install g++-7
pip install -r python_requirements.txt
sudo apt-get install gcc-multilib g++-multilib
sudo apt install build-essential
- Build:
bash build_all.sh
- Run:
python -u run_morpher_llvm16.py morpher_benchmarks/array_add/array_add.c array_add
[CODAI] Accelerating Edge AI with Morpher: An Integrated Design, Compilation and Simulation Framework for CGRAs
(to appear in Workshop on Compilers, Deployment, and Tooling for Edge AI with Embedded Systems Week (ESWEEK))
@article{morpher-codai2023,
title = "{Accelerating Edge AI with Morpher: An Integrated Design, Compilation and Simulation Framework for CGRAs}",
author = {Dhananjaya Wijerathne, Zhaoying Li, Tulika Mitra},
journal = {Workshop on Compilers, Deployment, and Tooling for Edge AI (CODAI)},
month = {September},
year = {2023},
}
[WOSET] Morpher: An Open-Source Integrated Compilation and Simulation Framework for CGRA
(Appeared in Workshop on Open-Source EDA Technology co-sponsored by ICCAD 2022)
@article{morpher-woset2022,
title = "{Morpher: An Open-Source Integrated Compilation and Simulation Framework for CGRA}",
author = {Dhananjaya Wijerathne, Zhaoying Li, Manupa Karunaratne, Li-Shiuan Peh, Tulika Mitra},
journal = {Fifth Workshop on Open-Source EDA Technology (WOSET)},
month = {November},
year = {2022},
}
[DAC] PANORAMA: Divide-and-Conquer Approach for Mapping Complex Loop Kernels on CGRA
Dhananjaya Wijerathne, Zhaoying Li, Thilini Kaushalya Bandara, Tulika Mitra
59th ACM/IEEE Design Automation Conference, 2022 Publicity Paper
Artifact Link
[HPCA] LISA: Graph Neural Network based Portable Mapping on Spatial Accelerators
Zhaoying Li, Dan Wu, Dhananjaya Wijerathne, Tulika Mitra
28th IEEE International Symposium on High-Performance Computer Architecture, 2022
Artifact Link Distinguished Artifact Award
[ASPLOS] REVAMP: A Systematic Framework for Heterogeneous CGRA Realization
Thilini Kaushalya Bandara, Dhananjaya Wijerathne, Tulika Mitra, Li-Shiuan Peh
27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, 2022
Artifact Link
[TCAD] HiMap: Fast and Scalable High-Quality Mapping on CGRA via Hierarchical Abstraction
Dhananjaya Wijerathne, Zhaoying Li, Anuj Pathania, Tulika Mitra, Lothar Thiele
IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 41(10) 2022
[TCAD] ChordMap: Automated Mapping of Streaming Applications onto CGRA
Zhaoying Li, Dhananjaya Wijerathne, Xianzhang Chen, Anuj Pathania, Tulika Mitra
IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 41(2) 2022
[Book Chapter] Coarse-Grained Reconfigurable Array (CGRA)
Zhaoying Li, Dhananjaya Wijerathne, Tulika Mitra
Book chapter in “Handbook of Computer Architecture”, Springer (Invited)
[DATE] HiMap: Fast and Scalable High-Quality Mapping on CGRA via Hierarchical Abstraction
Dhananjaya Wijerathne, Zhaoying Li, Anuj Pathania, Tulika Mitra, Lothar Thiele
Design Automation and Test in Europe 2021
[TECS] CASCADE: High Throughput Data Streaming via Decoupled Access/Execute CGRA
Dhananjaya Wijerathne, Zhaoying Li, Manupa Karunaratne, Anuj Pathania, Tulika Mitra
ACM Transactions on Embedded Computing Systems
Special Issue on ACM/IEEE International Conference on Compilers, Architecture, and Synthesis for Embedded Systems 2019
[ICCAD] 4D-CGRA : Introducing the branch dimension to spatio-temporal application mapping of CGRAs
Manupa Karunaratne, Dhananjaya Wijerathne, Tulika Mitra, Li-Shiuan Peh
38th ACM/IEEE International Conference on Computer Aided Design, November 2019
[A-SSCC] HyCUBE: a 0.9V 26.4 MOPS/mW, 290 pJ/cycle, Power Efficient Accelerator for IoT Applications
Bo Wang, Manupa Karunarathne, Aditi Kulkarni, Tulika Mitra, Li-Shiuan Peh
IEEE Asian Solid-State Circuits Conference, November 2019
[DAC] DNestMap : Mapping Deeply-Nested Loops on Ultra-Low Power CGRAs
Manupa Karunaratne, Cheng Tan, Aditi Kulkarni, Tulika Mitra, Li-Shiuan Peh
55th ACM/IEEE Design Automation Conference, June 2018
[DAC] HyCUBE : A CGRA with Reconfigurable Single-cycle Multi-hop Interconnect
Manupa Karunaratne, Aditi Kulkarni, Tulika Mitra, Li-Shiuan Peh
54th ACM/IEEE Design Automation Conference, June 2017
[ACM-TRETS] Graph Minor Approach for Application Mapping on CGRAs
Liang Chen, Tulika Mitra
ACM Transactions on Reconfigurable Technology and Systems 2014
[FPT] Graph Minor Approach for Application Mapping on CGRAs Much expanded journal version
Liang Chen, Tulika Mitra
International Conference on Field Programmable Technology, December 2012
Best Paper Award