From 21644a105c49d7f0761dedbb27d2b074ddabcd54 Mon Sep 17 00:00:00 2001 From: Shane Lynch <794689+iequalshane@users.noreply.github.com> Date: Sat, 9 May 2020 00:47:58 -0700 Subject: [PATCH] Changing the reset OSD option to act more like the reset button on the real (#128) Genesis. This is required for some games like X-Men (Beating the game after Mojo's stage) and X-Men 2 (to select starting character) as well as a others. --- rtl/system.sv | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rtl/system.sv b/rtl/system.sv index 5abd3d5..90d7e68 100644 --- a/rtl/system.sv +++ b/rtl/system.sv @@ -128,7 +128,11 @@ module system ); reg reset; -always @(posedge MCLK) if(M68K_CLKENn) reset <= ~RESET_N | LOADING; +reg hard_reset; +always @(posedge MCLK) if(M68K_CLKENn) begin + reset <= ~RESET_N | LOADING; + hard_reset <= LOADING; +end //-------------------------------------------------------------- // CLOCK ENABLERS @@ -247,7 +251,7 @@ fx68k M68K ( .clk(MCLK), .extReset(reset), - .pwrUp(reset), + .pwrUp(hard_reset), .enPhi1(M68K_CLKENp), .enPhi2(M68K_CLKENn), @@ -392,7 +396,7 @@ wire HL; vdp vdp ( - .RST_n(~reset), + .RST_n(~hard_reset), .CLK(MCLK), .SEL(VDP_SEL), @@ -485,7 +489,7 @@ wire JCART_DTACK_N; multitap multitap ( - .RESET(reset), + .RESET(hard_reset), .CLK(MCLK), .CE(M68K_CLKEN),