Skip to content

Commit

Permalink
Fix for compilation error in PhysicallFilter
Browse files Browse the repository at this point in the history
I think this module is not tested during Chisel version is updated.
I fixed compiler error by chiselTypeOf
  • Loading branch information
ksungkeun84 committed Jul 18, 2024
1 parent 54ff555 commit afe77ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/devices/tilelink/PhysicalFilter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class PhysicalFilter(params: PhysicalFilterParams)(implicit p: Parameters) exten

// Frame an appropriate deny message
val denyValid = RegInit(false.B)
val deny = Reg(in.d.bits)
val deny = Reg(chiselTypeOf(in.d.bits))
val d_opcode = TLMessages.adResponse(in.a.bits.opcode)
val d_grant = edgeIn.manager.anySupportAcquireB.B && deny.opcode === TLMessages.Grant
when (in.a.valid && !allow && deny_ready && a_first) {
Expand All @@ -257,7 +257,7 @@ class PhysicalFilter(params: PhysicalFilterParams)(implicit p: Parameters) exten
}
}

val out_d = Wire(in.d.bits)
val out_d = Wire(chiselTypeOf(in.d.bits))
out_d := out.d.bits

// Deny can have unconditional priority, because the only out.d message possible is
Expand Down

0 comments on commit afe77ac

Please sign in to comment.