summaryrefslogtreecommitdiff
path: root/chiselFrontend
diff options
context:
space:
mode:
authorJim Lawson2019-07-18 13:46:53 -0700
committerGitHub2019-07-18 13:46:53 -0700
commitae784b6e9dde1a5692b37067573cfddc164cdf26 (patch)
treed53a68a4e3f71d5ceeda0c41f2e558d1530ce776 /chiselFrontend
parent8b8586087c0c8370773b453fb28ac5d426909e38 (diff)
Add width utility functions to avoid incorrect usage of bare log2Ceil(). (#819)
* Add width utility functions to avoid incorrect usage of bare log2Ceil(). * Respond to comments: Remove apply(Data) method. Change name(s) to signedBitLength, unsignedBitLength. * Respond to comments - don't be lazy. Independently calculate the bit length to verify correct operation. * Respond to comments - return in.bitLength - 0 (not 1) for 0 * Respond to comments - update wdith for signed 0; add explicit tests. * Add comment expressing zero width wire assumption.
Diffstat (limited to 'chiselFrontend')
0 files changed, 0 insertions, 0 deletions