diff options
| author | Adam Izraelevitz | 2019-10-18 19:01:19 -0700 |
|---|---|---|
| committer | GitHub | 2019-10-18 19:01:19 -0700 |
| commit | fd981848c7d2a800a15f9acfbf33b57dd1c6225b (patch) | |
| tree | 3609a301cb0ec867deefea4a0d08425810b00418 /src/main/scala/firrtl/proto | |
| parent | 973ecf516c0ef2b222f2eb68dc8b514767db59af (diff) | |
Upstream intervals (#870)
Major features:
- Added Interval type, as well as PrimOps asInterval, clip, wrap, and sqz.
- Changed PrimOp names: bpset -> setp, bpshl -> incp, bpshr -> decp
- Refactored width/bound inferencer into a separate constraint solver
- Added transforms to infer, trim, and remove interval bounds
- Tests for said features
Plan to be released with 1.3
Diffstat (limited to 'src/main/scala/firrtl/proto')
| -rw-r--r-- | src/main/scala/firrtl/proto/ToProto.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/proto/ToProto.scala b/src/main/scala/firrtl/proto/ToProto.scala index 70de3ccd..9fe01a07 100644 --- a/src/main/scala/firrtl/proto/ToProto.scala +++ b/src/main/scala/firrtl/proto/ToProto.scala @@ -99,9 +99,13 @@ object ToProto { Bits -> Op.OP_EXTRACT_BITS, Head -> Op.OP_HEAD, Tail -> Op.OP_TAIL, - BPShl -> Op.OP_SHIFT_BINARY_POINT_LEFT, - BPShr -> Op.OP_SHIFT_BINARY_POINT_RIGHT, - BPSet -> Op.OP_SET_BINARY_POINT + IncP -> Op.OP_INCREASE_PRECISION, + DecP -> Op.OP_DECREASE_PRECISION, + SetP -> Op.OP_SET_PRECISION, + AsInterval -> Op.OP_AS_INTERVAL, + Squeeze -> Op.OP_SQUEEZE, + Wrap -> Op.OP_WRAP, + Clip -> Op.OP_CLIP ) def convert(ruw: ir.ReadUnderWrite.Value): ReadUnderWrite = ruw match { |
