diff options
| author | ducky | 2016-11-17 13:06:57 -0800 |
|---|---|---|
| committer | ducky | 2016-11-21 13:31:12 -0800 |
| commit | 73906fcc796b259c81d5df7733968b77fbb81ba8 (patch) | |
| tree | 5f85e2e3cbf4753ddb4e8fa1014c465fa7005555 /src/test/scala/chiselTests/BitwiseOps.scala | |
| parent | 54d3f8dc054e55dfbd01d1aa034169a3dabe89f2 (diff) | |
All remaining automatable regex re-styles
Diffstat (limited to 'src/test/scala/chiselTests/BitwiseOps.scala')
| -rw-r--r-- | src/test/scala/chiselTests/BitwiseOps.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/chiselTests/BitwiseOps.scala b/src/test/scala/chiselTests/BitwiseOps.scala index 08999a1b..b8efaccf 100644 --- a/src/test/scala/chiselTests/BitwiseOps.scala +++ b/src/test/scala/chiselTests/BitwiseOps.scala @@ -9,8 +9,8 @@ import chisel3.testers.BasicTester class BitwiseOpsTester(w: Int, _a: Int, _b: Int) extends BasicTester { val mask = (1 << w) - 1 - val a = UInt(_a, w) - val b = UInt(_b, w) + val a = _a.asUInt(w.W) + val b = _b.asUInt(w.W) assert(~a === UInt(mask & ~_a)) assert((a & b) === UInt(_a & _b)) assert((a | b) === UInt(_a | _b)) |
