Here we see a very simple processor structure - such as might be found in a small 8-bit microprocessor. The various components are:
101c16: lw $1,0($2)This instruction tells the processor to take the address stored in register 2, add 0 to it and load the word found at that address in main memory into register 1. |
In this, and most following, examples, we'll use the
MIPS instruction set.
This is chosen because
|
As the next instruction to be executed (our lw instruction) is at memory address 101c16, the program counter contains 101c. | For convenience, most numbers - especially memory addresses and instruction contents - will be expressed in hexadecimal. When orders of magnitude and performance are being discussed, decimal numbers will be used: this will generally be obvious from the context and the use of exponent notations, eg 5 x 1012. |
|
This instruction tells the processor to add the contents of registers 3 and 4 and place the result in register 1. |
Key terms |
Continue on to Bottlenecks | Back to the Table of Contents |