summaryrefslogtreecommitdiff
path: root/integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala
diff options
context:
space:
mode:
authormergify[bot]2022-10-25 01:58:03 +0000
committerGitHub2022-10-25 01:58:03 +0000
commit2f890aabc1ecf04c6efcb84cee4f00da67be6a53 (patch)
treef913d335a49fa5394ff4435018277fd00e458235 /integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala
parentf86c1ff7b39146f23cd1959bcc63dcb3b0b27125 (diff)
Add Scalafmt for mill (backport #2805) (#2807)
* Add Scalafmt for mill (#2805) * add scalafmt for test in mill build system. * reformat codes in integration-tests (cherry picked from commit d881fd29d7af91a7c514565b4b21797f1e44fbdb) # Conflicts: # build.sc # integration-tests/src/test/scala/chiselTests/util/experimental/BitPat.scala * Resolve backport conflicts Co-authored-by: Jiuyang Liu <liu@jiuyang.me> Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala')
-rw-r--r--integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala b/integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala
index 6c8eb4b4..d0f16701 100644
--- a/integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala
+++ b/integration-tests/src/test/scala/chiselTests/util/experimental/algorithm/Bitwise.scala
@@ -11,7 +11,7 @@ class ScanLeftOrTestModule(width: Int) extends Module {
val input = IO(Input(UInt(width.W)))
var lsb = false.B
- val vec = for(b <- input.asBools) yield {
+ val vec = for (b <- input.asBools) yield {
val cur = b || lsb
lsb = cur
cur
@@ -34,13 +34,13 @@ class ScanRightOrTestModule(width: Int) extends Module {
class scanOrTest extends AnyFlatSpec with ChiselScalatestTester with Formal {
"scanLeftOr" should "compute correctly" in {
- for(i <- 1 to 16) {
+ for (i <- 1 to 16) {
verify(new ScanLeftOrTestModule(i), Seq(BoundedCheck(1)))
}
}
"scanRightOr" should "compute correctly" in {
- for(i <- 1 to 16) {
+ for (i <- 1 to 16) {
verify(new ScanRightOrTestModule(i), Seq(BoundedCheck(1)))
}
}