Hi to all,
The sum or average of a certain number of samples (for ex. the last 100 values received) have to be checked constantly against a threshold.
I thought of implementing this by keeping a "Moving Sum" which will work by adding the new value and subtracting the oldest. I think that can be implemented by adding to a register the value just arriving and subtracting the value coming out of an 100 word deep shift register.
Now, if a longer sum has to be checked then there is a memory problem because a lot of values have to be stored. In addition more than one "Moving Sums" is needed so if I use the above implementation I will have in addition to store the same data more than once (for ex. the 1000 word Shift Register will include the 100 word S.R. data).
Any idea of how this could be implemented?
The final system will have to keep 10 moving sums with the largest being
250,000 (8-bit) values for each of the 16 independent input channels.Help to the design problem will be appreciated and acknowledged.
Christos
__________________________________________________
Christos Zamantzas CERN, European Organization for Nuclear Research Div. AB/BDI/BL tel: +41 22 767 3409 CH-1211 Geneva 23 fax: +41 22 767 9560 Switzerland snipped-for-privacy@cern.ch __________________________________________________