6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat May 04, 2024 2:43 am

All times are UTC




Post new topic Reply to topic  [ 213 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14, 15  Next
Author Message
 Post subject: Re: Breaking 6502 apart
PostPosted: Mon Mar 11, 2013 12:42 pm 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
I still can't fully understand execution order :)
In top part I have problems with flags input/outputs (still dont know what to do first - input flags from databus, or output current flag values)
In bottom part I have bunch of control lines which can lead to bus conflicts, for example :
If X/SB and Y/SB are become asserted at same time they encounter bus conflict (X and Y are put on SB at same time).

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Mon Mar 11, 2013 1:07 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Ah, yes, outside of normal operation there could be bus conflicts - the undefined opcodes may do this - and you'll most likely get either an AND or an OR of the various writers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Mon Mar 11, 2013 1:12 pm 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
Quote:
and you'll most likely get either an AND or an OR of the various writers

I will apply "ground wins" rule :)

BTW, I updated PSD sources too : http://breaknes.com/files/6502/6502.zip [150 MB]

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Wed Mar 20, 2013 5:36 am 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
NMI pad logic

Transistor schematics:
Image

Logic circuit:
Image

After removing inverters it turned out to be D flip/flop :D
Image

Image

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Thu Apr 18, 2013 10:45 am 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
- Complete decoder labels
- Fixed names for /T0, /T1X and T1 lines

Latest version here : http://breaknes.com/files/6502/6502.jpg

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Fri Apr 19, 2013 11:02 am 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
Image

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Wed Apr 24, 2013 7:38 pm 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
Image

Image

Image

This is logic circuits.

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Wed Apr 24, 2013 8:30 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
One small point - for a transparent latch, I've seen a symbol used where the clock input is marked with a half- square, instead of a triangle. The triangle means it's an edge-triggered flop.
Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Wed Apr 24, 2013 9:04 pm 
Offline

Joined: Thu Feb 28, 2013 6:34 am
Posts: 16
Location: San Francisco, California
The triangle looks like half a square to me... :-p


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Wed Apr 24, 2013 9:35 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Funny!


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Thu Apr 25, 2013 4:55 am 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
Quote:
The triangle means it's an edge-triggered flop.

Thanks, didn't know this detail )

Those D-triggers are implemented as floating gate transistors. And its level-triggered of course. Is there any better way to represent it as logic block ?

_________________
6502 addict


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Thu Apr 25, 2013 1:44 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3350
Location: Ontario, Canada
Attachment:
latch_symbol.png
latch_symbol.png [ 1.67 KiB | Viewed 1238 times ]
BigEd wrote:
for a transparent latch, I've seen a symbol used where the clock input is marked with a half- square
Like this, then? Up until now I've just used "LE" to label such an input, but a symbol would be preferable.

Cheers,
Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Fri Apr 26, 2013 12:28 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
That's exactly what I've seen before, thanks Jeff. I couldn't find it though. What I did find was the idea of using a plain input called "E" instead of a triangle-marked input.
Cheers
Ed


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Fri Apr 26, 2013 1:34 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3350
Location: Ontario, Canada
BigEd wrote:
I couldn't find it though. What I did find was the idea of using a plain input called "E"
Ditto on both points! -- I did a search and found the "E" suggestion but not the symbol. So, I drew one myself. Glad you like it! :D

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: Breaking 6502 apart
PostPosted: Fri Apr 26, 2013 5:08 am 
Offline
User avatar

Joined: Fri Jun 22, 2012 7:39 am
Posts: 201
Fixed) I found "custom element" in circuitlab and made "E" input.


Attachments:
6502-predecode-logic.png
6502-predecode-logic.png [ 38.77 KiB | Viewed 1209 times ]
6502-instruction-register.png
6502-instruction-register.png [ 40.11 KiB | Viewed 1209 times ]
6502-long-cycle-counter.png
6502-long-cycle-counter.png [ 69.71 KiB | Viewed 1209 times ]
rdy-pad.png
rdy-pad.png [ 5.37 KiB | Viewed 1209 times ]

_________________
6502 addict
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 213 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14, 15  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: