Skip to content

Commit

Permalink
Merge branch 'gemv-support' of github.com:ucb-bar/gemmini into gemv-s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
lelzeiny committed Apr 26, 2024
2 parents 16c8f9c + f17576e commit 2366a5c
Show file tree
Hide file tree
Showing 5 changed files with 158 additions and 75 deletions.
2 changes: 1 addition & 1 deletion software/libgemmini
13 changes: 13 additions & 0 deletions src/main/scala/gemmini/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ object GemminiConfigs {
meshRows=4, meshColumns=1
)

val smallConfig = defaultConfig.copy(meshRows = 4, meshColumns = 1, tileRows = 1, tileColumns = 4, sp_banks = 8, acc_banks = 4)
}

/**
Expand Down Expand Up @@ -307,6 +308,18 @@ class DummyDefaultGemminiConfig[T <: Data : Arithmetic, U <: Data, V <: Data](
)
})

class SmallGemminiConfig[T <: Data : Arithmetic, U <: Data, V <: Data](
gemminiConfig: GemminiArrayConfig[T,U,V] = GemminiConfigs.smallConfig
) extends Config((site, here, up) => {
case BuildRoCC => up(BuildRoCC) ++ Seq(
(p: Parameters) => {
implicit val q = p
val gemmini = LazyModule(new Gemmini(gemminiConfig))
gemmini
}
)
})

// This Gemmini config has both an Int and an FP Gemmini side-by-side, sharing
// the same scratchpad.
class DualGemminiConfig extends Config((site, here, up) => {
Expand Down
Loading

0 comments on commit 2366a5c

Please sign in to comment.