Click here to Skip to main content
15,880,405 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: A basic model for how a CPU works Pin
Calin Negru20-Jan-23 2:26
Calin Negru20-Jan-23 2:26 
GeneralRe: A basic model for how a CPU works Pin
englebart19-Jan-23 15:16
professionalenglebart19-Jan-23 15:16 
GeneralRe: A basic model for how a CPU works Pin
jmaida19-Jan-23 16:53
jmaida19-Jan-23 16:53 
GeneralRe: A basic model for how a CPU works Pin
englebart20-Jan-23 7:04
professionalenglebart20-Jan-23 7:04 
GeneralRe: A basic model for how a CPU works Pin
jmaida20-Jan-23 7:27
jmaida20-Jan-23 7:27 
GeneralRe: A basic model for how a CPU works Pin
kalberts20-Jan-23 9:48
kalberts20-Jan-23 9:48 
GeneralRe: A basic model for how a CPU works Pin
englebart20-Jan-23 15:18
professionalenglebart20-Jan-23 15:18 
GeneralRe: A basic model for how a CPU works Pin
kalberts20-Jan-23 8:39
kalberts20-Jan-23 8:39 
In my student days - this was in 1979 - one of the lab exercises were with an AMD 2901 Evaluation Kit. The 2901 was a 4-bit "bit slice" ALU, with carry in and out, so you could hook two of them together for an 8-bit machine, four for a 16-bit or 8 for a 32-bit. We had only a single one.

With the ALU came a memory for 64 words of 16 bit microcode: Flip 16 switches, press Deposit, flip again, press Deposit ... 64 times to fill the entire microcode memory. We hooked up each of the 16 bits to the control lines for the ALU: Load accumulator from bus, dump accumulator to bus ... actually, today I have only a vague memory of what the control signals were. The 'sequencer' was a separate chip that selected one word from microcode RAM, transferring it to the ALU control inputs. It had a microcode address counter; one of the control signals incremented this counter.

We did succeed in microcoding an instruction for reading four switches (the "bus") as data, adding another 4 bit value, and display the result on 4 LEDs (plus one for the carry line).

This was an exceptionally valuable lab exercize to learn what (an extremely simpified) CPU is like in its very basic mechanisms. If 2901 Evaluation Kits were still on the market, I would recommend it to anyone who wants a true hands on experience with a CPU. (If you happen to find one on eBay: Be prepared to do some thorough studying of the ALU before trying to microcode it; microcoding is not to be don on intuition!)

Of course: Anything like the 2901 kit can teach you only the basic techniques of simple, unsophisticated computers, the way they were built in the old days. I see other people refer to 'modern' CPUs as if they have little to do with what an evaluation kit can teach you - but you can immediately forget jumping directly onto a 'modern' CPU. It is so complex, contains so many fancy tricks for speeding it up, that you will be be completely blown down. Better start with something that you have a chance to really understand, and then add the fancy techniques one by one. If you get as far as to thoroughly understand even a third of them, you will be qualified as Chief Engineer at AMD or Intel Smile | :) Or, to phrase it differently: Don't expect to understand the fancy techniques. You may get as far as to understand what they want to achieve, but don't expect to understand how.
GeneralRe: A basic model for how a CPU works Pin
jmaida20-Jan-23 9:47
jmaida20-Jan-23 9:47 
GeneralRe: A basic model for how a CPU works Pin
BillWoodruff19-Jan-23 18:08
professionalBillWoodruff19-Jan-23 18:08 
GeneralRe: A basic model for how a CPU works Pin
Calin Negru19-Jan-23 23:49
Calin Negru19-Jan-23 23:49 
GeneralRe: A basic model for how a CPU works Pin
Keith Barrow19-Jan-23 22:59
professionalKeith Barrow19-Jan-23 22:59 
PraiseNice time news Pin
honey the codewitch19-Jan-23 6:31
mvahoney the codewitch19-Jan-23 6:31 
GeneralRe: Nice time news Pin
jeron119-Jan-23 6:37
jeron119-Jan-23 6:37 
GeneralRe: Nice time news Pin
Jeremy Falcon19-Jan-23 6:39
professionalJeremy Falcon19-Jan-23 6:39 
GeneralRe: Nice time news Pin
dandy7220-Jan-23 5:07
dandy7220-Jan-23 5:07 
GeneralRe: Nice time news Pin
Kris Lantz19-Jan-23 7:49
professionalKris Lantz19-Jan-23 7:49 
GeneralRe: Nice time news Pin
Zach Burnett19-Jan-23 8:22
Zach Burnett19-Jan-23 8:22 
GeneralMy friend Joe recently went on the Dolly Parton diet... Pin
Single Step Debugger19-Jan-23 8:37
Single Step Debugger19-Jan-23 8:37 
GeneralRe: My friend Joe recently went on the Dolly Parton diet... Pin
englebart19-Jan-23 15:10
professionalenglebart19-Jan-23 15:10 
GeneralRe: My friend Joe recently went on the Dolly Parton diet... Pin
Mircea Neacsu19-Jan-23 15:16
Mircea Neacsu19-Jan-23 15:16 
GeneralRe: My friend Joe recently went on the Dolly Parton diet... Pin
trønderen19-Jan-23 15:33
trønderen19-Jan-23 15:33 
GeneralRe: Nice time news Pin
Kelly Herald19-Jan-23 9:27
Kelly Herald19-Jan-23 9:27 
GeneralRe: Nice time news Pin
honey the codewitch19-Jan-23 9:40
mvahoney the codewitch19-Jan-23 9:40 
GeneralRe: Nice time news Pin
David O'Neil19-Jan-23 11:17
professionalDavid O'Neil19-Jan-23 11:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.