Añado últimos cambios McLeod

This commit is contained in:
antoniovillena 2016-07-05 17:37:51 +02:00
parent d5e24bf0b0
commit 5f79223298
3 changed files with 10 additions and 8 deletions

View File

@ -2,7 +2,7 @@ SET machine=zxuno_a2601
SET ruta_ucf=a2601
SET ruta_bat=..\..\
call %ruta_bat%genxst.bat
call %ruta_bat%generar.bat v2
call %ruta_bat%generar.bat v3
rem call %ruta_bat%generar.bat v2
rem call %ruta_bat%generar.bat v3
call %ruta_bat%generar.bat v4
call %ruta_bat%generar.bat Ap
rem call %ruta_bat%generar.bat Ap

View File

@ -39,10 +39,10 @@ module coreid (
text[ 1] = "2";
text[ 2] = "1";
text[ 3] = "-";
text[ 4] = "2";
text[ 5] = "3";
text[ 4] = "0";
text[ 5] = "5";
text[ 6] = "0";
text[ 7] = "6";
text[ 7] = "7";
text[ 8] = "2";
text[ 9] = "0";
text[10] = "1";

View File

@ -40,13 +40,15 @@ module turbosound (
if (reset_n==1'b0)
ay_select <= 1'b1;
else if (disable_ay == 1'b0 && disable_turboay == 1'b0 && bdir && bc1 && din[7:1]==7'b1111111)
ay_select <= din[0];
ay_select <= din[0]; // 1: select first AY, 0: select second AY
end
wire oe_n_ay1, oe_n_ay2;
wire [7:0] dout_ay1, dout_ay2;
assign dout = (ay_select)? dout_ay1 : dout_ay2;
assign oe_n = (ay_select)? oe_n_ay1 : oe_n_ay2;
assign oe_n = (ay_select && !disable_ay)? oe_n_ay1 :
(!ay_select && !disable_ay && !disable_turboay)? oe_n_ay2 :
1'b1;
YM2149 ay1 (
.I_DA(din),