[Semester 1] Combinational Logic Flashcards
Where might you find an adder?
In the Arithmetic Logic Unit (ALU); it’s used to add numbers together (hence the name!)
Sum
The total of the numbers being added. It’s true if only one input is true.
Carry
Anything that needs to be carried over during addition
True or false: Carry is only true if all inputs are true
Both! This is true in a half adder but in a full adder, only one input (one of the AND gates) has to be true.
Delay
How long a circuit takes to calculate an output
Look Ahead Carry
Looks at lower bits to see whether a higher carry will be generated
Why does the delay in a Ripple Carry adder increase with each adder?
An adder can’t calculate sum and carry until it receives the carry from the previous adder.
Comparator
Compares two currents and uses the largest one
Multiplexer (mux)
Selects an output based on what the majority of input signals are equal to
Control signal
Decides which input signal to use for the circuit’s output
True or false: The more input signals there are, the more control signals needed.
True! If a mux has 8 input signals for example, it will need 3 control signals in order to create 8 possible combinations.
Encoder
Converts multiple input signals into a single output
Decoder
Converts instructions into signals, which are then sent around the CPU.
In a decoder, how many outputs can be activated at once?
1, as shown in this truth table: https://b3van8qm1o7ou9d3b48qdhsg-wpengine.netdna-ssl.com/wp-content/uploads/2020/11/VHDL-Table-1.jpg (sorry for the link i have to pay to put photos in here)
Demultiplexer
Uses input signals to create several outputs