Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Fix legacy support for ExecutionOptions #195

Merged
merged 1 commit into from
Sep 18, 2020
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import chiseltest._
import chiseltest.internal.{TreadleBackendAnnotation, VerilatorBackendAnnotation}
import chisel3._
import treadle.HasTreadleSuite
import firrtl.stage.CompilerAnnotation
import firrtl.stage.{CompilerAnnotation, RunFirrtlTransformAnnotation}
import firrtl.{
AnnotationSeq, ExecutionOptionsManager, LowFirrtlCompiler, MinimumVerilogCompiler,
NoneCompiler, SystemVerilogCompiler, VerilogCompiler}
AnnotationSeq, ExecutionOptionsManager, FirrtlEmitter, LowFirrtlCompiler, MinimumVerilogCompiler,
NoneCompiler, SystemVerilogCompiler, VerilogCompiler, VerilogEmitter}

package object TestOptionBuilder {
implicit class ChiselScalatestOptionBuilder[T <: MultiIOModule](x: ChiselScalatestTester#TestBuilder[T]) {
Expand All @@ -29,6 +29,8 @@ package object TestOptionBuilder {
case CompilerAnnotation(compiler) if compiler.isInstanceOf[VerilogCompiler] => VerilatorBackendAnnotation
case CompilerAnnotation(compiler) if compiler.isInstanceOf[MinimumVerilogCompiler] => VerilatorBackendAnnotation
case CompilerAnnotation(compiler) if compiler.isInstanceOf[SystemVerilogCompiler] => VerilatorBackendAnnotation
case RunFirrtlTransformAnnotation(_: FirrtlEmitter) => TreadleBackendAnnotation
case RunFirrtlTransformAnnotation(_: VerilogEmitter) => VerilatorBackendAnnotation
case anno => anno
}

Expand Down