User Tools

Site Tools


computer_science

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computer_science [2021/09/08 03:56] – [Computer Organization] manacomputer_science [2021/09/25 05:27] (current) mana
Line 18: Line 18:
       - Memory (is binary information) → fetched → CU → Decoded → ALU → Execute (the task).        - Memory (is binary information) → fetched → CU → Decoded → ALU → Execute (the task). 
       - Decode and Execute are done by the same computer chip: the CPU       - Decode and Execute are done by the same computer chip: the CPU
 +
 +
 +=== Memory ===
 +Computer memory is organized as a hierarchy. At the bottom, there is the hard drive. At the top level there is the CPU.
 +
 +Because hard drives are slow, when a software is loaded, the software gets loaded in the Random Access Memory (RAM).
 +
 +The RAM is still not fast enough for the CPU, so the instructions are actually executed in the Cache memory.
 +HD: Probably TB in size
 +RAM: Probably GB in size
 +Cache: Probably KB in size
 +
 +The memory is organized as an array or a table.
 +Each row is 1 byte. 1 byte is 1 bit.
 +1 byte = 1 word
 +
 +^ Address ^ 1 byte = 8 bits ^^^^^^^^
 +| 0 (0000 0000)  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  |
 +| 1 (0000 0001)  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  |
 +| 2 (0000 0002)  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  | 1 bit  |
 +| 1111 1111      | ...    | ...    | ...    | ...    | ...    | ...    | ...    | ...    |
 +
 +
 +
computer_science.1631041006.txt.gz · Last modified: 2021/09/08 03:56 by mana