2021-08-01 15:32:48 +02:00
|
|
|
module SummerCart64 (
|
|
|
|
input i_clk,
|
|
|
|
|
|
|
|
output o_ftdi_clk,
|
|
|
|
output o_ftdi_si,
|
|
|
|
input i_ftdi_so,
|
|
|
|
input i_ftdi_cts,
|
|
|
|
|
|
|
|
input i_n64_reset,
|
|
|
|
input i_n64_nmi,
|
|
|
|
output o_n64_int,
|
|
|
|
|
|
|
|
input i_n64_pi_alel,
|
|
|
|
input i_n64_pi_aleh,
|
|
|
|
input i_n64_pi_read,
|
|
|
|
input i_n64_pi_write,
|
|
|
|
inout [15:0] io_n64_pi_ad,
|
|
|
|
|
|
|
|
input i_n64_si_clk,
|
|
|
|
inout io_n64_si_dq,
|
|
|
|
|
|
|
|
output o_sdram_clk,
|
|
|
|
output o_sdram_cs,
|
|
|
|
output o_sdram_ras,
|
|
|
|
output o_sdram_cas,
|
|
|
|
output o_sdram_we,
|
|
|
|
output [1:0] o_sdram_ba,
|
|
|
|
output [12:0] o_sdram_a,
|
|
|
|
inout [15:0] io_sdram_dq,
|
|
|
|
|
|
|
|
output o_sd_clk,
|
|
|
|
inout io_sd_cmd,
|
|
|
|
inout [3:0] io_sd_dat,
|
|
|
|
|
2021-08-05 19:50:29 +02:00
|
|
|
output o_flash_clk,
|
|
|
|
output o_flash_cs,
|
|
|
|
inout io_flash_dq[3:0],
|
|
|
|
|
|
|
|
inout io_rtc_scl,
|
2021-08-01 15:32:48 +02:00
|
|
|
inout io_rtc_sda,
|
|
|
|
|
|
|
|
output o_led,
|
|
|
|
|
|
|
|
inout [7:0] io_pmod
|
|
|
|
);
|
|
|
|
|
2021-08-05 19:50:29 +02:00
|
|
|
if_system system_if (.in_clk(i_clk));
|
|
|
|
system system_inst (.system_if(system_if));
|
2021-08-01 15:32:48 +02:00
|
|
|
|
2021-08-05 19:50:29 +02:00
|
|
|
if_cpu_soc cpu_soc_if ();
|
|
|
|
cpu_soc cpu_soc_inst (.system_if(system_if), .cpu_soc_if(cpu_soc_if));
|
2021-08-01 15:32:48 +02:00
|
|
|
|
2021-08-05 19:50:29 +02:00
|
|
|
assign o_led = cpu_soc_if.peripherals.led;
|
|
|
|
assign io_rtc_scl = cpu_soc_if.peripherals.scl;
|
|
|
|
assign io_rtc_sda = cpu_soc_if.peripherals.sda;
|
2021-08-01 15:32:48 +02:00
|
|
|
|
|
|
|
endmodule
|