Re:Pineapple ONE: open-source 32 bit RISC-V CPU that you can...
by IgorPartola on Sunday September 17, 2023 @11:19PM
(#37551832)
Isn’t microcode used in today’s CPUs all the time? Or is this different meaning of microcode?
Re:Pineapple ONE: open-source 32 bit RISC-V CPU that you can...
by andai on Sunday September 17, 2023 @11:25PM
(#37551878)
I would guess they used to use it because hardware was very expensive, and now they use it because performance is very cheap.
Re:Pineapple ONE: open-source 32 bit RISC-V CPU that you can...
by LoganDark on Monday September 18, 2023 @07:26AM
(#37554784)
I think now they use it because they can implement the bajillion x86 instructions in terms of much simpler and more efficient micro-ops, without implementing every single x86 instruction completely uniquely.
You can use microcode for that. Also microcode can be used to implement multiply/divide by adding/subtracting in a loop. Microcode is very bad for performance, but in a DIY project it can save lot of chips. Microcode was used in 60s and 70s computers.
And the simplest microcode sequencer is made of 1 (one) register and 1 (one) ROM. Although, for a RISC-V you would probably need more than 1 ROM (microcode is usually very wide, 16- or more bits).