diff options
| author | Andrew Waterman | 2017-02-24 00:19:03 -0800 |
|---|---|---|
| committer | Jack Koenig | 2017-03-08 11:27:04 -0600 |
| commit | 4f81b57bce638815de6671c2652095578773e935 (patch) | |
| tree | df84e3efd665867c480a807625333bcdf09903dc /chiselFrontend | |
| parent | 17ee2b5a344c9ff479cccade709eccddd75ce3a7 (diff) | |
Improve UIntToOH behavior on incorrect inputs; avoid log2Up
The old implementation failed to check for width <= -2, and
did the wrong thing when -1 was explicitly passed. Splitting
into two methods avoids the latter issue.
log2Ceil's argument might be 1, so employ a max operator.
Diffstat (limited to 'chiselFrontend')
0 files changed, 0 insertions, 0 deletions
