Skip to content

Commit

Permalink
fix: add chiselTypeOf when inst Wire(in.d)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingularityKChen authored and sequencer committed Mar 1, 2023
1 parent 1ff0db3 commit e645d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/devices/tilelink/Error.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TLError(params: DevNullParams, buffer: Boolean = true, beatBytes: Int = 4)
val (in, edge) = node.in(0)
val a = if (buffer) {Queue(in.a, 1)} else in.a

val da = Wire(in.d)
val da = Wire(chiselTypeOf(in.d))
val idle = RegInit(true.B)

val a_last = edge.last(a)
Expand All @@ -43,7 +43,7 @@ class TLError(params: DevNullParams, buffer: Boolean = true, beatBytes: Int = 4)

if (params.acquire) {
val c = if (buffer) {Queue(in.c, 1)} else in.c
val dc = Wire(in.d)
val dc = Wire(chiselTypeOf(in.d))

val c_last = edge.last(c)
val dc_last = edge.last(dc)
Expand Down

0 comments on commit e645d94

Please sign in to comment.