Skip to content

Commit

Permalink
Minor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorgelig committed Feb 24, 2019
1 parent dea81cc commit 53be7b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 12 additions & 5 deletions SNES.sv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//============================================================================
// SNES for MiSTer
// Copyright (C) 2017,2018 Srg320
// Copyright (C) 2018 Sorgelig
// Copyright (C) 2017-2019 Srg320
// Copyright (C) 2018-2019 Sorgelig
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
Expand Down Expand Up @@ -104,9 +104,18 @@ module emu
output UART_DTR,
input UART_DSR,

// Open-drain User port.
// 0 - D+/RX
// 1 - D-/TX
// 2..5 - USR1..USR4
// Set USER_OUT to 1 to read from USER_IN.
input [5:0] USER_IN,
output [5:0] USER_OUT,

input OSD_STATUS
);

assign USER_OUT = '1;
assign {UART_RTS, UART_TXD, UART_DTR} = 0;

assign AUDIO_S = 1;
Expand Down Expand Up @@ -319,7 +328,6 @@ main main
(
.RESET_N(~reset),

.MEM_CLK(clk_mem),
.MCLK(clk_sys), // 21.47727 / 21.28137
.ACLK(clk_sys),

Expand Down Expand Up @@ -399,15 +407,14 @@ wire ROM_CE_N;
wire ROM_OE_N;
wire ROM_WORD;
wire[15:0] ROM_Q;
wire REFRESH = 0;

sdram sdram
(
.*,
.init(~clock_locked),
.clk(clk_mem),

.refresh(REFRESH),
.refresh(0),
.addr(ioctl_download ? ioctl_addr-10'd512 : ROM_ADDR),
.din(ioctl_dout),
.dout(ROM_Q),
Expand Down
1 change: 0 additions & 1 deletion src/main.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ entity main is
port(
RESET_N : in std_logic;

MEM_CLK : in std_logic;
MCLK : in std_logic;
ACLK : in std_logic;

Expand Down

0 comments on commit 53be7b8

Please sign in to comment.