summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/OptionBundle.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/chiselTests/OptionBundle.scala')
-rw-r--r--src/test/scala/chiselTests/OptionBundle.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/OptionBundle.scala b/src/test/scala/chiselTests/OptionBundle.scala
index fa691b43..d2165f62 100644
--- a/src/test/scala/chiselTests/OptionBundle.scala
+++ b/src/test/scala/chiselTests/OptionBundle.scala
@@ -5,18 +5,19 @@ package chiselTests
import org.scalatest._
import chisel3._
import chisel3.testers.BasicTester
+import chisel3.NotStrict.CompileOptions
class OptionBundle(hasIn: Boolean) extends Bundle {
val in = if (hasIn) {
- Some(Bool(INPUT))
+ Some(Input(Bool()))
} else {
None
}
- val out = Bool(OUTPUT)
+ val out = Output(Bool())
}
class OptionBundleModule(hasIn: Boolean) extends Module {
- val io = new OptionBundle(hasIn)
+ val io = IO(new OptionBundle(hasIn))
if (hasIn) {
io.out := io.in.get
} else {