Skip to content

Commit

Permalink
re-enable rocc interface
Browse files Browse the repository at this point in the history
  • Loading branch information
richardyrh committed May 7, 2024
1 parent 493c45a commit 6acc664
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/scala/gemmini/Controller.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ class Gemmini[T <: Data : Arithmetic, U <: Data, V <: Data](val config: GemminiA

val mem_depth = config.sp_bank_entries * spad_data_len / max_data_len
val mem_width = max_data_len
require(mem_depth * mem_width * config.sp_banks == 1 << 14, f"memory size is ${mem_depth}, ${mem_width}")
println(f"unified shared memory size: ${mem_depth}x${mem_width}x${config.sp_banks}")

// make scratchpad read and write clients, per bank
Expand Down Expand Up @@ -259,8 +258,8 @@ class GemminiModule[T <: Data: Arithmetic, U <: Data, V <: Data]
regCommand.status := io.cmd.bits.status

val raw_cmd_q = Module(new Queue(new GemminiCmd(reservation_station_entries), entries = 2))
raw_cmd_q.io.enq.valid := regValid // || io.cmd.valid
io.cmd.ready := false.B // raw_cmd_q.io.enq.ready && !regValid
raw_cmd_q.io.enq.valid := regValid || io.cmd.valid
io.cmd.ready := raw_cmd_q.io.enq.ready && !regValid
assert(!regValid || raw_cmd_q.io.enq.ready)
raw_cmd_q.io.enq.bits.cmd := Mux(regValid, regCommand, io.cmd.bits)
raw_cmd_q.io.enq.bits.rob_id := DontCare
Expand Down

0 comments on commit 6acc664

Please sign in to comment.