aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@trantor.hos.anvin.org>2008-12-28 19:35:45 -0800
committerH. Peter Anvin <hpa@trantor.hos.anvin.org>2008-12-28 19:35:45 -0800
commitbae566c0da6e2c610d18d937cba8ba0e84ef2392 (patch)
treedee645cb3be51770cd1426fa93b017bfcd05f918
parent75c18cdda014f4a02cd918e1f1bb075987fe0b3f (diff)
downloadabc80-bae566c0da6e2c610d18d937cba8ba0e84ef2392.tar.gz
abc80-bae566c0da6e2c610d18d937cba8ba0e84ef2392.tar.xz
abc80-bae566c0da6e2c610d18d937cba8ba0e84ef2392.zip
i2c: i2c_rom_stop had silently changed definition, so update value
The check of i2c_rom_stop changed from the beginning to the end of the cycle, which means that the value should be decremented to the last valid value.
-rw-r--r--i2c.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/i2c.v b/i2c.v
index 300c879..77f3f08 100644
--- a/i2c.v
+++ b/i2c.v
@@ -28,7 +28,7 @@ module sound_i2c (
parameter i2c_addr = 7'h1A; // DAC I2C address
// Only need to set registers 0-9
- parameter i2c_rom_stop = 4'd10;
+ parameter i2c_rom_stop = 4'd9; // Last valid register number
reg [3:0] i2c_rom_a;
wire [8:0] i2c_rom_q;