1
0
mirror of https://github.com/UzixLS/zx-sizif-512.git synced 2025-07-19 07:11:36 +03:00

add specdrum (covox variation)

This commit is contained in:
Eugene Lozovoy
2023-08-20 09:37:32 +03:00
parent 4439e8c5cb
commit 31cf4cc84d
3 changed files with 9 additions and 6 deletions

View File

@ -15,7 +15,7 @@ Another CPLD-based ZX Spectrum clone for 48K rubber case with some sweet feature
* PAL and RGB video output (Sega Mini-DIN/9 connector)
* Digital video output header for EGA monitors, VGA scandoublers, etc.
* ULAplus
* Mono covox (Pentagon standard)
* Mono covox (Pentagon ans SpecDrum standards)
* SounDrive (4-channel stereo covox)
* WiFi addon ([link](https://github.com/UzixLS/zx-sizif-512-wifi))
* Tape input via 3.5" jack and Bluetooth

View File

@ -2,8 +2,9 @@ import common::*;
module soundrive(
input rst_n,
input clk28,
input en_soundrive,
input en_covox,
input en_specdrum,
input en_soundrive,
cpu_bus bus,
@ -14,6 +15,7 @@ module soundrive(
);
wire covox_cs = en_covox && bus.ioreq && bus.a[7:0] == 8'hFB;
wire specdrum_cs = en_specdrum && bus.ioreq && bus.a[7:0] == 8'hDF;
wire soundrive_a_cs = en_soundrive && bus.ioreq && bus.a[7:0] == 8'h0F;
wire soundrive_b_cs = en_soundrive && bus.ioreq && bus.a[7:0] == 8'h1F;
wire soundrive_c_cs = en_soundrive && bus.ioreq && bus.a[7:0] == 8'h4F;
@ -27,13 +29,13 @@ always @(posedge clk28 or negedge rst_n) begin
ch_r1 <= 0;
end
else begin
if ((covox_cs || soundrive_a_cs) && bus.wr)
if ((covox_cs || specdrum_cs || soundrive_a_cs) && bus.wr)
ch_l0 <= bus.d;
if ((covox_cs || soundrive_b_cs) && bus.wr)
if ((covox_cs || specdrum_cs || soundrive_b_cs) && bus.wr)
ch_l1 <= bus.d;
if ((covox_cs || soundrive_c_cs) && bus.wr)
if ((covox_cs || specdrum_cs || soundrive_c_cs) && bus.wr)
ch_r0 <= bus.d;
if ((covox_cs || soundrive_d_cs) && bus.wr)
if ((covox_cs || specdrum_cs || soundrive_d_cs) && bus.wr)
ch_r1 <= bus.d;
end
end

View File

@ -489,6 +489,7 @@ soundrive soundrive0(
.rst_n(n_rstcpu_in),
.clk28(clk28),
.en_covox(covox_en),
.en_specdrum(covox_en),
.en_soundrive(soundrive_en),
.bus(bus),