Skip to content
/ spmv Public

A Chisel3 implementation of sparse matrix vector multiplication

Notifications You must be signed in to change notification settings

chenxuhao/spmv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spmv Accelerator

Spmv is a Chisel3 implementation of sparse matrix vector multiplication accelerator.

Usage:

$ sbt

> test:runMain spmv.SpmvMain

You can build the emulator using

cd ../emulator && make ROCKETCHIP_ADDONS=spmv CONFIG=SpmvAccelConfig

You can then test it using the emulator

make run-asm-tests

You can emulate the software implementation of spmv by running

./emulator-freechips.rocketchip.system-SpmvAccelConfig pk ../spmv/tests/spmv-sw.rv

or

./emulator-freechips.rocketchip.system-SpmvAccelConfig pk ../spmv/tests/spmv-sw-bm.rv

You can emulate the accelerated spmv by running

./emulator-freechips.rocketchip.system-SpmvAccelConfig pk ../spmv/tests/spmv-rocc-bm.rv

or

./emulator-freechips.rocketchip.system-SpmvAccelConfig pk ../spmv/tests/spmv-rocc.rv

The -bm versions of the code omit the print statements and will complete faster.

About

A Chisel3 implementation of sparse matrix vector multiplication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published