aboutsummaryrefslogtreecommitdiffstats
path: root/sound.v
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-02-02 09:12:33 +0000
committerH. Peter Anvin <hpa@zytor.com>2005-02-02 09:12:33 +0000
commit016d4bb07d5d9fa10878718818ae419b339d2803 (patch)
treebb951fb2e2b271c7510234c0a20d92e25f450d2c /sound.v
parent2f437e650e00a920bcc9491eab40c676601d9c6c (diff)
downloadabc80-016d4bb07d5d9fa10878718818ae419b339d2803.tar.gz
abc80-016d4bb07d5d9fa10878718818ae419b339d2803.tar.xz
abc80-016d4bb07d5d9fa10878718818ae419b339d2803.zip
Minor cleanups; allow LEDs to be overridden; CAS output on prototypeabc80-16
connector; sound card fixes.
Diffstat (limited to 'sound.v')
-rw-r--r--sound.v7
1 files changed, 6 insertions, 1 deletions
diff --git a/sound.v b/sound.v
index 598d7ed..af98d12 100644
--- a/sound.v
+++ b/sound.v
@@ -100,6 +100,7 @@ module mixer(
input slf,
input vco,
input noise,
+ input envelope,
input [2:0] mixer_ctl,
output mixer_out
);
@@ -124,7 +125,10 @@ module mixer(
3'b110:
out <= slf & vco;
3'b111:
- out <= 1;
+ // This doesn't match the documentation, but if the documentation
+ // is followed and this is out <= 1, then "out 6,255" is silent,
+ // which it definitely wasn't on real hardware.
+ out <= envelope;
endcase // case( mixer_ctl )
endmodule // mixer
@@ -295,6 +299,7 @@ module sound_generator(
mixer mixer ( .slf (w_slf),
.vco (w_vco),
.noise (w_noise),
+ .envelope (w_envelope),
.mixer_ctl (mixer_ctl),
.mixer_out (w_mixer_out) );