HellaCacheArbiter passes through if n == 1
This commit is contained in:
parent
cff8de9814
commit
40a146f625
@ -13,6 +13,9 @@ class HellaCacheArbiter(n: Int)(implicit p: Parameters) extends Module
|
|||||||
val mem = new HellaCacheIO
|
val mem = new HellaCacheIO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (n == 1) {
|
||||||
|
io.mem <> io.requestor.head
|
||||||
|
} else {
|
||||||
val s1_id = Reg(UInt())
|
val s1_id = Reg(UInt())
|
||||||
val s2_id = Reg(next=s1_id)
|
val s2_id = Reg(next=s1_id)
|
||||||
|
|
||||||
@ -59,6 +62,7 @@ class HellaCacheArbiter(n: Int)(implicit p: Parameters) extends Module
|
|||||||
io.requestor(i).replay_next := io.mem.replay_next
|
io.requestor(i).replay_next := io.mem.replay_next
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class InOrderArbiter[T <: Data, U <: Data](reqTyp: T, respTyp: U, n: Int)
|
class InOrderArbiter[T <: Data, U <: Data](reqTyp: T, respTyp: U, n: Int)
|
||||||
(implicit p: Parameters) extends Module {
|
(implicit p: Parameters) extends Module {
|
||||||
|
Loading…
Reference in New Issue
Block a user