6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue Nov 12, 2024 10:51 am

All times are UTC




Post new topic Reply to topic  [ 558 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 38  Next
Author Message
 Post subject: Re: TTL 6502 Here I come
PostPosted: Fri Sep 15, 2017 5:57 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
Windfall wrote:
How fast will it be ?

Judging from the "typical" propagation delay mentioned in the datasheets of the ICs used in this design,
we think that OurCPU could (in theory) make 20MHz (when not using the "illegal" NMOS 6502 OpCodes).

This would be nearly the MIPS rating of an 80486. ;)

;---

OurCPU supports three instruction sets:

NMOS 6502 including most of the "illegal" Opcodes,
65C02 including the Bit testing/manipulating stuff,
and K24 (which is a "65816 subset" with 8 Bit registers and a non_multiplexed 24 Bit address bus).

In theory, it should be possible to switch between those three instruction sets by software during runtime.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Fri Sep 15, 2017 10:04 am 
Offline
User avatar

Joined: Sun Nov 27, 2011 12:03 pm
Posts: 229
Location: Amsterdam, Netherlands
ttlworks wrote:
Windfall wrote:
How fast will it be ?

Judging from the "typical" propagation delay mentioned in the datasheets of the ICs used in this design,
we think that OurCPU could (in theory) make 20MHz (when not using the "illegal" NMOS 6502 OpCodes).

50 ns, wow, that's pretty good. But I suppose there's some added propagation delay in 'travelling distance'.

ttlworks wrote:
In theory, it should be possible to switch between those three instruction sets by software during runtime.

Cool. So it all hinges on microcode I suppose.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Fri Sep 15, 2017 10:25 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
Windfall wrote:
50 ns, wow, that's pretty good. But I suppose there's some added propagation delay in 'travelling distance'.

We'll see how fast the CPU goes after Drass got it up and running. :)

To get down to those (hypothetical) 50ns, it was neccessary to pull quite a few tricks.
Including pipelined microcode and some hardware logic checking for 1 Byte instructions...

IIRC the microcode defaults to reading a Byte from [PC+] in memory for the cycle after an instruction fetch... for all instructions.
If the logic detects a 1 Byte instruction, it blocks writing PC+1 to PC and discards that additional Byte.

BTW: I think the NMOS 6502 had some logic inside which checked for 1 Byte instructions, too.

Windfall wrote:
Cool. So it all hinges on microcode I suppose.

Yep.
The "basic" CPU has two PCBs.
A third PCB is required to have K24 instruction set, 24 Bit address bus,
and to be able to switch between the different instruction sets by software.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Fri Sep 15, 2017 11:47 pm 
Offline
User avatar

Joined: Sun Oct 18, 2015 11:02 pm
Posts: 428
Location: Toronto, ON
Thanks for the several suggestions folks. I finally had a chance to get back to the panel, and did as dr Jefyll suggested, bracing the thing with a piece of lumber along the edge of the workbench. Applying firm pressure to the overhanging portion of the panel produced a clean break along its length. From there, I could easily snap the resulting half-panels by hand. Some fine sandpaper is all that was needed to smooth out the rough edges. Nice!

GARTHWILSON wrote:
Hopefully the planes were not brought out all the way to the edge, but stop .010" or so from the cut.
The copper planes are 15mil away from all board boundaries, even those internal to the panel. I can easily see these gaps when holding the PCBs up to a light, and checking for shorts between VCC and GND confirmed there does not seem to be a problem there.

Windfall wrote:
50 ns, wow, that's pretty good.
Fingers crossed on that! Below is a table showing various paths through the CPU and approximate propagation times for different logic families. The column labeled "AC+ Typ" is the relevant one for this build (i.e., mostly 74AC logic with a few 74LVC and 74CBT parts thrown in). The ALU and Microcode Fetch share top-honours as the critical path.
Attachment:
Prop Delay.jpg
Prop Delay.jpg [ 174.42 KiB | Viewed 1400 times ]

ttlworks wrote:
To get down to those (hypothetical) 50ns, it was neccessary to pull quite a few tricks.
Including pipelined microcode and some hardware logic checking for 1 Byte instructions...
As well as some fancy footwork in the ALU by ttlworks and dr Jefyll.

Quote:
IIRC the microcode defaults to reading a Byte from [PC+] in memory for the cycle after an instruction fetch... for all instructions.
If the logic detects a 1 Byte instruction, it blocks writing PC+1 to PC and discards that additional Byte.
Yes, that's right. Here is a description of the pipeline logic.

ttlworks wrote:
The "basic" CPU has two PCBs.
A third PCB is required to have K24 instruction set, 24 Bit address bus,
and to be able to switch between the different instruction sets by software.
I couldn't resist stacking the new PCBs with the old SBC just to have a look. It may serve as much needed inspiration for the task ahead. I can already see it running ... :)
Attachment:
PCB Stack 1.jpg
PCB Stack 1.jpg [ 100.09 KiB | Viewed 1400 times ]

Cheers for now,
Drass

_________________
C74-6502 Website: https://c74project.com


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Sat Sep 16, 2017 12:30 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Drass wrote:
It may serve as much needed inspiration for the task ahead.

Go, Drass, go! :)

_________________
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: TTL 6502 Here I come
PostPosted: Sun Sep 17, 2017 11:30 am 
Offline
User avatar

Joined: Sun Nov 27, 2011 12:03 pm
Posts: 229
Location: Amsterdam, Netherlands
Drass wrote:
I can already see it running ... :)

Yes, but in which direction ? :D


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Sun Oct 08, 2017 3:16 am 
Offline
User avatar

Joined: Sun Oct 18, 2015 11:02 pm
Posts: 428
Location: Toronto, ON
It's been really busy lately, but I finally made some progress on the project. Card A - "Registers" is now done! (on the left below)
Attachment:
CardA+CardD.jpg
CardA+CardD.jpg [ 166.08 KiB | Viewed 1230 times ]
It was very gratifying to confirm that the pins on the vertical header fit precisely when the SBC is stacked on top of this card - just as planned. These pins correspond to those on the 65C02 IC, which can then be removed from the SBC to have the system operate with the TTL CPU instead. It's a tidy arrangement, but not very practical for debugging. I'll probably use ribbon cables to connect things initially so I can have better access.

The soldering is going well, but I did manage to bridge GND and VCC at some point on this card. Frustrating. I was forced to systematically remove components until I found the culprit - a capacitor with too much solder was bridging the pads underneath. Re-soldering it cleaned up the problem. (Lesson learned - I am now testing for shorts very regularly as I go :roll:). That little mishap set me back a bit, but in fact I'm much faster now than when soldering the SBC. I've taken quite naturally to using a "drag" technique on the SOIC packages, which now feels very comfortable. Amazing what the right tools and a little practice will do.

I've made a start on Card B - "ALU & CU", by far the most dense PCB on the project. Once that's done, I can fit the two cards together and begin the first tests of the CPU - very exciting!

Cheers for now,
Drass

_________________
C74-6502 Website: https://c74project.com


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Mon Oct 09, 2017 8:54 pm 
Offline

Joined: Thu Jul 27, 2017 7:48 pm
Posts: 68
Very nice!

Axel


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Mon Oct 16, 2017 10:47 pm 
Offline
User avatar

Joined: Sun Oct 18, 2015 11:02 pm
Posts: 428
Location: Toronto, ON
Card A and Card B now soldered, which together constitute a complete TTL 6502 (the third K24 card being optional). A real 6502 is shown below for scale :mrgreen:
Attachment:
6502x2.jpg
6502x2.jpg [ 175.21 KiB | Viewed 1111 times ]
Next step is to program the microcode ROMs and give the thing a try. This timing is rather auspicious as the first post on this thread was on Oct 19th, 2015. How great would it be to have the CPU come to life exactly two years later! Fingers crossed. (Btw, has it really been two years? Wow). Gotta say, I'm on pins and needles about it - it's worth remembering that these PCBs have nearly as many ICs on the underside as they do on the top layer. Sure hope I can get the thing to work after all that effort! As always, thanks for all the encouragement along the way. :)

Cheers for now,
Drass

_________________
C74-6502 Website: https://c74project.com


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 4:31 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10977
Location: England
Spectacular!


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 6:31 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8482
Location: Midwestern USA
Drass wrote:
Card A and Card B now soldered, which together constitute a complete TTL 6502 (the third K24 card being optional). A real 6502 is shown below for scale :mrgreen:

Wow, really impressive-looking! Those boards remind of the stuff I worked on back in the 1970s. Gobs and gobs and gobs of chips, although they were all DIP, not SMD, and the boards were much larger. I couldn't imagine soldering that many SMD chips. :shock:

Quote:
How great would it be to have the CPU come to life exactly two years later! Fingers crossed. (Btw, has it really been two years?

Well, let's hope she goes and doesn't blow!

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 8:43 am 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
Happy Anniversary !
Those two years had passed by quite fast.

The populated PCBs look nice, let's just hope that they work as nice as they look.

Good luck and god speed for the first test runs.

...Not to discourage you, but there still is a chance that we might have to improvise a CO2 filter or such
by using some duct tape and the envelope of a C64 manual. ;)
// This was a reference to Apollo 13.


BTW: after building your third TTL CPU, the magic tends to wear off a bit,
and from there it feels like just another engineering job somehow.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 1:16 pm 
Offline
User avatar

Joined: Sun Nov 27, 2011 12:03 pm
Posts: 229
Location: Amsterdam, Netherlands
Drass wrote:
Card A and Card B now soldered, which together constitute a complete TTL 6502 (the third K24 card being optional). A real 6502 is shown below for scale

Spanktacular !

I'm thinking : 'The 6574'. :-)


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 3:32 pm 
Offline
User avatar

Joined: Fri Nov 09, 2012 5:54 pm
Posts: 1431
Windfall wrote:
I'm thinking : 'The 6574'. :-)

Hmm... finding a good "number" for that CPU ain't easy.

From the Motorola notation, 657x\687x almost sounds like sort of a clock generator.
Besides that... if the next project would be (hypothetically spoken) a TTL implementation of the 6526, how to name it ?

7402 already is taken (quad input NOR gate).
8500 almost sounds like (godforbid) 8085.

I'd vote for 7502.


Top
 Profile  
Reply with quote  
 Post subject: Re: TTL 6502 Here I come
PostPosted: Tue Oct 17, 2017 7:17 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8482
Location: Midwestern USA
ttlworks wrote:
Windfall wrote:
I'm thinking : 'The 6574'. :-)

Hmm... finding a good "number" for that CPU ain't easy.

From the Motorola notation, 657x\687x almost sounds like sort of a clock generator.
Besides that... if the next project would be (hypothetically spoken) a TTL implementation of the 6526, how to name it ?

7402 already is taken (quad input NOR gate).
8500 almost sounds like (godforbid) 8085.

I'd vote for 7502.

What's wrong with 6502-???, where ??? is the number of chips it took to build the contraption?

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 558 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24 ... 38  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: