Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for deprecation. #30

Merged
merged 1 commit into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/scala/dcc-mem.scala
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ class VLU(implicit p: Parameters) extends VXUModule()(p)
val wb_pred = pred << pred_shift
predq.io.deq.ready := !(pcnt_end || pidx_end)

unless (busy) {
when (!busy) {
assert(wb === Bits(0), "VLU: non-zero quiescent wb")
assert(bias_tail === SInt(0), "VLU: non-zero quiescent bias_tail")
assert(pcnt === UInt(0), "VLU: non-zero quiescent pcnt")
Expand Down
6 changes: 3 additions & 3 deletions src/main/scala/vmu-addr.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ABox0(implicit p: Parameters) extends VMUModule()(p) {
private val mask = io.mask.bits
val pred = mask.pred

unless (op.mode.unit) {
when (!op.mode.unit) {
assert(!io.mask.valid || !pred || (mask.nonunit.shift === UInt(0)),
"ABox0: simultaneous true predicate and non-zero stride shift")
}
Expand Down Expand Up @@ -119,7 +119,7 @@ class ABox0(implicit p: Parameters) extends VMUModule()(p) {
}

is (s_busy) {
unless (stall || io.xcpt.prop.vmu.stall) {
when (!(stall || io.xcpt.prop.vmu.stall)) {
io.mask.ready := fire(io.mask.valid)
io.vvaq.ready := fire(vvaq_valid, vvaq_en)
io.vpaq.valid := fire(vpaq_ready, pred, !io.tlb.resp.xcpt)
Expand All @@ -128,7 +128,7 @@ class ABox0(implicit p: Parameters) extends VMUModule()(p) {
io.agu.in.valid := op.mode.indexed || !mask.last

when (fire(null)) {
unless (op.mode.indexed || (op.mode.unit && !mask.unit.page)) {
when (!(op.mode.indexed || (op.mode.unit && !mask.unit.page))) {
op.base := io.agu.out.bits.addr
}
when (io.tlb.resp.xcpt && pred) {
Expand Down
18 changes: 9 additions & 9 deletions src/main/scala/vmu.scala
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ class IBox(implicit p: Parameters) extends VMUModule()(p) {
_agent.io.id := io.id
_agent.io.cfg <> io.cfg
io.agu <> _agent.io.agu
_agent
} else Module(new IBoxSL)
_agent.io
sequencer marked this conversation as resolved.
Show resolved Hide resolved
} else (Module(new IBoxSL)).io

agent.io.op.bits := op
agent.io.op.valid := opq.io.deq.valid
opq.io.deq.ready := agent.io.op.ready
io.aret := agent.io.aret
agent.op.bits := op
agent.op.valid := opq.io.deq.valid
opq.io.deq.ready := agent.op.ready
io.aret := agent.aret

val issue = Seq(io.abox(0), io.pbox(0),
agent.io.span(io.abox(1), io.pbox(1)), io.abox(2))
issue zip agent.io.issue map {case(s,d) => s <> d}
agent.span(io.abox(1), io.pbox(1)), io.abox(2))
issue zip agent.issue map {case(s,d) => s <> d}
}

class IBoxSL(implicit p: Parameters) extends VMUModule()(p) {
Expand Down Expand Up @@ -248,7 +248,7 @@ class IBoxML(implicit p: Parameters) extends VMUModule()(p) {
enq.valid := !aret_pending && (indexed || io.agu.out.valid)

when (enq.fire()) {
unless (indexed) {
when (!indexed) {
op.base := io.agu.out.bits.addr
}
op.vlen := vlen_next.asUInt()
Expand Down