Computer Hardware Flashcards
How do computers represent data?
With bits (an instance of a state)
What is a bit
A bit represents a state (1 or 0)
What is a nybble (nibble, or nyble)
Four consecutive bits
What is a byte?
Eight consecutive bits
When talking about memory what is the concept of a “word”
Basic unit of data that a cpu can process at one time.
How many possible characters in ASCII and why?
2^7, so 128.
This is because 2 (states 1 or 0) and ASCII characters are stored in 7 bits.
What is a combinatorial logic circuit?
Circuit whose digital output are dependent only on their digital inputs (works in binary, no memory).
All logic gates have two inputs and one output , except for ______.
How does this logic gate behave?
NOT (1 input, 1 output)
Invert (E.g., if input is 1, it will invert it and output 0)
How many functions for 1 input and 1 output?
4
False, Indentity, True, and NOT
How many functions for 2 input and 1 output?
16
Because there are 4 input combinations: (00, 01, 10, 11) . For each combination there are two possible outputs, therefore 2^4 = 16.
What does the AND logic gate look like?
And how does this logic gate work?
2 inputs going into a ‘D’ shape, with one output coming off the other end of the D.
Gives true (1) if both are same.
What does the NAND logic gate look like?
And how does this logic gate work?
Same as AND but with a small circle at the end of the D.
True (1) when they are both NOT true.
What does the OR logic gate look like?
And how does this logic gate work?
2 inputs going into a ‘shield’ shape, with one output coming off the other end of the D.
True (1) when either input or both are true.
What does the EOR/XOR logic gate look like?
And how does this logic gate work?
Similar to or, but an arch is on the top of the shield.
You can have one or the other, but can’t have both.
What a boolean expression for both the ‘OR’ and ‘AND’ logic gates.
Or: Y = A + B
And: Y = A * B
Write a diagram to represent 2 input, 2 output for a circuit containing a ‘XOR’ and a ‘AND’ logic gate.
Combine both with both input bits going to both logic gates.
What is a Ripple Carry Adder?
Each full adder takes the current bits being added, along with any carry from the previous addition stage, and produces the sum and carry output, which is then used in the next stage.
What is a 3-bit Parity Generator
A 3-bit parity generator is designed to ensure that the total number of 1s in the 3-bit binary sequence is always odd, which is typically achieved by setting the parity bit to 1 or 0 to make the total count of 1s odd. This is often used for error checking and correction purposes.
Write an equation so P is always true (3-bit Parity Generator)
P = (notA * notB * notC) + (A * B * notC) + (A * notB * C) + (notA * B * C)
How do 7-segment Digital Displays work?
They form an 7 with lines, and bits symbolise which lines to light up.
What is the Boolean Operator Precedence.
(order in which Boolean operators (such as NOT, AND, and OR) are evaluated)
1st - NOT
2nd - AND
3rd - OR
What is a transistor?
And how do they work?
An electronic switch.
B = Base, C = Collector, E = Emitter
0v to B = Switch opens, C is disconnected from E
Apply v to B = Switch closes, C is connected to E.
What is a demultiplexer?
A multi-way switch where the address selects which output receives the input.
E.g., 00 = Y0, 01 = Y1, 10 = Y2, 11 = Y3
What is a Set-Reset Latch?
Draw a table to represent S R inputs and their corresponding actions.
Used to set and unset latch.
S | R | Action
0 | 0 | None
0 | 1 | Q = 0
1 | 0 | Q = 1
1 | 1 | Invalid