3 ms·
What was the PLA used for? From the scant information (and obviously the name) it seems to have been a general purpose logic array. Was it programmable at run
by rwmj 6y ago
What was the PLA used for? From the scant information (and obviously the name) it seems to have been a general purpose logic array. Was it programmable at run time or factory-programmed for a single purpose like the ULA in the Sinclair ZX81?
- herio 6y agoAuthor here. The PLA in both the C64 and the C128 are primarily used to generate chip select signals for the chips that are connected on the system buses. On the C128 it is also involved in the DRAM refresh handling. The C64 PLA was originally a programmable device, the Signetics 82S100. Later version were MOS/CSG copies of the same device but programmed with changes to the manufacturing masks instead, similar to the difference between an EPROM and a Mask ROM. For a lot more detail and background, I can recommend reading Thomas Giesels excellent paper on the C64 PLA, found at http://skoe.de/docs/c64-dissected/pla/c64_pla_dissected_a4ds.pdf http://skoe.de/docs/c64-dissected/pla/c64_pla_dissected_a4ds...
- rwmj 6y agoWhy did they design a PLA and then use it like this rather than going a bit further and designing an ASIC? I guess because MOS sold the same PLA to other people?
- herio 6y agoThe C128 PLA chip is in essence an ASIC. It's using a PLA design but it's only programmable during the mask creation. Using a PLA logic array is just a very efficient way of achieving the design that they wanted. I don't think they sold them to other companies, MOS was at this stage fully part of Commodore. Commodore was really big on vertical integration, they didn't like buying components from other companies if they could help it. They even manufactured a few 74xx logic chips sometimes used in their 8-bit computers.
- segfaultbuserr 6y agoIt is an ASIC. > A gate array is an approach to the design and manufacture of application-specific integrated circuits (ASICs) using a prefabricated chip with components that are later interconnected into logic devices (e.g. NAND gates, flip-flops, etc.) according to a custom order by adding metal interconnect layers in the factory. https://en.wikipedia.org/wiki/Gate_array https://en.wikipedia.org/wiki/Gate_array PLA's job is simple: it basically contains a lot of combinational logic, transforming some inputs to some outputs. It generates a CS output based on a memory address and bus signals, it's just an address decoder, you can build the decoder using a large number of logic gates, but it gets messy and expensive. You can build a full-custom ASIC for it, but it's expensive and unnecessary. The point of PLA is allowing one to create a custom logic circuit to replace combinational logic by burning the logic on a general template, it was the right tool for the job. Even today, modern equivalents of PLAs are still used. Some companies provide FPGA-to-ASIC conversion service using mask-programmable array, it allows you to burn your FPGA design to the silicon for a moderate performance boost, without the complication of ASIC redesign.
- Milner08 6y agoNot programable at run-time, it was factory programmed and part of the main logic for the processor accessing RAM/CIA/VIA/SID/etc. Im no expert but I think it was mainly memory address decoding etc.
- tankenmate 6y agoIt's not programmable in the sense of a ((E)E)PROM; it is "programmed" in the design of the silicon logic, not programmed in the sense of putting it in a socket and (re)programming with the data you want. PLAs have a few benefits over ROMs in that it can represent a subsection of a logic space and can also handle custom inputs / outputs like "Don't Care" or "High Impedance" / "Z state" / "Disabled" which a ROM can't do.
- dfox 6y agoMain benefit of PLAs over ROM is that for many "useful" logic designs the resulting array is significantly smaller. In fact, ROM is simply an degenerate PLA where the AND array is fixed and only the OR array is programmable.
- tankenmate 6y agoThe smaller size was what I was getting to with the subsection, I should have been more explicit.
- himinlomax 6y agoOne of the simplest tasks for example is decoding addresses to route data to and from specific chips. Say 0xFF00 goes to the sound chip, 0xE045 goes to the serial port or whatever, others go to RAM or ROM. On the ZX Spectrum iirc it implemented the entire display.
- beagle3 6y agoThe Spectrum had a different design; there was main memory, and the ULA chip (Uncomitted Logic Array) Would read it or it’s own time and generate the display (it had priority over the CPU as was usual those days of single port memory if you didnt want static like noise). The sound, and just about everything else, was not mapped to memory but through an I/O address space which the Z80 and 8080 (and 80x86 and even AMD64 still have. This address space, pins, chip select, etc were all distinct from main memory - unlike the C64 where everything was memory mapped.
- himinlomax 6y agoYes iirc the Z80 had io-specific instruction which allowed accessing (some) peripherals without memory mapping. But the ULA still had to decode addresses to target RAM vs ROM.