summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJosh Bassett2020-07-30 15:11:33 +1000
committerGitHub2020-07-30 05:11:33 +0000
commitfca89f6c8544a1e0b42e1cec34207f74bf238e8a (patch)
treeb6b6ed8c10bb11364ffca807ee41241ca1dbc697 /core
parent164490c8fbf132ca65644d05d6ff8d0d7a3beb20 (diff)
Allow a counter to be instantiated using a Scala range (#1515)
* Add positive range generator * Allow the Counter module to be instantiated with a Scala range * Use head/last to determine counter width Co-authored-by: Jack Koenig <jack.koenig3@gmail.com> * Let counter overflow naturally when appropriate We only need to explicitly wrap counters that don't start at zero, or end on a power of two. Otherwise we just let the counter overflow naturally to avoid wasting an extra mux. * Require counter range to be non-empty Co-authored-by: Jack Koenig <jack.koenig3@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions