1
0

use MuxCase and MuxLookup instead of MuxBundle

This commit is contained in:
Howard Mao 2016-06-21 14:01:23 -07:00
parent 181b11bf20
commit 0967f3cfed
3 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ class ComparatorSource(implicit val p: Parameters) extends Module
// Override whatever else we were going to do if we are wiping
PutBlock(client_xact_id, wipe_addr_block, UInt(0), data),
// Generate a random a_type
MuxBundle(a_type_sel, get, Array(
MuxLookup(a_type_sel, get, Array(
UInt("b000") -> get,
UInt("b001") -> getBlock,
UInt("b010") -> put,

View File

@ -152,7 +152,7 @@ class NoAllocPutHitRegression(implicit p: Parameters) extends Regression()(p) {
addr_block = addr_block)
io.mem.acquire.valid := (state === s_prefetch) || (state === s_get) || (state === s_put)
io.mem.acquire.bits := MuxBundle(get_acq, Seq(
io.mem.acquire.bits := MuxCase(get_acq, Seq(
(state === s_prefetch) -> prefetch_acq,
(state === s_put) -> put_acq))
io.mem.grant.ready := Bool(true)
@ -228,7 +228,7 @@ class MixedAllocPutRegression(implicit p: Parameters) extends Regression()(p) {
addr_beat = test_beat(get_acq_id))
io.mem.acquire.valid := (state === s_pf_send) || (state === s_put_send) || (state === s_get_send)
io.mem.acquire.bits := MuxBundle(state, pf_acquire, Seq(
io.mem.acquire.bits := MuxLookup(state, pf_acquire, Seq(
s_put_send -> put_acquire,
s_get_send -> get_acquire))
io.mem.grant.ready := (state === s_pf_wait) || (state === s_put_wait) || (state === s_get_wait)

View File

@ -632,7 +632,7 @@ class BRAMSlaveDriver(implicit val p: Parameters) extends Module
state === s_pf_stall || state === s_put_stall || state === s_get_stall, 4)
io.mem.acquire.valid := (state === s_pf_req) || (state === s_put_req) || (state === s_get_req)
io.mem.acquire.bits := MuxBundle(state, get_acquire, Seq(
io.mem.acquire.bits := MuxLookup(state, get_acquire, Seq(
s_pf_req -> pf_acquire,
s_put_req -> put_acquire))
io.mem.grant.ready := (state === s_pf_resp) || (state === s_put_resp) || (state === s_get_resp)