rohd-hcl icon indicating copy to clipboard operation
rohd-hcl copied to clipboard

Binary Counter

Open mkorbel1 opened this issue 1 year ago • 2 comments

Motivation

Configurable counters are useful!

Desired solution

  • Reset with reset value
  • Saturation value (maximum value)
  • Saturation behavior (overflow vs. hold at saturated value)
  • Enable (increment) -> when high: increment, when low: don't increment
  • Enable decrement
  • Increment amount
  • Decrement amount
  • number of increments/decrements (different constructors maybe for 1 vs multiple)

Alternatives considered

No response

Additional details

No response

mkorbel1 avatar Jan 18 '24 19:01 mkorbel1

Hey Max! I will work on this one

RPG-coder-intc avatar Jan 18 '24 19:01 RPG-coder-intc

In consideration for up counters and down counters, does saturation count as only == saturation value, or is it >= or <= in case incr/decr amount is not 1?

mkorbel1 avatar Mar 07 '24 19:03 mkorbel1