Skip to content

Commit

Permalink
[test] Remove elaborateAndGetModule
Browse files Browse the repository at this point in the history
This fully removes all custom functions out of `ChiselRunners` in
preparation for its removal.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Feb 26, 2025
1 parent a5c4f61 commit 1d31072
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/test/scala-2/chiselTests/ChiselSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,7 @@ import java.util.Calendar
import chisel3.reflect.DataMirror

/** Common utility functions for Chisel unit tests. */
sealed trait ChiselRunners extends Assertions {

def elaborateAndGetModule[A <: RawModule](t: => A): A = {
var res: Any = null
ChiselStage.emitCHIRRTL {
res = t
res.asInstanceOf[A]
}
res.asInstanceOf[A]
}
}
sealed trait ChiselRunners extends Assertions

trait WidthHelpers extends Assertions {

Expand Down

0 comments on commit 1d31072

Please sign in to comment.