diff options
| author | Henry Cook | 2015-08-13 23:32:14 -0700 |
|---|---|---|
| committer | Henry Cook | 2015-08-13 23:32:14 -0700 |
| commit | caf993c89ba07a65d05b0e17d109a60f96330136 (patch) | |
| tree | 9decc9c40d6b39aecf38c6fcbb9a09dabb0c21b7 /src/test/scala/chiselTests/ChiselSpec.scala | |
| parent | 31c5c92fa59cbd9aec00851fd722b9a6317179ef (diff) | |
add decoder test
Diffstat (limited to 'src/test/scala/chiselTests/ChiselSpec.scala')
| -rw-r--r-- | src/test/scala/chiselTests/ChiselSpec.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/chiselTests/ChiselSpec.scala b/src/test/scala/chiselTests/ChiselSpec.scala index e9ec2dae..1f1b5399 100644 --- a/src/test/scala/chiselTests/ChiselSpec.scala +++ b/src/test/scala/chiselTests/ChiselSpec.scala @@ -40,10 +40,10 @@ class ChiselPropSpec extends PropSpec with PropertyChecks { def popCount(n: Long) = n.toBinaryString.count(_=='1') - val smallPosInts = Gen.choose(1, 16) + val smallPosInts = Gen.choose(1, 8) val safeUIntWidth = Gen.choose(1, 31) val safeUInts = Gen.choose(0, (1 << 30)) val vecSizes = Gen.choose(0, 4) def enSequence(n: Int) = Gen.containerOfN[List,Boolean](n,Gen.oneOf(true,false)) + val binaryString = for(i <- Arbitrary.arbitrary[Int]) yield "b" + i.toBinaryString } - |
