aboutsummaryrefslogtreecommitdiffstats
path: root/sound.v
diff options
context:
space:
mode:
Diffstat (limited to 'sound.v')
-rw-r--r--sound.v8
1 files changed, 7 insertions, 1 deletions
diff --git a/sound.v b/sound.v
index b26338a..692df59 100644
--- a/sound.v
+++ b/sound.v
@@ -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)
module sound(