Diffstat (limited to 'sound.v')
1 files changed, 7 insertions, 1 deletions
@@ -10,8 +10,14 @@
* low pass filter.
+// The number of extra bits of precision (XBITS) necessary isn't very
+// clear. I ran the contents of a full CD through a simulator of the
+// algorithm, and came up with at least one transition which required
+// 6 extra bits.
`define MSB (BITS-1)
-`define XBITS 4 // Additional bits of precision
+`define XBITS 6 // Additional bits of precision
`define DBITS (`MSB+`XBITS)