diff options
| author | Andrew Waterman | 2015-07-22 18:40:54 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-07-22 18:40:54 -0700 |
| commit | 69e7b73274e1ad6d34fbe1c4a821273580dc4613 (patch) | |
| tree | 3af50a325cdf8e758a438e716008178791b90f69 | |
| parent | 256266dc134e85f7bd1f1415627607c9b541b843 (diff) | |
Generalize bitSet
| -rw-r--r-- | src/main/scala/Core.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Core.scala b/src/main/scala/Core.scala index 4e4a4671..facb1e81 100644 --- a/src/main/scala/Core.scala +++ b/src/main/scala/Core.scala @@ -712,7 +712,7 @@ abstract class Bits(dirArg: Direction, width: Int) extends Element(dirArg, width def andR = (this === Bits(-1)) def xorR = bits_redop(XorReduceOp) - def bitSet(off: BigInt, dat: Bits): Bits = { + def bitSet(off: UInt, dat: Bits): Bits = { val bit = UInt(1, 1) << off this & ~bit | dat.toSInt & bit } |
