How to model a counter using an equation?

Status
Not open for further replies.

svensl

Full Member level 1
Joined
Mar 25, 2005
Messages
99
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
2,202
Does anyone know how to model a counter? Conceptually, the counter counts edge triggered events at its input, accumulates them over some time, before dumping the result to the output.
With model I mean what equation could I use to represent such behaviour?

Thanks,
 

model

Well I am firing an arrow in the dark...

Edge triggered behaviour can be represented by the differentiation of the input signal.

Pass the derrivative to a threshold fnction that shall return 1 if the derrivative is above a certain level else return 0.

Count the number of 1s you have got.

Honestly tell me svensl... Have I spoken sense?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…