Semester 1 Flashcards
What is the ALU?
The arithmetic logic unit is a component of the computer to perform arithmetic or mathematical operations.
Here is an ALU, what are the following parts?
INVA A, ENA, ENB, F0 and F1.
- ENA and ENB (ENABLERS) have to be high voltage for A or B to be considered.
- INVA gives the inverse of A
- F0 and F1 (the decoder) decide the operation to be enabled in the logical unit.
How many numbers can you add up to in bits in an 8bit adder?
2^8 = 64
What are each of the labelled components within clock cycle 1?
What do these field descriptions mean for an example microarchitecture?
B
Mem
C
ALU
J
Addr
- Selects B bus source
- Mem = Memory functions
- C = Selects which registers written from C bus
- ALU = ALU and Shifter Functions
- J = Determines how the next microinstruction is selected
- Addr - Contains address of potential next microinstruction
What does adding « 8 to a microinstruction do?
Shift the result left by 1 byte
What are the logic circuits whose outputs at any instant of time depend not only on the present input but also on the past outputs called?
Sequential circuits
What is the Control Unit responsible for?
- Fetching instructions from memory
- Configuring ALU
- Moving data
512kB
Consider the 1-bit Full Adder and assume all the inputs are applied at time t=10. When is the output ready? Assume all the basic gates have two units of time delay.
t = 22
1 XOR gates, containing 3 basic gate rows 3 x 2 = 6
2 AND gates = 4
1 OR gate = 2
= 12
10 + 12 = 22
What is the purpose of the adder?
An adder is a digital circuit which performs addition to numbers. It is used within the processor and is essential for the ALU.
What is the purpose of a comparator?
Comparators compare two currents and use the largest current as the results.
What is a PLD?
- A programmable logic device (PLD) is an electronic component used to build reconfigurable digital circuits.
- PLD has an undefined function at the time of manufacture.
- Before the PLD can be used in a circuit it must be programmed to implement the desired function.
- Programming a PLD changes the connections made between the gates in the device.
What are 4 Combinational Logic Circuits which perform Arithmetic and Logic Functions?
- Adders
- Subtractors
- Comparators
- PLD’s
What are 4 Combinational Logic Circuits which perform Data Transmission?
- Multiplexers (i.e. majority vote)
- Demultiplexer
- Encoder
- Decoder
What are 3 Combinational Logic Circuits which perform Code Conversion?
- Binary
- BCD
- 7-segment
What method causes branching as an error?
Pipelining
Consider the 8-bit Adder with Look Ahead Carry and assume all the inputs are applied at time t=4. When is the result of addition ready? Assume all the basic gates have one unit of time delay.
12, look ahead carry simply adds 1t per bit, so 8 + 4 = 12
What are programs?
- Programs are what a computer does, using the CPU
What is the purpose of the logic level in computer architecture?
To make decisions and perform basic functionality
What truth table represents the XNOR gate?
What is the processor?
- Sometimes referred to as the CPU (central processing unit) processes data by executing program instructions.
- At processor level, these will be low-level instructions in the form of machine code that the processor has been designed to handle based on a specific processor instruction set
What is main memory?
- Main memory is memory that can be accessed directly by the processor.
- Each memory location (instructions/data stored as binary sequences), has a physical address, used to locate it and its content.
- It is external memory not located in the CPU
What are the two main types of memory?
- RAM (Random Access Memory) : The working memory that is used by the processor during the Fetch-Decode-Execute cycle. It is volatile
- ROM (Read Only Memory) : Memory which is used in the boot process for the computer system. It is non-volatile