6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Nov 10, 2024 5:36 pm

All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Apr 07, 2019 4:44 am 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
Basically I took screenshots of Visual6502 and put them together to a big picture. Then I drew the schematics on a new layer based on that picture. It might be hard to read due to how messy it is, which is result of the way the different materials were placed on the chip. I was planning on making updated version that is cleaner (such as removing lines for control signals and entering their name next to the mosfets that use them. Secondly clean up the wiring on some parts to make them easier to follow. The possibility of mistakes are there, but I did take the time to carefully go through everything, so I hope it is good enough. I originally started this to learn reading the visual circuit simulations better, so the end result as is might not be the most convenient for to be used as a schematic.

Just as a side note. The image is well over 5000x5000 pixels in resolution, so I guess low end PCs might struggle opening/viewing it.


Attachments:
Visual6502.png
Visual6502.png [ 3.08 MiB | Viewed 1372 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 07, 2019 5:38 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
Wow - that's a major effort! Well done. I'm interested, of course, in any questions or observations that might come up.


Top
 Profile  
Reply with quote  
PostPosted: Sun Apr 07, 2019 7:58 am 
Offline
User avatar

Joined: Wed Feb 14, 2018 2:33 pm
Posts: 1485
Location: Scotland
Brilliant, thanks!

-Gordon

_________________
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/


Top
 Profile  
Reply with quote  
PostPosted: Tue Apr 09, 2019 8:23 pm 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
Here is the cleaned up version that has cclk, cp1, control lines and few other lines replaced with labels. Especially the ALU became much clearer to read. I also filled in few small spots that I missed from the first version


Attachments:
Visual6502-v2.png
Visual6502-v2.png [ 2.9 MiB | Viewed 1296 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 10, 2019 3:36 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Thanks for posting, FreyFox. Welcome to the forum! :)

-- 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  
PostPosted: Thu Apr 11, 2019 1:40 am 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
I started re-arranging parts to make readability easier. I started questioning what type of mosfet the one in the picture is. Looking at that there is a loop it would seem enhancement mode, but that probably would send constant voltage to the circuit. Depletion mode would seem more logical, but then again a loop like that usually indicates an enhancement mode mosfet. Which one is it?


Attachments:
rdy-mosfet.PNG
rdy-mosfet.PNG [ 83.37 KiB | Viewed 1243 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 7:25 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
There are, I think, several things of interest here.
http://www.visual6502.org/JSSim/expert. ... &zoom=10.4

The first thing is the pad, a large metal structure for the bond wire to land on, which you've labelled rdy.

To the lower right of the pad, we see we have polysilicon sitting between the rdy and vdd, and connected to rdy. So that's a pull-up.

To the left and top of the pad is a snaking diffusion track. That's a resistor (usually).

To the lower left of the pad, there's a magenta polygon, between rdy and ground, and that's a protection diode. The resistor and the diode provide some protection against overvoltage and static damage.

To the right of the diode is the bit of interest to a logic-level simulation: the poly from the pullup forms the gate of transistor t475 in an asymmetric U shape.
http://www.visual6502.org/JSSim/expert. ... 3&zoom=5.0
This transistor is the pulldown for node 958. The pullup is just below, and the overall effect is an inverter.

The pulldown for the inverter is strong (the poly snakes a long way) as is the pullup (very short and wide poly forming a transistor to vdd.) The ratio between the two can tell us the switching threshold of the inverter, which we'd expect to be skewed so it responds to TTL levels (when taking into account the protection resistor, probably.)


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 7:27 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
To answer your question, then, the pullup you've circled is most likely a depletion mode device. It acts as a pullup, but whatever chip on the outside is driving RDY will be able to drive the node low.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 12:25 pm 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
So, the pull-up isn't alone strong enough to trigger the pull-down and requires signal from RDY to drive node 958 low?


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 12:30 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
It looks possible that the on-chip pull-up on the rdy input will mean that an unconnected rdy will be taken as a high, which is the state where the processor runs normally. If a driving chip is connected, it will drive the input in the usual way. (I wouldn't expect to see an open collector driver used here)

In any case 958 will be the inverse of rdy.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 1:45 pm 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
For 958 to be inverse of rdy, the only way that would seem to be possible (according to a simulation) is that when rdy is low, the voltage provided through the mosfet I circled is driven out through the rdy pin and possibly to a ground outside of the chip. I'm not sure if it was intended to work that way, since rdy seems to be considered as an input pin.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 2:48 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
Indeed, this is how an external chip drives low: it sinks current. In effect the driving chip when driving low is like a resistor to ground. The pin voltage will drop and when it crosses the inverter's logic threshold the output of the inverter will go high.

Sometimes one can figure these things out with logic levels sometimes with voltages and sometimes with currents.


Top
 Profile  
Reply with quote  
PostPosted: Thu Apr 11, 2019 2:49 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
It's crucial to note that current flow is not the same as logic flow.


Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 15, 2019 12:40 am 
Offline

Joined: Mon Mar 25, 2019 4:28 pm
Posts: 20
Next update.

Mostly cleaned up random control logic from input lines (PLA labels) and output lines (RCL labels). As usual found few incomplete spots and few errors that I fixed. The schematic starts looking fairly readable. The only thing is that the PLA lines can't really be described with short enough lable to use the same ones Visual6502 uses. That would help a little bit as well.

By the way, Visual6502 has few nodes named D1x1, H1x1 and C1x5Reset. Where do these names come from?


Attachments:
Visual6502-v3.png
Visual6502-v3.png [ 2.74 MiB | Viewed 1143 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon Apr 15, 2019 7:59 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10976
Location: England
I think those names from from Balazs' giant schematic, which predates visual6502 and is a wonderful piece of work, although slightly incomplete.
http://www.visual6502.org/wiki/index.ph ... _documents


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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: