summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/RebindingSpec.scala
diff options
context:
space:
mode:
authorJack2022-01-12 04:27:19 +0000
committerJack2022-01-12 04:27:19 +0000
commit29df513e348cc809876893f650af8180f0190496 (patch)
tree06daaea954b4e5af7113f06e4bdbb78b33515cb3 /src/test/scala/chiselTests/RebindingSpec.scala
parent5242ce90659decb9058ee75db56e5c188029fbf9 (diff)
parent747d16311bdf185d2e98e452b14cb5d8ccca004c (diff)
Merge branch 'master' into 3.5-release
Diffstat (limited to 'src/test/scala/chiselTests/RebindingSpec.scala')
-rw-r--r--src/test/scala/chiselTests/RebindingSpec.scala28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/test/scala/chiselTests/RebindingSpec.scala b/src/test/scala/chiselTests/RebindingSpec.scala
index 808b1137..5dc0589e 100644
--- a/src/test/scala/chiselTests/RebindingSpec.scala
+++ b/src/test/scala/chiselTests/RebindingSpec.scala
@@ -7,22 +7,26 @@ import chisel3.stage.ChiselStage
class RebindingSpec extends ChiselFlatSpec with Utils {
"Rebinding a literal" should "fail" in {
- a [BindingException] should be thrownBy extractCause[BindingException] {
- ChiselStage.elaborate { new Module {
- val io = IO(new Bundle {
- val a = 4.U
- })
- } }
+ a[BindingException] should be thrownBy extractCause[BindingException] {
+ ChiselStage.elaborate {
+ new Module {
+ val io = IO(new Bundle {
+ val a = 4.U
+ })
+ }
+ }
}
}
"Rebinding a hardware type" should "fail" in {
- a [BindingException] should be thrownBy extractCause[BindingException] {
- ChiselStage.elaborate { new Module {
- val io = IO(new Bundle {
- val a = Reg(UInt(32.W))
- })
- } }
+ a[BindingException] should be thrownBy extractCause[BindingException] {
+ ChiselStage.elaborate {
+ new Module {
+ val io = IO(new Bundle {
+ val a = Reg(UInt(32.W))
+ })
+ }
+ }
}
}
}