summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main
diff options
context:
space:
mode:
authorAndrew Waterman2017-02-24 00:19:03 -0800
committerJack Koenig2017-03-08 11:27:04 -0600
commit4f81b57bce638815de6671c2652095578773e935 (patch)
treedf84e3efd665867c480a807625333bcdf09903dc /chiselFrontend/src/main
parent17ee2b5a344c9ff479cccade709eccddd75ce3a7 (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/src/main')
0 files changed, 0 insertions, 0 deletions