summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/ModuleExplicitResetSpec.scala
diff options
context:
space:
mode:
authorRichard Lin2016-11-21 13:44:26 -0800
committerGitHub2016-11-21 13:44:26 -0800
commit3b4755716a74d4711efa3ce6799742479e17e80b (patch)
tree56652eaa478d5dfd8cddfbe2795c0123d39d230d /src/test/scala/chiselTests/ModuleExplicitResetSpec.scala
parentcd6eb41275381a4399a8a88c886110d276bb805c (diff)
parent81e5d00d18a5ba9ae33c10219a270148002fc672 (diff)
Merge pull request #372 from ucb-bar/onetrueliteral
Standardize the One True Way of specifying literals
Diffstat (limited to 'src/test/scala/chiselTests/ModuleExplicitResetSpec.scala')
-rw-r--r--src/test/scala/chiselTests/ModuleExplicitResetSpec.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/scala/chiselTests/ModuleExplicitResetSpec.scala b/src/test/scala/chiselTests/ModuleExplicitResetSpec.scala
index f8206b9c..27cf4a5f 100644
--- a/src/test/scala/chiselTests/ModuleExplicitResetSpec.scala
+++ b/src/test/scala/chiselTests/ModuleExplicitResetSpec.scala
@@ -6,13 +6,13 @@ class ModuleExplicitResetSpec extends ChiselFlatSpec {
"A Module with an explicit reset in compatibility mode" should "elaborate" in {
import Chisel._
- val myReset = Bool(true)
+ val myReset = true.B
class ModuleExplicitReset(reset: Bool) extends Module(_reset = reset) {
val io = new Bundle {
val done = Bool(OUTPUT)
}
- io.done := Bool(false)
+ io.done := false.B
}
elaborate {
@@ -22,13 +22,13 @@ class ModuleExplicitResetSpec extends ChiselFlatSpec {
"A Module with an explicit reset in non-compatibility mode" should "elaborate" in {
import chisel3._
- val myReset = Bool(true)
+ val myReset = true.B
class ModuleExplicitReset(reset: Bool) extends Module(_reset = reset) {
val io = IO(new Bundle {
- val done = Bool(OUTPUT)
+ val done = Output(Bool())
})
- io.done := Bool(false)
+ io.done := false.B
}
elaborate {