////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// t2600 IP Core ////
|
//// t2600 IP Core ////
|
//// ////
|
//// ////
|
//// This file is part of the t2600 project ////
|
//// This file is part of the t2600 project ////
|
//// http://www.opencores.org/cores/t2600/ ////
|
//// http://www.opencores.org/cores/t2600/ ////
|
//// ////
|
//// ////
|
//// Description ////
|
//// Description ////
|
//// Top level for the entire system ////
|
//// Top level for the entire system ////
|
//// ////
|
//// ////
|
//// TODO: ////
|
//// TODO: ////
|
//// - Instantiate all modules ////
|
//// - Instantiate all modules ////
|
//// ////
|
//// ////
|
//// Author(s): ////
|
//// Author(s): ////
|
//// - Gabriel Oshiro Zardo, gabrieloshiro@gmail.com ////
|
//// - Gabriel Oshiro Zardo, gabrieloshiro@gmail.com ////
|
//// - Samuel Nascimento Pagliarini (creep), snpagliarini@gmail.com ////
|
//// - Samuel Nascimento Pagliarini (creep), snpagliarini@gmail.com ////
|
//// ////
|
//// ////
|
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2001 Authors and OPENCORES.ORG ////
|
//// Copyright (C) 2001 Authors and OPENCORES.ORG ////
|
//// ////
|
//// ////
|
//// This source file may be used and distributed without ////
|
//// This source file may be used and distributed without ////
|
//// restriction provided that this copyright statement is not ////
|
//// restriction provided that this copyright statement is not ////
|
//// removed from the file and that any derivative work contains ////
|
//// removed from the file and that any derivative work contains ////
|
//// the original copyright notice and the associated disclaimer. ////
|
//// the original copyright notice and the associated disclaimer. ////
|
//// ////
|
//// ////
|
//// This source file is free software; you can redistribute it ////
|
//// This source file is free software; you can redistribute it ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// Public License as published by the Free Software Foundation; ////
|
//// Public License as published by the Free Software Foundation; ////
|
//// either version 2.1 of the License, or (at your option) any ////
|
//// either version 2.1 of the License, or (at your option) any ////
|
//// later version. ////
|
//// later version. ////
|
//// ////
|
//// ////
|
//// This source is distributed in the hope that it will be ////
|
//// This source is distributed in the hope that it will be ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
//// PURPOSE. See the GNU Lesser General Public License for more ////
|
//// details. ////
|
//// details. ////
|
//// ////
|
//// ////
|
//// You should have received a copy of the GNU Lesser General ////
|
//// You should have received a copy of the GNU Lesser General ////
|
//// Public License along with this source; if not, download it ////
|
//// Public License along with this source; if not, download it ////
|
//// from http://www.opencores.org/lgpl.shtml ////
|
//// from http://www.opencores.org/lgpl.shtml ////
|
//// ////
|
//// ////
|
////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////
|
|
|
`include "timescale.v"
|
`include "timescale.v"
|
|
|
module t2600(clk, reset_n);
|
module t2600(clk, reset_n);
|
parameter [3:0] DATA_SIZE = 4'd8;
|
parameter [3:0] DATA_SIZE = 4'd8;
|
parameter [3:0] ADDR_SIZE = 4'd13;
|
parameter [3:0] ADDR_SIZE = 4'd13;
|
localparam [3:0] RIOT_ADDR_SIZE = 4'd7;
|
localparam [3:0] RIOT_ADDR_SIZE = 4'd7;
|
localparam [3:0] TIA_ADDR_SIZE = 4'd6;
|
localparam [3:0] TIA_ADDR_SIZE = 4'd6;
|
|
|
input clk;
|
input clk;
|
input reset_n;
|
input reset_n;
|
|
|
t6507lp #(DATA_SIZE, ADDR_SIZE) t6507lp (
|
t6507lp #(DATA_SIZE, ADDR_SIZE) t6507lp (
|
.clk (clk),
|
.clk (clk),
|
.reset_n (reset_n),
|
.reset_n (reset_n),
|
.data_in (data_in),
|
.data_in (data_in),
|
.rw_mem (rw_mem),
|
.rw_mem (rw_mem),
|
.data_out (data_out),
|
.data_out (data_out),
|
.address (address)
|
.address (address)
|
);
|
);
|
|
|
t6532 #(DATA_SIZE, RIOT_ADDR_SIZE) t6532 (
|
t6532 #(DATA_SIZE, RIOT_ADDR_SIZE) t6532 (
|
.clk (clk),
|
.clk (clk),
|
.io_lines (io_lines),
|
.io_lines (io_lines),
|
.enable (enable),
|
.enable (enable),
|
.address (address),
|
.address (address),
|
.data (data)
|
.data (data)
|
);
|
);
|
|
|
|
t2600_bus t2600_bus (
|
|
.address (address),
|
|
.data_from_cpu (data_from_cpu),
|
|
.cpu_rw_mem (cpu_rw_mem),
|
|
.riot_data (riot_data),
|
|
.rom_data (rom_data),
|
|
.tia_data (tia_data),
|
|
.address_riot (address_riot),
|
|
.address_rom (address_rom),
|
|
.address_tia (address_tia),
|
|
.data_to_cpu (data_to_cpu),
|
|
.enable_riot (enable_riot),
|
|
.enable_rom (enable_rom),
|
|
.enable_tia (enable_tia),
|
|
.rw_mem (rw_mem)
|
|
);
|
|
|
|
T2600_KB T2600_KB (
|
|
.CLK (clk),
|
|
.RST (reset_n),
|
|
.io_lines (io_lines),
|
|
.KC (kc),
|
|
.KD (kd)
|
|
);
|
|
|
|
|
|
|
|
|
|
|
// VIDEO
|
// VIDEO
|
// BUS CONTROLLER
|
|
|
|
endmodule
|
endmodule
|
|
|
|
|