summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/MultiAssign.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/MultiAssign.scala
parent5242ce90659decb9058ee75db56e5c188029fbf9 (diff)
parent747d16311bdf185d2e98e452b14cb5d8ccca004c (diff)
Merge branch 'master' into 3.5-release
Diffstat (limited to 'src/test/scala/chiselTests/MultiAssign.scala')
-rw-r--r--src/test/scala/chiselTests/MultiAssign.scala18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/scala/chiselTests/MultiAssign.scala b/src/test/scala/chiselTests/MultiAssign.scala
index fb5d6986..4cb51feb 100644
--- a/src/test/scala/chiselTests/MultiAssign.scala
+++ b/src/test/scala/chiselTests/MultiAssign.scala
@@ -9,16 +9,16 @@ import chisel3.util._
class LastAssignTester() extends BasicTester {
val countOnClockCycles = true.B
- val (cnt, wrap) = Counter(countOnClockCycles,2)
+ val (cnt, wrap) = Counter(countOnClockCycles, 2)
val test = Wire(UInt(4.W))
- assert(test === 7.U) // allow read references before assign references
+ assert(test === 7.U) // allow read references before assign references
test := 13.U
- assert(test === 7.U) // output value should be position-independent
+ assert(test === 7.U) // output value should be position-independent
test := 7.U
- assert(test === 7.U) // this obviously should work
+ assert(test === 7.U) // this obviously should work
when(cnt === 1.U) {
stop()
@@ -27,7 +27,7 @@ class LastAssignTester() extends BasicTester {
class MultiAssignSpec extends ChiselFlatSpec {
"The last assignment" should "be used when multiple assignments happen" in {
- assertTesterPasses{ new LastAssignTester }
+ assertTesterPasses { new LastAssignTester }
}
}
@@ -35,7 +35,7 @@ class IllegalAssignSpec extends ChiselFlatSpec with Utils {
"Reassignments to literals" should "be disallowed" in {
intercept[chisel3.internal.ChiselException] {
extractCause[ChiselException] {
- ChiselStage.elaborate{
+ ChiselStage.elaborate {
new BasicTester {
15.U := 7.U
}
@@ -47,7 +47,7 @@ class IllegalAssignSpec extends ChiselFlatSpec with Utils {
"Reassignments to ops" should "be disallowed" in {
intercept[chisel3.internal.ChiselException] {
extractCause[ChiselException] {
- ChiselStage.elaborate{
+ ChiselStage.elaborate {
new BasicTester {
(15.U + 1.U) := 7.U
}
@@ -59,7 +59,7 @@ class IllegalAssignSpec extends ChiselFlatSpec with Utils {
"Reassignments to bit slices" should "be disallowed" in {
intercept[chisel3.internal.ChiselException] {
extractCause[ChiselException] {
- ChiselStage.elaborate{
+ ChiselStage.elaborate {
new BasicTester {
(15.U)(1, 0) := 7.U
}
@@ -71,7 +71,7 @@ class IllegalAssignSpec extends ChiselFlatSpec with Utils {
"Bulk-connecting two read-only nodes" should "be disallowed" in {
intercept[chisel3.internal.ChiselException] {
extractCause[ChiselException] {
- ChiselStage.elaborate{
+ ChiselStage.elaborate {
new BasicTester {
(15.U + 1.U) <> 7.U
}