Week 4 - Internal Memory & Digital Logic Flashcards
Name 5 components of von Neumann Architecture
processing unit, control unit, memory unit, input unit(s), output unit(s)
- The processing unit executes program instructions.
- The control unit drives program instruction execution on the processing unit. Together, the processing and control units make up the CPU.
- The memory unit stores program data and instructions.
- The input unit(s) load program data and instructions on the computer and initiate program execution.
- The output unit(s) store or receive program results.
What is a bus?
a communication chanel that transfers binary values between communication endpoints
Buses connect the units, and are used by the units to send control and data information to one another. he units use the control bus to send control signals that request or notify other units of actions, the address bus to send the memory address of a read or write request to the memory unit, and the data bus to transfer data between units.
Difference between Hardvard and von Neumann Architecture?
In the Harvard architecture, data and instructions have separate memory spaces, enabling simultaneous access to both. In contrast, the Von Neumann architecture uses a single memory space for both data and instructions, fetching and executing them sequentially.
Which units together make up the CPU?
control and processing unit
What is processing unit composed of?
ALU (arithmetic/logic unit) and a set of registers
What is a register?
A register is a small, fast unit of storage used to hold program data and the instructions that are being executed by the ALU.
Each register is capable of holding one data word.
What does the control unit do?
The control unit drives the execution of program instructions by loading them from memory and feeding instruction operands and operations through the processing unit.
What registers are there?
PC, IR, MAR, MDR, SP, ACC
Program Counter - memory address of the next instruction
Instruction Register - stores the current instruction 4
Memory Address Register - memory address of data
Memory Data Register - data currently accessed
Stack Pointer - memory address of the last item placed on stack
Accumulator - holds the result of computations
What is word size?
(generally, but also for 8-bit, 16-bit, 32-bit, 64-bit architecture)
Word size is the number of bits of the standard data size that a processor handles as a single unit.
8, 18, 32, 64 bits
What are input and output units (I/O)?
Output units refer to devices that retrieve and display information stored in memory, such as monitors or printers. Input units are devices that allow users to input data into memory, like keyboards or mice.
The input unit consists of the set of devices that enable a user or program to get data from the outside world into the computer. The most common forms of input devices today are the keyboard and mouse. Cameras and microphones are other examples.
The output unit consists of the set of devices that relay results of computation from the computer back to the outside world or that store results outside internal memory. For example, the monitor is a common output device. Other output devices include speakers and haptics.
Explain the process of a von Neumann Machine executing a program.
fetch-decode-execute-store
- The control unit fetches the next instruction from memory, takes it from PC and places it on the address bus and places a ‘read’ command on the control bus. The memory unit then reads it and sends the bytes stored at that address on the data bus. IR stores the bytes of the instruction received and the control unit increments the PC’s value.
- The control unit decodes the instruction stored in IR. It then fetches data operand values from their lcoations, as input to the processing unit.
- The processing unit executes the instruction. The ALU performs the instruction operation on instruction data operands.
- The control unit stores the result to memory. Places the result on data bus, address of the storage location on the address bus and a ‘write’ command on the control bus. When received, memory unit writes the value to memory at the address.
The I/O units are not directly involed in the execution of program instructions, they load program’s instructions and data and store or display the results.
Name categories of circuit building blocks:
arithmetic/logic, control and storage circuits
Attempt at drawing a 1 bit 2-way MUX:
https://diveintosystems.org/book/C5-Arch/_images/1bitmux.png
Truth table is A,B,S then out is (BBBBAAAA)
ATTEMPT at drawing a 1 bit 4-way MUX
personally i wouldn’t bother, but you do you