Idea of creating a general-purpose computer
Stored-program computer
Von Neumann architecture
computer system design in which the program is stored in memory with the data
Functions of all computers
CPU
Bus
Input devices
Output devices
Writing
Process be like:
* CPU sends the data to be written to memory over the data bus
* address bus stores the memory address where the data should be stored/ specifies the location in memory where the data should be written
* CPU uses the control bus to tell memory to save it at a given address
Reading
Process be like:
* Address bus stores the memory address of the data to be retrieved
* Control bus is used to tell the memory to take the piece of memory at given memory address
* Data is sent to CPU through data bus
Memory address
RAM
RAM is typically measured in?
gigabytes (GB) or terabytes (TB)
(but GB is more likely)
ROM
Firmware
RAM and ROM
(RAM provides temporary, fast-access storage for active data and program instructions, while ROM provides permanent or semi-permanent storage for essential software and firmware.)
Cache memory
=================================
================================
=================================
Bottleneck
Cache miss
Virtual memory
Process be like:
1. RAM is full and a process running on the computer may need to store in RAM as processing.
2. RAM has no free memory to store that data.
3. So, least recently used data in RAM is swapped out from RAM and in to virtual memory.
4. When that data is needed again, it is swapped back in to RAM from virtual memory.
Disadvantages of virtual memory
CU
ALU
clock