News for hackers. Stuff that matters.
Re:Clocking a 6502 simulator to 15GHz by kabdib on Monday April 13, 2020 @05:15PM (#22860072)
I was told by Leonard Tramiel (who was my manager at Atari for a while) that the world record for a production 6502 was 25Mhz. This was demonstrated one Friday evening, some time after the beer fridge had been opened in one of the labs.

I don't know if they applied any kind of external cooling, or what the benchmark was. Probably it was "keep cranking up the clock until pins stop wiggling or smoke comes out." Not very scientific, but quite entertaining.

Re:Clocking a 6502 simulator to 15GHz by JoachimS on Tuesday April 14, 2020 @04:31AM (#22863785)
One of my old companies (InformASic) developed a VPN solution for serial communication. The product LinkShield (later renamed and spun off to form CrypTango) was implemented as a small ASIC. The main CPU was a 6502 clone with memory protection. We clocked it at 33 MHz, but usually ran them at 25 MHz in the products. That 6502 clone was cycle correc, that is the number of cycles required for an instruction was the same as for the original MOS 6502.

Nowdays you can quite easily to a 6502 implementation in a FPGA running at 100 MHz. Esp if you allow the design to use more cycles for some instructions.

Sadly the product never took off and the companies folded. I have some chips somewhere. Googling at least revealed a picture of the product:

https://www.google.com/imgres?imgurl=https%3A%2F%2Ffarm3.sta...

Re:Clocking a 6502 simulator to 15GHz by bemmu on Tuesday April 14, 2020 @01:33AM (#22863014)
From the Commodore book, about the early 80s:

"We actually made a couple of really hot processors for a chess tournament for somebody. He literally water-cooled it, and he ran it at something like eight megahertz. It was just ridiculous how fast he ran it."

Earlier it was explained that some processors coming off the production line could run faster than others, and they could test for it to pick the best ones for such purposes. They didn't end up increasing the clock speed for released computers, as other components could not keep up.

Re:Clocking a 6502 simulator to 15GHz by tyingq on Monday April 13, 2020 @06:14PM (#22860778)
There's an FPGA 65C02 core running at ~73Mhz. https://github.com/MorrisMA/MAM65C02-Processor-Core
Re:Clocking a 6502 simulator to 15GHz by duskwuff on Monday April 13, 2020 @06:31PM (#22860915)
18 MHz, actually -- the FPGA clock speed is 73 MHz, but it executes the equivalent of one 6502 clock cycle in four of its clocks.

That being said, this was implemented on a budget-line FPGA from 2006 (XC3S50A - a small Xilinx Spartan-3A). A modern performance-line FPGA would probably hit a couple hundred MHz easily.

Re:Clocking a 6502 simulator to 15GHz by baybal2 on Monday April 13, 2020 @07:34PM (#22861345)
It's still surprising how little relatively to the level of perceived performance have IPC count improved since seventies.
Re:Clocking a 6502 simulator to 15GHz by cmrdporcupine on Monday April 13, 2020 @09:55PM (#22862059)
It seems to me that computational throughput has improved exponentially, but latency for input tasks etc. has in fact worsened in many cases.
Re:Clocking a 6502 simulator to 15GHz by aidenn0 on Monday April 13, 2020 @10:55PM (#22862333)
Per TFA IPC has improved by about factor of 5, assuming a 3GHz machine runs BBC micro at equivalent performance of 15GHz
Re:Clocking a 6502 simulator to 15GHz by vardump on Tuesday April 14, 2020 @06:22AM (#22864332)
Reality for (SIMD) integer math is probably closer to 1000, floating point... probably 100000.
Re:Clocking a 6502 simulator to 15GHz by raverbashing on Tuesday April 14, 2020 @02:35AM (#22863274)
You're wrong :)

IPCs for 6502 or Z80 (4x "faster" clock but 3-6 cycles per machine cycle) processors were at the count of clock cycles per instruction

Even a measly 386/486 were much faster than that.

Enter the Pentium with the ability to execute 2 instructions in parallel.

IPC count were the big gainers recently as well

Re:Clocking a 6502 simulator to 15GHz by baybal2 on Tuesday April 14, 2020 @02:45AM (#22863312)
It is still only 20-30 fold at max on average. So much more came from many thousand fold clock speed increase, and much wider execution paths.
Re:Clocking a 6502 simulator to 15GHz by nikanj on Monday April 13, 2020 @09:36PM (#22861985)
The perceived performance for an average desktop has been pretty stagnant since, I don't know, at least the mid-nineties.
Re:Clocking a 6502 simulator to 15GHz by ajuc on Tuesday April 14, 2020 @12:27AM (#22862747)
There was a huge perceived improvement when SSDs first appeared.
Re:Clocking a 6502 simulator to 15GHz by spullara on Monday April 13, 2020 @09:42PM (#22862008)
Softare expands to fill the CPU available.
Re:Clocking a 6502 simulator to 15GHz by woadwarrior01 on Tuesday April 14, 2020 @12:18AM (#22862705)
AKA Wirth’s Law[1]: “Software is getting slower more rapidly than hardware is becoming faster.”

[1]: https://en.m.wikipedia.org/wiki/Wirth%27s_law

Re:Clocking a 6502 simulator to 15GHz by FeepingCreature on Tuesday April 14, 2020 @06:14AM (#22864271)
Software is being produced faster though.
Re:Clocking a 6502 simulator to 15GHz by 6510 on Tuesday April 14, 2020 @01:22AM (#22862976)
Didn't cars also follow that pattern?
Re:Clocking a 6502 simulator to 15GHz by cmrdporcupine on Monday April 13, 2020 @07:26PM (#22861297)
A new stock 65c02 from WDC can do 20mhz. So this FPGA version @ 18mhz doesn't sound any better. Though I'm sure on a modern FPGA one can do more than that.
Re:Clocking a 6502 simulator to 15GHz by QuadrupleA on Tuesday April 14, 2020 @01:35AM (#22863019)
Can anyone with an electronics background explain why it's so hard to clock a 6502 higher than a handful of MHz, when modern chips can do 1000x that? Is it just larger transistor scale leading to excess capacitance / slower switching?
Re:Clocking a 6502 simulator to 15GHz by raverbashing on Tuesday April 14, 2020 @02:29AM (#22863247)
One reason is that: transistor size and switching speed. Though the technology of the 6502 probably could go 50MHz? 100MHz? Not sure. Would it be equivalent to 74HC TTL line? Again not sure

But the main (basic) reason is that the internal logic blocks don't worry too much about processing and arrival times beyond the speed at which they need to operate. What's simultaneous at 1MHz might be not so simultaneous at 10MHz or 100MHz

Another (advanced) reason why overclocking it might be hard is EM interference inside and outside the chip.

Re:Clocking a 6502 simulator to 15GHz by MagerValp on Tuesday April 14, 2020 @08:54AM (#22865234)
The 6502 has very limited pipelining, and every CPU cycle is tied to a memory access with no support for wait states or stalls. At 1 MHz it can work with really slow memory (roughly 500 ns), but at 10 MHz it needs ~60 ns, and at 20 MHz something like ~20ns. The architecture simply wasn't designed for anything above single digit clock speeds.
Re:Clocking a 6502 simulator to 15GHz by paulmd on Monday April 13, 2020 @05:45PM (#22860457)
"until pins stop wiggling"?
Re:Clocking a 6502 simulator to 15GHz by variaga on Monday April 13, 2020 @06:06PM (#22860709)
The pins don't physically wiggle. "pins wiggling" is a common metaphor for "the voltage level on a pin is changing".

As a signal driver is toggled at increasing frequencies ('cranking up the clock'), the signal amplitude (voltage difference between the 'high' and 'low' period) starts to drop. At a high enough frequency, the signal will be indistinguishable from noise and 'stops wiggling'.

Re:Clocking a 6502 simulator to 15GHz by duskwuff on Monday April 13, 2020 @06:38PM (#22860960)
> At a high enough frequency, the signal will be indistinguishable from noise and 'stops wiggling'.

It's not that the signal will be indistinguishable from noise, but that the CPU will stop working correctly, so its outputs will stop toggling (or will toggle in unexpected ways).

Re:Clocking a 6502 simulator to 15GHz by numpad0 on Monday April 13, 2020 @11:47PM (#22862579)
I had an impression that they might be talking what a digital I/O pin looks on oscilloscope.

Scopes lock at first rising edge after last horizontal scan, so display starts at H, then drops to L after how long CPU held that pin high. That creates  ̄ ̄l_ lines on the screen superimposed to one another, X position “wiggling”  ̄lll_ depending on how many consecutive H bits just happened to be sent.

When the CPU halts, the pin would flatline at H or L and you’ll know.

Re:Clocking a 6502 simulator to 15GHz by kabdib on Monday April 13, 2020 @10:10PM (#22862128)
I was actually thinking about catastrophic failure, as in something on the chip burning out and making the clock stop.

My guess is that they were probably cooling it with beer (or at least cold beer bottle bottoms) to get that last critical Mhz, before drinking the beer.

Re:Clocking a 6502 simulator to 15GHz by mmastrac on Monday April 13, 2020 @06:04PM (#22860690)
Wiggling a pin - ie: toggling it. Basically means "activity on the pins"

https://www.cypress.com/blog/technical/more-pdl-examples-wig...

Re:Clocking a 6502 simulator to 15GHz by metaphor on Monday April 13, 2020 @06:08PM (#22860731)
Euphemism for when you don't see output pins transition state on a measuring instrument, e.g. oscope.
Re:Clocking a 6502 simulator to 15GHz by justwalt on Monday April 13, 2020 @06:03PM (#22860673)
I think it should be “start wiggling” as that makes more sense.
Re:Clocking a 6502 simulator to 15GHz by brokenmachine on Monday April 13, 2020 @08:24PM (#22861655)
Wiggling pins is what a computer does when it is working.
Re:Clocking a 6502 simulator to 15GHz by xentripetal on Monday April 13, 2020 @05:56PM (#22860600)
Maybe the pins got so hot they melted into the board?
Re:Clocking a 6502 simulator to 15GHz by Cthulhu_ on Tuesday April 14, 2020 @04:50AM (#22863889)
I love reading the stories about overclocking attempts (actually that scene doesn't seem to be much of a thing anymore?), people bolting pipes on top of CPU's and filling them with liquid nitrogen, nearly supercooling the CPU's and breaking speed records.