diff options
| author | Andrew Waterman | 2015-08-13 14:59:43 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-08-13 15:00:33 -0700 |
| commit | dc3e209f89c409217aab6025b836bad12198c0fb (patch) | |
| tree | e9f9a6ca4580c3964252d3b073a81447445aab51 /src/main | |
| parent | 02adb3e2fb40f555e317eb63d0927c082c0d0099 (diff) | |
Don't fold constants in the frontend
We need to make a similar change for extract, pending a FIRRTL bug fix.
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/scala/Chisel/Core.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/scala/Chisel/Core.scala b/src/main/scala/Chisel/Core.scala index d257044b..4a0ee386 100644 --- a/src/main/scala/Chisel/Core.scala +++ b/src/main/scala/Chisel/Core.scala @@ -631,11 +631,7 @@ object Cat { val left = apply(r.slice(0, r.length/2)) val right = apply(r.slice(r.length/2, r.length)) val w = left.width + right.width - - if (left.isLit && right.isLit) - UInt((left.litValue() << right.getWidth) | right.litValue(), w) - else - pushOp(DefPrim(UInt(NO_DIR, w), ConcatOp, left.ref, right.ref)) + pushOp(DefPrim(UInt(NO_DIR, w), ConcatOp, left.ref, right.ref)) } } } |
