News for hackers. Stuff that matters.
Re:CPU of the Day: Motorola MC68040VL by Koshkin on Saturday November 02, 2019 @12:35PM (#21428581)
> [microcoding] is common in processors today and allows greater flexibility

Microprogramming was already widespread since the 1960s. The early microprocessors, such as MOS Technology’s 6502, too, used microcode (in its “hardwired” form).

Re:CPU of the Day: Motorola MC68040VL by jonsen on Saturday November 02, 2019 @01:34PM (#21428905)
In a way everything is microcoded. The 6502 was hardly microcoded in the general meaning of microcode:

“An alternate approach, used in many microprocessors, is to use PLAs or ROMs (instead of combinational logic) mainly for instruction decoding, and let a simple state machine (without much, or any, microcode) do most of the sequencing. The MOS Technology 6502 is an example of a microprocessor using a PLA for instruction decode and sequencing.”:

https://en.m.wikipedia.org/wiki/Microcode

Re:CPU of the Day: Motorola MC68040VL by monocasa on Saturday November 02, 2019 @01:47PM (#21428984)
Having written microcode, and with the gate level information we have on the 6502 now, I can totally tell you that it's microcode. Some people get confused for some reason if they've only been exposed to vertical microcode.
Re:CPU of the Day: Motorola MC68040VL by userbinator on Saturday November 02, 2019 @02:53PM (#21429311)
If a 6(?)-state PLA counts as microcode, what CPU isn't microcoded?
Re:CPU of the Day: Motorola MC68040VL by 0xcde4c3db on Saturday November 02, 2019 @09:09PM (#21431318)
Looking at what the PLA actually does, though, isn't it tantamount to a cleverly compressed microcode ROM? As far as I understand it, the opcode and cycle number select a "word" of control signals to spit out, and the PLA aspect is primarily used to allow multiple permutations of cycle+instruction to select the same "microinstruction" without duplicating it as a conventional ROM would require.

edit: I realize that in some trivial sense any combinational logic is tantamount to a compressed ROM, but I mean that even in a design sense this seems like it's not far off from a deduped array of microinstructions.

Re:CPU of the Day: Motorola MC68040VL by kmill on Saturday November 02, 2019 @03:22PM (#21429480)
Probably unpipelined RISC designs with exclusively single-cycle instructions. The instruction decoder just consists of setting a bunch of multiplexers to the right states for that instruction.

The distinction might be whether the instruction breaks up into a sequence of discrete internal operations. Implementing this as a hardwired state machine is an optimization.

Re:CPU of the Day: Motorola MC68040VL by monocasa on Saturday November 02, 2019 @05:54PM (#21430380)
21 states, the instruction register is part of the state selection.

And classic 5 stage RISCs like most MIPS don't typically have microcode.

Re:CPU of the Day: Motorola MC68040VL by perl4ever on Sunday November 03, 2019 @09:20PM (#21438460)
In college in the late 90s, I remember an assignment to optimize the microcode for an instruction in a hypothetical computer. I had a lot of fun doing that and came up with a much shorter solution than my professor thought possible.

I never ended up doing any low-level programming professionally though. The person I worked with that was the best at SQL, I heard hated his college course with FPGAs.