summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/WireSpec.scala
diff options
context:
space:
mode:
authorMartin Schoeberl2019-01-25 23:24:01 -0800
committerRichard Lin2019-01-25 23:24:01 -0800
commit5509cdd4c8332c53151e10ba5bdbe0684af1c05b (patch)
tree15f4a7e8f83e0d249918bbce4198160fb2c5360f /src/test/scala/chiselTests/WireSpec.scala
parent4f5ec211cb59f9da37dbe91d0dfcb93c4d3d84c9 (diff)
WireDefault instead of WireInit, keep WireInit around (#986)
Diffstat (limited to 'src/test/scala/chiselTests/WireSpec.scala')
-rw-r--r--src/test/scala/chiselTests/WireSpec.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/scala/chiselTests/WireSpec.scala b/src/test/scala/chiselTests/WireSpec.scala
index 051880ee..7a1e1e06 100644
--- a/src/test/scala/chiselTests/WireSpec.scala
+++ b/src/test/scala/chiselTests/WireSpec.scala
@@ -5,16 +5,16 @@ package chiselTests
import chisel3._
class WireSpec extends ChiselFlatSpec {
- "WireInit.apply" should "work" in {
- assertCompiles("WireInit(UInt(4.W), 2.U)")
+ "WireDefault.apply" should "work" in {
+ assertCompiles("WireDefault(UInt(4.W), 2.U)")
}
it should "allow DontCare" in {
- assertCompiles("WireInit(UInt(4.W), DontCare)")
+ assertCompiles("WireDefault(UInt(4.W), DontCare)")
}
it should "not allow DontCare to affect type inference" in {
- assertCompiles("val x: UInt = WireInit(UInt(4.W), DontCare)")
+ assertCompiles("val x: UInt = WireDefault(UInt(4.W), DontCare)")
}
it should "not allow init argument to affect type inference" in {
- assertDoesNotCompile("val x: UInt = WireInit(UInt(4.W), 2.S)")
+ assertDoesNotCompile("val x: UInt = WireDefault(UInt(4.W), 2.S)")
}
}