6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Apr 26, 2024 7:08 am

All times are UTC




Post new topic Reply to topic  [ 63 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Visualizing the 6502
PostPosted: Tue Sep 07, 2010 9:41 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
(Edit: the Visual6502 project website is now up, with a transistor-level simulator and the full presentation as PDF. This thread is open for comments on the findings!)

(Edit: Michael Steil's recent presentation on reverse-engineering the 6502 is now up on YouTube)

There's a quiet little link sitting in an AtariAge postingreferenced from this thread about interrupt timings which leads us to a very interesting presentation at this year's SIGGRAPH: Greg James and Barry and Brian Silverman deprocessed a 6502, analysed the photomicrographs with a heap of GPU power, and produced a working visual simulation of the chip from the layout!

Here's a bit of the PLA:
Attachment:
6502romsimulated.png
6502romsimulated.png [ 43.24 KiB | Viewed 10616 times ]


"We encountered only 8 errors in ... over 20,000 components" - and they corrected them as they went.

In the process, they get a full chip netlist. It sounds like a great presentation (but there's not a lot to be found online as yet.)

As it happens, there's another 'Visual 6502' which was presumably written more conventionally.

There's also a 4004 simulation by Lajos Kintli (Windows executable) - see this screenshot:
Attachment:
4004.png
4004.png [ 163.35 KiB | Viewed 10616 times ]


Last edited by BigEd on Fri Dec 13, 2013 3:46 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 08, 2010 9:34 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Wow! I've been touch with the people who did this, and I'm amazed.

After a long journey which starts with a chip and some sulphuric acid, they've produced a visual simulation of the chip. You can zoom in, single-cycle, probe the circuit for logic levels. It's javascript which means you need a fast browser on a fast machine, and it's a work in progress which means things will only get better. You need a fairly high screen resolution too.

Here's a screenshot looking at a corner of the PLA during simulation:
Attachment:
javascript6502romscreen.png
javascript6502romscreen.png [ 206.42 KiB | Viewed 10616 times ]

Its running at about 2Hz.

I've asked Mike to put some of the materials up - the PDF of the presentation is well worth going through.


Last edited by BigEd on Fri Dec 13, 2013 3:44 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Sep 10, 2010 6:27 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
I'm told by Greg and co that their website is nearing publication: keep an eye on http://visual6502.org/


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Sep 11, 2010 12:35 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
This is so awesome! Does anyone know of any other processor architecture that has this kind of educational material (and, for that matter, fanatics)? :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 12, 2010 12:06 am 
Offline

Joined: Wed Jul 16, 2008 6:54 pm
Posts: 7
Location: Florida
I wonder if they'd be willing to convert other IC's as well. I'd love to generate models for other ICs of the 8-bit age.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Sep 12, 2010 9:10 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
They are working on other chips of the 8-bit era and will be interested in donations (to be deprocessed destructively) - also donations of the conventional kind.

Quote:
Does anyone know of any other processor architecture that has this kind of educational material (and, for that matter, fanatics)?

I'm not aware of another case, but then I'm narrow in my own fanaticism! The material about the 4004 reverse-engineering mentions that it is historically important, complex enough to be interesting but simple enough to be tractable. I think 6502 meets the same conditions, as well as having shipped in some very popular products - a lot of programmers and a lot of users will have fond memories.

The Transputer has its fans too, but was never so widely used. I've seen mention of a couple of efforts to re-make that processor on FPGA.

In the realm of processors before chips, there was some interest and activity around the 50th anniversary of Baby including a programming contest. And of course Babbage's Difference Engine was rebuilt (or built!), as was Colossus.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 14, 2010 2:22 am 
Offline

Joined: Wed Jul 16, 2008 6:54 pm
Posts: 7
Location: Florida
BigEd wrote:
They are working on other chips of the 8-bit era and will be interested in donations (to be deprocessed destructively) - also donations of the conventional kind.


I'd gladly send them an Atari Antic plus a copy of the datasheet for it if they'd be interested.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 14, 2010 2:41 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
I vote for the 6522, so we can finally see why the freakin' heck it still has that infernal shift register bug after 20 years. ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Visualizing the 6502
PostPosted: Tue Sep 14, 2010 2:52 am 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
BigEd wrote:
... a very interesting presentation at this year's SIGGRAPH: Greg James and Barry and Brian Silverman deprocessed a 6502...


What flavor of the 6502 did they deprocess, the original?


Last edited by ElEctric_EyE on Tue Sep 14, 2010 3:01 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 14, 2010 2:59 am 
Offline

Joined: Mon Mar 02, 2009 7:27 pm
Posts: 3258
Location: NC, USA
BigEd wrote:
They are working on other chips of the 8-bit era and will be interested in donations (to be deprocessed destructively) - also donations of the conventional kind...


They really are taking suggestions? I would definately make a "conventional" donation in addition to the IC. I would send them a 65CE02, Is this legal though?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Sep 14, 2010 7:09 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
As I understand it, recapturing existing published designs is completely legal - building and selling something derived from that information is where it gets interesting.

Arguably, microcode is a special case, but that doesn't apply here. (Also, jurisdictions differ.)

There are Atari chips in the pipeline, but I'm not sure about ANTIC.

Personally I'll be interested in the 6800, because I'd like to see what similarities and differences exist at the layout and microarchitectural levels.


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 14, 2010 8:16 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10793
Location: England
Although the website isn't live yet, I have permission to link to the PDF of Greg's SIGGRAPH presentation - I thoroughly recommend it!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 15, 2010 1:30 am 
Offline

Joined: Mon Sep 13, 2010 8:27 pm
Posts: 3
Location: San Francisco, CA
Hi everyone! I'm happy to say that our site is now live and running our little JavaScript simulator: www.visual6502.org

This is just the beginning, and we're really excited about what all this might lead to. Look forward to more tools, simulations, chips, and ways to get involved. Check our FAQ and slides for more info. Enjoy!
- Greg, Barry, Brian, and Ed


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Sep 15, 2010 7:16 pm 
Offline

Joined: Tue Jul 05, 2005 7:08 pm
Posts: 990
Location: near Heidelberg, Germany
visual6502 wrote:
Hi everyone! I'm happy to say that our site is now live and running our little JavaScript simulator: www.visual6502.org

This is just the beginning, and we're really excited about what all this might lead to. Look forward to more tools, simulations, chips, and ways to get involved. Check our FAQ and slides for more info. Enjoy!
- Greg, Barry, Brian, and Ed


Wow, congratulations on your achievement! What a brilliant feat!

I envy you for the experience doing this work, learning about this little ingenious chip's inside!

And I second that I want the 6522 as next chip :-)
to find out about that crazy shift register bug

André


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Sep 16, 2010 11:38 am 
Offline

Joined: Wed Feb 03, 2010 2:48 pm
Posts: 9
Hello all,

this is an amazing work you have done! Thank you so much! Now it is possible for someone who has the skills to write a HDL model of the 6502 that is not only bus cycle exact but also register exact!

I would also like to point you to another project of Mr. Curt Vendel of atariAge:

http://www.atariage.com/forums/topic/15 ... 5cbf79fbc5

He has resynthesized the MARIA chip of the ATARI7800! So the physical level is already there and could be feed to your simulator.I think this would be easy to do for you.Unfortunately Mr.Curt has not made the netlist publicy available.But maybe you could contact him for details!?

I am unfortunately not so skilled to do something like this,I am trying single stepping into an T65 VHDL core from Daniel Wallner.

Greetings,
Vassilis


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 63 posts ]  Go to page 1, 2, 3, 4, 5  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: