Re:Fake chips, I got stung
by ajb on Thursday December 07, 2023 @10:40AM
(#38557574)
It can't be worth making, or counterfeiting, 6502's for the hobbyist market. Anyone have a clue as to what the mass market for these chips is?
[ Parent
| on HN ]
I'm familiar with this one, but there may be others: embedded systems. There is a huge market of industrial controllers that were designed around the 6502 and for which there is a large, solid, existing code base. New designs often use 6502-based controllers in order to maintain compatibility with that code base, and existing machines need to be able to be repaired.
Fun fact: the ARM is largely based on the 6502. You could argue that the 6502 was a RISC chip before RISC was a thing!
I've been wanting to squeeze that ARM fact in one of my Archimedes blog posts, but somehow never got around to it. It is pretty cool how it was developed.
Re:Fake chips, I got stung
by Turing_Machine on Thursday December 07, 2023 @11:35AM
(#38558418)
I don't know if I'd go quite that far, but the 6502 definitely had some RISC-ish features.
The Page 0 addressing mode basically let you use the first page of RAM more or less as 256 extra 8-bit registers (or 128 16-bit registers, etc.), as those locations could be accessed faster and with fewer instruction bytes than locations elsewhere in RAM.
A fair number of languages were implemented on 6502-based machines by using multiple Page 0 locations to simulate wider registers.
Depends on what you call RISC, I guess: many people would argue that a load-store architecture is a required part of it, and the zero-page is actually an anti-thesis to that. In fact, it hints at the possibility of a memory-memory architecture (no general-purpose registers, minimal amounts of indexing/address registers). Implementations of such architecture could, of course, use whatever amount of hardware registers (unexposed in the instruction set itself) as a memory cache. Throw in some relaxed memory model, e.g. other cores don't see the memory stores via [STACK_REGISTER+offset] unless an explicit flush command is issued, and I imagine the end result will be quite nice to both use from the programmer's point of view (no register allocation!) and from the implementers point of view as well (register allocation is back, but now it's register- and memory-renaming, the latter being simplified by the lax memory model). One of the downsides is that the instruction encoding definitely won't be compact, with all those memory offsets instead of register numbers.
What a fun discussion http://forum.6502.org/viewtopic.php?t=720
> I don't know if I'd go quite that far
Well, it is a touch hyperbolic, yes, but the 6502 could at least be considered a proto-RISC.
Whoever is counterfeiting these won't just be counterfeiting 6502s, they'll be harvesting whatever parts they can find from the e-waste they have.
Correct. There are counterfeit ROM, RAM, and CPU of all varieties out there.
Re:Fake chips, I got stung
by mschuster91 on Thursday December 07, 2023 @02:49PM
(#38560941)
I wonder if it's possible to replace a ton of these really old CPUs by a combination of an FPGA, level shifters and a flash chip that contains a re-implementation of said CPU in FPGA bitstream.
Oh, absolutely, but it is usually way more expensive than buying a load of chips in the chance you'll get a genuine one.
I work on a project called PiStorm that replaces the 68000 series of CPUs using a small FPGA for bus translation and a Raspberry Pi.
Yes, it's not only more expensive, but there are other considerations, such as power draw, heat generation, etc. that may be an issue.
I do know the supplier I bought them from bought them in the hundreds. I also know I'm the first customer who has noticed they are counterfeit.
So, there is still enough money there I guess.
Maybe old industrial systems or something? WDC still manufactures them so there must be someone designing new things that use these for some reason
I suspect that existing designs are built using them to avoid designing something new.
These chips are not made. They are relabelled. In this case an older, somewhat compatible, and likely lower value chip was relabelled as something newer and likely more valuable. I have also heard of chips being relabelled as something incompatible, so in a sense the author got lucky.
But I suspect you're right if it came to actual manufacturing of counterfeits.