Skip to content

Commit

Permalink
latest working gemv with fine-grained isa
Browse files Browse the repository at this point in the history
  • Loading branch information
Seah Kim authored and Seah Kim committed Aug 19, 2023
1 parent 193652d commit 5445b2f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/scala/gemmini/ExecuteController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -800,9 +800,10 @@ class ExecuteController[T <: Data, U <: Data, V <: Data](xLen: Int, tagWidth: In
))
val total_rows_D = RegInit(0.U(log2Up(block_size+1).W))

when(((d_mesh_fire_counter === (total_rows_D-1.U)) || d_mesh_fire_counter === 0.U) && (!(dataD_valid && cntl.d_fire) || d_garbage)){
when((d_mesh_fire_counter === (total_rows_D-1.U)) || d_mesh_fire_counter === 0.U) {//&& (!(dataD_valid && cntl.d_fire) || d_garbage)){
new_d := true.B
}

dontTouch(dataA_valid)
dontTouch(dataD_valid)

Expand All @@ -822,8 +823,8 @@ class ExecuteController[T <: Data, U <: Data, V <: Data](xLen: Int, tagWidth: In

val dataD_reg = Reg(Vec(meshRows, inputType))
val dataD_reg_valid = RegInit(false.B)
val dataD_reg_condition = readValid(cntl.d_bank) && cntl.d_fire && (d_mesh_fire_counter === (total_rows_D-1.U) || d_mesh_fire_counter === 0.U)&& !cntl.d_garbage
//val dataD_reg_condition = readValid(cntl.d_bank) && cntl.d_fire && (d_mesh_fire_counter === 0.U)&& !cntl.d_garbage
//val dataD_reg_condition = readValid(cntl.d_bank) && cntl.d_fire && (d_mesh_fire_counter === (total_rows_D-1.U) || d_mesh_fire_counter === 0.U)&& !cntl.d_garbage
val dataD_reg_condition = readValid(cntl.d_bank) && cntl.d_fire && (d_mesh_fire_counter === 0.U)&& !cntl.d_garbage

when(dataD_reg_condition){
//when(dataD_valid && !d_garbage && !cntl.d_garbage){
Expand Down

0 comments on commit 5445b2f

Please sign in to comment.