Breaking 6502 apart

Topics pertaining to the emulation or simulation of the 65xx microprocessors and their peripheral chips.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Breaking 6502 apart

Post by BigEd »

These are individual columns of the decoder PLA, each being a big NOR gate. The IR is the Instruction Register.
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Yeap, and BRK2 / JSR3 are decoder line names. Number after opcode represent cycle, when this decoder line is trigger.
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

I almost completed top part on logic gates, and made some draft of it.

Don't look closely, it may contain typos and still not fully "de-morganized", just wanted to show you complexity and structural parts of it.

Bottom part will be done after top one.
Attachments
mos-6502-draft.jpg
6502 addict
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Breaking 6502 apart

Post by BigEd »

Bravo!
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Todays speccy: ALU control

(I'm lazy to complete PLA lines, will be added later :P )

+fixed shortcut on ROR carry logic in transistor circuit.
Attachments
6502-alu-control.jpg
ALU_control.jpg
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Updated and cleaned up most of circuits on http://www.circuitlab.com

Need to add some missing parts of bus control and top part will be ready.
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Ok, I'm done with top part.

I isolated 6502 "core" and trying to understand how its executing, step by step.

Some slides below :)
Attachments
6502_runflow_slide1.jpg
6502_runflow_slide2.jpg
6502_runflow_slide3.jpg
6502_runflow_slide4.jpg
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Updated transistor circuits. Fixed some errors and split it on two parts : top and bottom.
Attachments
6502_top.jpg
6502_bottom.jpg
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

In last minutes I found missing part of DL/DB, will be fixed soon )
Attachments
6502_logic_top.jpg
6502 addict
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Todays speccy: ALU logic circuit

Later I maybe optimize SUM calculation, by replacing couple of NAND/NORs by XORs.
Don't want to mess with inverted carry chain ATM :)
Attachments
6502-alu.jpg
6502 addict
whartung
Posts: 1004
Joined: 13 Dec 2003

Re: Breaking 6502 apart

Post by whartung »

Hi org,

I just wanted to congratulate you on the 1 year anniversary of this project (I know, I missed it by a day). Hard to believe it's been a year, but here it is, and you're still going strong on it and making great progress from the looks of things (not that I have really any idea what I'm looking at).

But kudos to perseverance.
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Breaking 6502 apart

Post by BigEd »

Great progress indeed - happy yesterbirthday to the project
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Thank you, I really appreciated for your support ! :)

Within few days I'm going to complete whole 6502 logic circuit.

Today I experimented a bit with GIS applications, and adapted it for my task: http://breaknes.com/files/6502/tilemap/
This is tile map viewer of extra-large images, based on OpenLayers API.
6502 addict
User avatar
BigEd
Posts: 11464
Joined: 11 Dec 2008
Location: England
Contact:

Re: Breaking 6502 apart

Post by BigEd »

I like it! (Did you see the 65CE02 post? There's a slippy map there of the die shot.)
User avatar
org
Posts: 201
Joined: 22 Jun 2012
Contact:

Re: Breaking 6502 apart

Post by org »

Todays speccy: Program Counter logic circuit
Attachments
6502-program-counter.jpg
6502 addict
Post Reply