Skip to content

Matrix Accelerator Generator for GeMM Operations based on SIGMA Architecture in CHISEL HDL

License

Notifications You must be signed in to change notification settings

merledu/magma-si

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAGMA-Si(Matrix Accelerator Generator for GeMM Operations)

Overview

Matrix Accelerator Generator designed in CHISEL HDL for efficient General Matrix Multiply (GeMM) operations. The architecture employed is the innovative SIGMA Architecture, which enhances performance and scalability in matrix multiplication tasks.

Key Features

CHISEL HDL: Developed using the CHISEL hardware description language, ensuring flexibility and control in hardware design.

GeMM Optimization: Tailored for General Matrix Multiply (GeMM) operations, a fundamental computational kernel in many numerical and machine learning applications.

SIGMA Architecture: Leveraging the SIGMA Architecture, known for its efficiency and scalability, to accelerate matrix multiplication tasks.

Performance: Designed with a focus on performance improvements, allowing for faster and more efficient matrix operations.

Usage

  1. Clone the Repository:

    git clone https://github.com/merledu/magma-si.git
    
  2. Access the Project Directory:

    cd magma-si
    
  3. Compile the project using SBT (Scala Build Tool) with the following command:

    sbt
  4. Execute the tests with VCD output by issuing the following command:

    testOnly magmasi.components.flexdpecom2test -- -DwriteVcd=1
  5. Test case that has been executed in this manner:

    1.  // for input data base 1
          c.io.i_data_bus(0).poke(1.U) 
    2. // for input data bus 2
          c.io.i_data_bus2(0).poke(0.U)
    3. // for i vn
          c.io.i_vn(3).poke("b11101".U)
    4. // for muxes
          c.io.i_mux_bus(576).poke(1.B)
    5. // stationary and valid
          c.io.i_stationary.poke(1.B)
          c.io.i_data_valid.poke(1.B)
  6. Desire Output:

    When you provide the correct input values for i_vn and muxes pins, you will receive the expected matrix output.
    

Documentation of Matrix multiplication achieved using it

In this document, we illustrate the matrix multiplication process and conduct a comparative analysis between the results obtained from traditional matrix multiplication and the flexDpe multiplication which is use in magma-si .matrix multiplication

About

Matrix Accelerator Generator for GeMM Operations based on SIGMA Architecture in CHISEL HDL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published