Update sys.

This commit is contained in:
sorgelig
2019-09-28 02:37:10 +08:00
parent 67918b5f95
commit 7ef2a9c96f
12 changed files with 684 additions and 255 deletions

View File

@ -58,6 +58,11 @@ module emu
// hint: supply 2'b00 to let the system control the LED.
output [1:0] LED_POWER,
output [1:0] LED_DISK,
// I/O board button press simulation (active high)
// b[1]: user button
// b[0]: osd button
output [1:0] BUTTONS,
output [15:0] AUDIO_L,
output [15:0] AUDIO_R,
@ -67,7 +72,7 @@ module emu
//ADC
inout [3:0] ADC_BUS,
// SD-SPI
//SD-SPI
output SD_SCK,
output SD_MOSI,
input SD_MISO,
@ -110,10 +115,10 @@ module emu
// Open-drain User port.
// 0 - D+/RX
// 1 - D-/TX
// 2..5 - USR1..USR4
// 2..6 - USR2..USR6
// Set USER_OUT to 1 to read from USER_IN.
input [5:0] USER_IN,
output [5:0] USER_OUT,
input [6:0] USER_IN,
output [6:0] USER_OUT,
input OSD_STATUS
);
@ -126,6 +131,7 @@ assign {UART_RTS, UART_TXD, UART_DTR} = 0;
assign LED_USER = (vsd_sel & sd_act) | ioctl_download;
assign LED_DISK = {1'b1, ~vsd_sel & sd_act};
assign LED_POWER = 0;
assign BUTTONS = 0;
assign VIDEO_ARX = status[5] ? 8'd16 : 8'd4;
assign VIDEO_ARY = status[5] ? 8'd9 : 8'd3;