Click here to Skip to main content
15,886,067 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 PinPopular
PIEBALDconsult19-Jan-23 9:26
mvePIEBALDconsult19-Jan-23 9:26 
GeneralRe: A basic model for how a CPU works Pin
Calin Negru20-Jan-23 4:10
Calin Negru20-Jan-23 4:10 
GeneralRe: A basic model for how a CPU works Pin
Jeremy Falcon19-Jan-23 13:06
professionalJeremy Falcon19-Jan-23 13:06 
GeneralRe: A basic model for how a CPU works Pin
obermd19-Jan-23 13:34
obermd19-Jan-23 13:34 
GeneralRe: A basic model for how a CPU works Pin
trønderen19-Jan-23 15:32
trønderen19-Jan-23 15:32 
GeneralRe: A basic model for how a CPU works Pin
Jeremy Falcon19-Jan-23 15:35
professionalJeremy Falcon19-Jan-23 15:35 
GeneralRe: A basic model for how a CPU works Pin
Calin Negru20-Jan-23 2:20
Calin Negru20-Jan-23 2:20 
GeneralRe: A basic model for how a CPU works Pin
kalberts20-Jan-23 9:12
kalberts20-Jan-23 9:12 
I guess that obermd is essentially referring to various effects of pipelining. Each individual instruction may spend 5-6 (or more) clock cycles total in various stages of processing: Instruction fetch, instruction decoding, operand fetch, *instruction execution*, storing results, ... The *instruction execution* (e.g. adding) is done in a single clock cycle, but that is only a part of the processing. In parallell with this instruction doing its add (say), the previous instruction is stuffing away its results, the next instruction is having operands fetched, the one two steps behind is being decoded and the one three steps behind is being fetched.

So the CPU may be doing one add (say) per cycle, and in the same cycle one of each of the other operations, on different instructions. For one given instruction, it takes a number of cycles to have all the different processing steps done, though.
GeneralRe: A basic model for how a CPU works Pin
Calin Negru20-Jan-23 20:02
Calin Negru20-Jan-23 20:02 
GeneralRe: A basic model for how a CPU works Pin
kalberts20-Jan-23 8:59
kalberts20-Jan-23 8:59 
GeneralRe: A basic model for how a CPU works Pin
obermd19-Jan-23 13:34
obermd19-Jan-23 13:34 
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 
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 

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.