Section 1 Flashcards
What is hardware?
Any physical component that makes up a computer.
What is software?
Any program that runs on a computer.
What are the 4 basic components that all computers have?
Input device (e.g. mouse), CPU, Output device (e.g. speaker), Main memory
What is main memory also called?
RAM = main memory = primary storage = memory
What does secondary storage do?
It stores data that is used to perform processing, and data that is generated from processing input.
What is the main idea of the Von Neumann architecture?
Holding programs in addition to data in memory, allowing for data to move between the memory unit (main memory) and the processor (CPU).
What did the Von Neumann architecture improve?
Previously, programs were hardwired into the computer for specific tasks, and to change the program, you had to change the hardwire. With the Von Neumann architecture, you could change what a computer did by simply loading in a new programe, making it more general-purpose.
What does the CPU do?
It executes programs and manages the rest of the hardware in the computer.
It 1. stores and retrieves data, 2. processes information and 3. sends signals to different parts of the computer.
What is the fetch stage and which registers does it involve?
The CPU fetches an instruction from main memory.
- PC (holds memory address, increments after each stage)
- MAR (temporarily stores address of instruction/ data the CPU has to access)
- MDR (temporarily holds the instruction fetched from main memory)
What is the decode stage and which registers does it involve?
The (CU in the) CPU decodes the meaning of the fetched instruction and prepares to execute it.
- CIR (holds the instruction, not data, while the CU decodes it)
What is the execute stage and which registers does it involve?
The CPU executes the instruction.
- ACC (stores the results of calculations or operations)
- ALU (performs calculations and logical operations)
- could also involve MAR and MDR if instruction involves fetching from main memory, and could involve PC if the instruction involves a jump.
Which components are in a CPU?
CU, ALU and registers (very fast memory locations): MDR, MAR, PC, ACC
What is the function of the CU?
The CU coordinates all the activities taking place inside the CPU.
1. It controls the execution of instructions in the correct sequence.
2. It decodes instructions
3. It regulates and controls processor timing using regular pulses from the system clock
4. It sends and receives control signals to and from other devices within the computer.
What is the function of the ALU?
It carries out logical operations (and, or, not), shift operations (binary shifts) and arithmetic operations (+-*/)
What does the MAR do?
It holds the memory address of the instruction or piece of data to be fetched or stored.
What does the MDR do?
It holds data or a program instruction temporarily when it is fetched from memory or is to be sent to memory.
What does the PC do?
IT holds the memory address of the next instruction to be processed.
What does the ACC do?
It holds the results of operations carried out in the ALU.