This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3dfbad
Showing
59 changed files
with
17,696 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
db | ||
greybox_tmp | ||
incremental_db | ||
output_files | ||
simulation | ||
hc_output | ||
scaler | ||
hps_isw_handoff | ||
vip | ||
*_sim | ||
.qsys_edit | ||
PLLJ_PLLSPE_INFO.txt | ||
*.bak | ||
*.orig | ||
*.rej | ||
*.qdf | ||
*.rpt | ||
*.smsg | ||
*.summary | ||
*.done | ||
*.jdi | ||
*.pin | ||
*.sof | ||
*.qws | ||
*.ppf | ||
*.ddb | ||
build_id.v | ||
c5_pin_model_dump.txt | ||
*.sopcinfo | ||
*.csv | ||
*.f | ||
*.cmp | ||
*.sip | ||
*.spd | ||
*.bsf | ||
*~ | ||
*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
-- A2601 Main Core | ||
-- Copyright 2006, 2010 Retromaster | ||
-- | ||
-- This file is part of A2601. | ||
-- | ||
-- A2601 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 Software Foundation, either version 3 of the License, | ||
-- or any later version. | ||
-- | ||
-- A2601 is distributed in the hope that it will be useful, | ||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
-- GNU General Public License for more details. | ||
-- | ||
-- You should have received a copy of the GNU General Public License | ||
-- along with A2601. If not, see <http://www.gnu.org/licenses/>. | ||
-- | ||
|
||
library ieee; | ||
use ieee.std_logic_1164.all; | ||
|
||
entity A2601 is | ||
port( | ||
clk: in std_logic; | ||
clk_vid: in std_logic; | ||
rst: in std_logic; | ||
d: inout std_logic_vector(7 downto 0); | ||
a: out std_logic_vector(12 downto 0); | ||
r: out std_logic; | ||
pa: inout std_logic_vector(7 downto 0); | ||
pb: inout std_logic_vector(7 downto 0); | ||
paddle_0: in std_logic_vector(7 downto 0); | ||
paddle_1: in std_logic_vector(7 downto 0); | ||
paddle_ena1: in std_logic; | ||
paddle_2: in std_logic_vector(7 downto 0); | ||
paddle_3: in std_logic_vector(7 downto 0); | ||
paddle_ena2: in std_logic; | ||
inpt4: in std_logic; | ||
inpt5: in std_logic; | ||
colu: out std_logic_vector(6 downto 0); | ||
vsyn: out std_logic; | ||
hsyn: out std_logic; | ||
blank: out std_logic; | ||
rgbx2: out std_logic_vector(23 downto 0); | ||
au0: out std_logic; | ||
au1: out std_logic; | ||
av0: out std_logic_vector(3 downto 0); | ||
av1: out std_logic_vector(3 downto 0); | ||
ph0_out: out std_logic; | ||
ph1_out: out std_logic; | ||
pal: in std_logic | ||
); | ||
end A2601; | ||
|
||
architecture arch of A2601 is | ||
|
||
component A6507 is | ||
port(clk: in std_logic; | ||
rst: in std_logic; | ||
rdy: in std_logic; | ||
d: inout std_logic_vector(7 downto 0); | ||
ad: out std_logic_vector(12 downto 0); | ||
r: out std_logic); | ||
end component; | ||
|
||
component A6532 is | ||
port(clk: in std_logic; | ||
r: in std_logic; | ||
rs: in std_logic; | ||
cs: in std_logic; | ||
irq: out std_logic; | ||
d: inout std_logic_vector(7 downto 0); | ||
pa: inout std_logic_vector(7 downto 0); | ||
pb: inout std_logic_vector(7 downto 0); | ||
pa7: in std_logic; | ||
a: in std_logic_vector(6 downto 0)); | ||
end component; | ||
|
||
component TIA is | ||
port( | ||
clk_sys: in std_logic; | ||
clk: in std_logic; | ||
cs: in std_logic; | ||
r: in std_logic; | ||
a: in std_logic_vector(5 downto 0); | ||
d: inout std_logic_vector(7 downto 0); | ||
colu: out std_logic_vector(6 downto 0); | ||
hsyn: out std_logic; | ||
vsyn: out std_logic; | ||
blank: out std_logic; | ||
rgbx2: out std_logic_vector(23 downto 0); | ||
rdy: out std_logic; | ||
ph0: out std_logic; | ||
ph1: out std_logic; | ||
au0: out std_logic; | ||
au1: out std_logic; | ||
av0: out std_logic_vector(3 downto 0); | ||
av1: out std_logic_vector(3 downto 0); | ||
paddle_0: in std_logic_vector(7 downto 0); | ||
paddle_1: in std_logic_vector(7 downto 0); | ||
paddle_ena1: in std_logic; | ||
paddle_2: in std_logic_vector(7 downto 0); | ||
paddle_3: in std_logic_vector(7 downto 0); | ||
paddle_ena2: in std_logic; | ||
inpt4: in std_logic; | ||
inpt5: in std_logic; | ||
pal: in std_logic := '0' | ||
); | ||
end component; | ||
|
||
signal rdy: std_logic; | ||
signal cpu_a: std_logic_vector(12 downto 0); | ||
signal read: std_logic; | ||
signal riot_rs: std_logic; | ||
signal riot_cs: std_logic; | ||
signal riot_irq: std_logic; | ||
signal riot_pa7: std_logic; | ||
signal riot_a: std_logic_vector(6 downto 0); | ||
signal tia_cs: std_logic; | ||
signal tia_a: std_logic_vector(5 downto 0); | ||
signal ph0: std_logic; | ||
signal ph1: std_logic; | ||
begin | ||
|
||
ph0_out <= ph0; | ||
ph1_out <= ph1; | ||
|
||
r <= read; | ||
|
||
cpu_A6507: A6507 | ||
port map(ph0, rst, rdy, d, cpu_a, read); | ||
|
||
riot_A6532: A6532 | ||
port map(ph1, read, riot_rs, riot_cs, | ||
riot_irq, d, pa, pb, riot_pa7, riot_a); | ||
|
||
tia_inst: TIA | ||
port map(clk, clk_vid, tia_cs, read, tia_a, d, | ||
colu, hsyn, vsyn, blank, rgbx2, rdy, ph0, ph1, | ||
au0, au1, av0, av1, | ||
paddle_0, paddle_1, paddle_ena1, | ||
paddle_2, paddle_3, paddle_ena2, | ||
inpt4, inpt5, | ||
pal); | ||
|
||
tia_cs <= '1' when (cpu_a(12) = '0') and (cpu_a(7) = '0') else '0'; | ||
riot_cs <= '1' when (cpu_a(12) = '0') and (cpu_a(7) = '1') else '0'; | ||
riot_rs <= '1' when (cpu_a(9) = '1') else '0'; | ||
|
||
tia_a <= cpu_a(5 downto 0); | ||
riot_a <= cpu_a(6 downto 0); | ||
|
||
a <= cpu_a; | ||
|
||
end arch; | ||
|
Oops, something went wrong.