Subject: P-port maifold pressure tap.. Integration
From: Rotary Engine
Date: 7/15/2005, 8:43 AM
To: AA-me

Matt wrote:
Actually, my math was a bit off..  I think you pointed out the correct
method earlier.  The register size needs to be num_bits_per_sample +
num_samples - 1 or if num_bits_per_sample = 10 and num_samples is 7,
the register has to be 16bits wide to hold the sum.  This is true
whether you div7 or not.  Twiddle twiddle..  :)

Not that it really matters, but the formula for the size of an
accumulator is:
  Bits_per_sample + ceil(log2(num_samples))

Using Matt's numbers of 10 bits_per_sample and 7 samples, one needs an
accumulator width of:
  10 + ceil(log2(7))
  10 + ceil(2.8073549...)
  10 + 3
  13 bits

Russell Kent

The Rotary Engine NewsLetter.  Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Copyright 1998-2005 All world wide rights reserved.