summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorducky2018-05-11 16:17:44 -0700
committerRichard Lin2018-07-04 18:39:28 -0500
commit83005e118c869f7cbadab32e1693e70a8e4c9840 (patch)
treeed204b33f9f47b576ffff46052b9ab53399b0aab /src
parent9a551fe1cc9c15d1ab9fca204ec3bdac2f920c48 (diff)
unbroken
Diffstat (limited to 'src')
-rw-r--r--src/test/scala/chiselTests/ConnectSpec.scala28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/test/scala/chiselTests/ConnectSpec.scala b/src/test/scala/chiselTests/ConnectSpec.scala
index ac6508ef..51814998 100644
--- a/src/test/scala/chiselTests/ConnectSpec.scala
+++ b/src/test/scala/chiselTests/ConnectSpec.scala
@@ -41,58 +41,58 @@ class ConnectSpec extends ChiselPropSpec {
assertTesterPasses{ new CrossConnectTester(SInt(16.W), SInt(16.W)) }
}
property("SInt := UInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(UInt(16.W), SInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(UInt(16.W), SInt(16.W)) } }
}
property("SInt := FixedPoint should fail") {
- intercept[ChiselException]{ new CrossConnectTester(FixedPoint(16.W, 8.BP), UInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(FixedPoint(16.W, 8.BP), UInt(16.W)) } }
}
property("UInt := UInt should succeed") {
assertTesterPasses{ new CrossConnectTester(UInt(16.W), UInt(16.W)) }
}
property("UInt := SInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(SInt(16.W), UInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(SInt(16.W), UInt(16.W)) } }
}
property("UInt := FixedPoint should fail") {
- intercept[ChiselException]{ new CrossConnectTester(FixedPoint(16.W, 8.BP), UInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(FixedPoint(16.W, 8.BP), UInt(16.W)) } }
}
property("Clock := Clock should succeed") {
assertTesterPasses{ new CrossConnectTester(Clock(), Clock()) }
}
property("Clock := UInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(Clock(), UInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(Clock(), UInt(16.W)) } }
}
property("FixedPoint := FixedPoint should succeed") {
assertTesterPasses{ new CrossConnectTester(FixedPoint(16.W, 8.BP), FixedPoint(16.W, 8.BP)) }
}
property("FixedPoint := SInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(SInt(16.W), FixedPoint(16.W, 8.BP)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(SInt(16.W), FixedPoint(16.W, 8.BP)) } }
}
property("FixedPoint := UInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(UInt(16.W), FixedPoint(16.W, 8.BP)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(UInt(16.W), FixedPoint(16.W, 8.BP)) } }
}
property("Analog := Analog should fail") {
- intercept[ChiselException]{ new CrossConnectTester(Analog(16.W), Analog(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(Analog(16.W), Analog(16.W)) } }
}
property("Analog := FixedPoint should fail") {
- intercept[ChiselException]{ new CrossConnectTester(Analog(16.W), FixedPoint(16.W, 8.BP)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(Analog(16.W), FixedPoint(16.W, 8.BP)) } }
}
property("FixedPoint := Analog should fail") {
- intercept[ChiselException]{ new CrossConnectTester(FixedPoint(16.W, 8.BP), Analog(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(FixedPoint(16.W, 8.BP), Analog(16.W)) } }
}
property("Analog := UInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(Analog(16.W), UInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(Analog(16.W), UInt(16.W)) } }
}
property("Analog := SInt should fail") {
- intercept[ChiselException]{ new CrossConnectTester(Analog(16.W), SInt(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(Analog(16.W), SInt(16.W)) } }
}
property("UInt := Analog should fail") {
- intercept[ChiselException]{ new CrossConnectTester(UInt(16.W), Analog(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(UInt(16.W), Analog(16.W)) } }
}
property("SInt := Analog should fail") {
- intercept[ChiselException]{ new CrossConnectTester(SInt(16.W), Analog(16.W)) }
+ intercept[ChiselException]{ elaborate { new CrossConnectTester(SInt(16.W), Analog(16.W)) } }
}
property("Pipe internal connections should succeed") {
elaborate( new PipeInternalWires)