Systems Architecture 1 Flashcards
Define the “stored program computer” aka the Von Neumann architecture
A stored-program computer is a computer that stores program instructions in electronically, electromagnetically, or optically accessible memory. This contrasts with systems that stored the program instructions with plugboards or similar mechanisms.
What is the fetch execute cycle?
A CPU works by fetching instructions and executing them in an endless loop.
What is a memory address?
An address in memory, where a bit is stored.
The address is represented as a number
Count to 12 in binary
0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1111
Define the hexadecimal system
A system from A - F and 0 - 9.
How do you convert binary to hexadecimal?
We take the binary number and count from the rightmost index in 1, 2, 4, 8, 16, 32, 64, 128, 256
1011 = 1 + 2 + 0 + 8 = 11 => B
How do you convert hexadecimal to decimal?
Multiply each digit by 16 to the power of the index of the number.
25 = 5 * 16^0 + 2 * 16^1 = 2 + 32 = 34
What is a half adder? What does it’s truth table look like?
An unit with two inputs A and B and two outputs, SUM and CARRY.
A | B | S | C
1 | 1 | 0 | 1
0 | 1 | 1 | 0
1 | 0 | 1 | 0
0 | 0 | 0 | 0
What is a full adder? What does it’s truth table look like?
A unit with three inputs A and B and CARRY-IN, two outputs, SUM and CARRY-OUT.
A | B | C| S | C
1 | 1 | 1 | 1 | 1
1 | 1 | 0 | 0 | 1
1 | 0 | 1 | 0 | 1
1 | 0 | 0 | 1 | 0
0 | 1 | 1 | 0 | 1
0 | 1 | 0 | 1 | 0
0 | 0 | 1 | 1 | 0
0 | 0 | 0 | 0 | 0
What is gate delay and how do you calculate it?
The gate delay is the time it takes for a logic gate to process an input change and produce a corresponding output change.
It is calculated by breaking down each component i.e full or half adder to it’s logic gates and adding the delays together.
You are asked to build a ripple-carry adder for 12-bit numbers, using full adders built from XOR, AND and OR gates in the standard way, and a half-adder in the lowest bit. How many gate delays are there on the longest path between the least significant bit’s input and the top bit’s carry output?
First break down the question.
12 bits
LSB for the half adder
11 bits for the full adders
A full adder has 2 gate delays as it is made from two half adders.
A half adder has 1 gate delay.
So 11 * 2 + 1 = 23 gate delays
In the truth table of a Boolean function with five inputs, how many rows would you expect to see,not countingthe header row?
The formula is 2 ^ Row number
So 2^ 5 = 32
Consider an instruction set featuring many general-purpose registers. It includes a store-to-memory instruction, which takes a value stored in some source register, and stores it to memory at a given address (the address is also held in a register). The instruction supports a “base plus offset” addressing mode, giving it the following form.
STB source_register, offset(address_register)
The encoded instruction takes in total32bits. Of those,6represent the opcode STB (including selecting the given addressing mode);5 bits identify the source register, and5bits identify the address register. What is the maximum value ofoffset, assuming that it represents an unsigned integer (i.e. zero or a positive number)?
We need to break down the question first.
We know that:
32 bits make up the instruction
6 for the opcode
5 for the source register
5 for the address register
We are looking for the maximum value
6 + 5*2 = 16
32 -16 = 16
So as it is an unsigned integer, the maximum value is all bits active.
2^16 -1 = 65535
Remember -1 because we start counting from 0.
COMPUTER STUPID
Which of the following statements is/are true?
- Any combinational circuit can be built from only AND and OR gates.
- Any combinational circuit can be built from only NOR gates.
- From only NAND gates it is not possible to build an XOR gate.
- True - The NOR gate is functionally complete meaning that any boolean function can be constructed using NOR gates.
The NOR gate is a combination of OR and NOT gates, which only outputs 1 when both inputs are 0.
What is the name of the logic gate which has the following truth table?
input 1 | input 2 | output |
| 0 | 0 | 1 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 0 |
It is a NOR gate, as the only output of 1 is when both inputs are 0.
Moore’s Law states that the number of transistors on a manufactured integrated circuit (chip, die) doubles roughly every 18 months.
Assuming this is true, how many years does it take for the number of transistors to increase by a factor of 100?
Your answer may include decimal places, but only needs to be correct to within one year.
We can start by expressing 100 as a power of 2, which is approximately 6.64
Then as 18 months in years is 1.5, we work out:
6.54 * 1.5 = 9.96 which is approximately 10 years
Convert theoctal(base 8) numeral “1234” to decimal (base 10).
Ocatal base 8 can be worked out by multiplying each index by 8^i, i is the position of the number.
4 * 8^0 = 4
3 * 8^1 = 24
2 * 8^2 = 128
1 * 8^3 = 512
= 668
What is de Morgan’s first law? What does it state?
The first law is Negation of a Conjunction. that states A & B is the same as NOT A OR NOT B
What is de Morgans’s second law? What does it state?
The second law is Negation of a Disjunction, that states A OR B is the same as NOT A & NOT B
What is the Stack Pointer? And where does it point to?
The Stack Pointer is a special purpose register that keeps track of the top of the stack in memory.
The stack is LIFIO (last in first out)
Define two’s complement arithmetic
Two’s compliment arithmetic is the process computers use to add numbers together to perform arithmetic operations.
If a binary number begins with 0, it is a positive integer: 0011
if a binary number begins with 1, it is a negative integer: 1011
For 0, it is represented with: 0000
The term ‘compliment’ refers to positive numbers starting from 0000 and negative numbers starting from 1111.
In two’s compliment, count from 0 to 7
0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111
These are the only available positive integers in binary.
In two’s compliment, count from -1 to -8
1111, 1110, 1101, 1100, 1011, 1010, 1001, 1000
What is 1101 + 0101
1101 = -3
0101 = 5
=> -3 + 5 = 2 == 0010