1
0
mirror of https://github.com/Gehstock/Mist_FPGA.git synced 2026-01-17 08:33:16 +00:00

Fixing Sound

This commit is contained in:
Gehstock 2019-11-13 12:18:11 +01:00
parent eaae0c8cde
commit e7ec22c1e5
8 changed files with 10 additions and 6 deletions

View File

@ -5,8 +5,6 @@
--
-- VGA Only
-- ToDo Sound Problems Don´t fully Understand the SDRAM Module
---------------------------------------------------------------------------------
-- DE10_lite Top level for Kick (Midway MCR) by Dar (darfpga@aol.fr) (19/10/2019)
-- http://darfpga.blogspot.fr

View File

@ -18,7 +18,7 @@
#
# Quartus II 64-Bit
# Version 13.1.0 Build 162 10/23/2013 SJ Web Edition
# Date created = 01:01:06 November 13, 2019
# Date created = 12:02:23 November 13, 2019
#
# -------------------------------------------------------------------------- #
#

View File

@ -123,7 +123,7 @@ sdram sdram(
// port2 for sound board
.port2_req ( port2_req ),
.port2_ack (),
.port2_a ( ioctl_downl ? ioctl_addr[23:1] - 16'hD000 : snd_addr[13:1] ),
.port2_a ( ioctl_downl ? ioctl_addr[23:1] - 16'h6000 : snd_addr[13:1] ),
.port2_ds ( ioctl_downl ? {ioctl_addr[0], ~ioctl_addr[0]} : 2'b11 ),
.port2_we ( ioctl_downl ),
.port2_d ( {ioctl_dout, ioctl_dout} ),

View File

@ -4,6 +4,12 @@
-- 13 November 2019
--
-- VGA Only
Coin : ESC
Start : F1 or F2
Aim : Button F and G
Movement : Joystick or Arrow Keys
Fire : Fire Button or Space
-- Some Controls needs a Fix
---------------------------------------------------------------------------------

View File

@ -124,7 +124,7 @@ sdram sdram(
// port2 for sound board
.port2_req ( port2_req ),
.port2_ack (),
.port2_a ( ioctl_downl ? ioctl_addr[23:1] - 16'hC000 : snd_addr[13:1] ),
.port2_a ( ioctl_downl ? ioctl_addr[23:1] - 16'h8000 : snd_addr[13:1] ),//8000 C000
.port2_ds ( ioctl_downl ? {ioctl_addr[0], ~ioctl_addr[0]} : 2'b11 ),
.port2_we ( ioctl_downl ),
.port2_d ( {ioctl_dout, ioctl_dout} ),

View File

@ -391,7 +391,7 @@ begin
if vcnt = 492-1 then vga_vs <= '1'; end if; -- sync pulse 2
-- back porch 33
if hcnt = 512+35 then video_hs <= '0'; end if; -- front porch 16/25*20 = 13
if hcnt = 512+40 then video_hs <= '0'; end if; -- front porch 16/25*20 = 13
if hcnt = 512+90+9 then video_hs <= '1'; end if; -- sync pulse 96/25*20 = 77
-- back porch 48/25*20 = 38
video_blankn <= '0';