diff options
| author | Andrew Waterman | 2018-12-11 14:10:09 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2018-12-11 14:10:09 -0800 |
| commit | 4b05f9e8e5821272dee25628b77fc24314d438f0 (patch) | |
| tree | 952d91488b12b07831104b2f36c148f5fee6c500 /src/test/scala/chiselTests/ChiselSpec.scala | |
| parent | 6a0cffec5a23dd87e4386fc50683b7945113fc9f (diff) | |
Emit UInt.-% as tail(sub(x,y),1), not tail(asUInt(sub(x,y)),1)
This is semantically equivalent, but gets rid of a bunch of Firrtl text.
It also gets rid of a bunch of Verilog, because Firrtl is capable of
pattern-matching the new expression into SubWrap. The effect is that
we now get
wire [4:0] in;
wire [4:0] res;
assign res = 5'h0 - in;
instead of
wire [4:0] in;
wire [5:0] _T_40;
wire [5:0] _T_41;
wire [4:0] res;
assign _T_40 = 5'h0 - in;
assign _T_41 = $unsigned(_T_40);
assign res = _T_41[4:0];
Diffstat (limited to 'src/test/scala/chiselTests/ChiselSpec.scala')
0 files changed, 0 insertions, 0 deletions
