Viva Ques
Viva Ques
- AND Gate: A gate that produces a high output (1) only if all its inputs are high.
- Circuit Diagram:
```
A ---|AND|--- Output
B ---|
```
- Truth Table:
```
A | B | Output
----------
0|0|0
0|1|0
1|0|0
1|1|1
```
- OR Gate: A gate that produces a high output (1) if any of its inputs are high.
- Circuit Diagram:
```
A ---|OR|--- Output
B ---|
```
- Truth Table:
```
A | B | Output
----------
0|0|0
0|1|1
1|0|1
1|1|1
```
- XOR Gate (Exclusive OR): A gate that produces a high output (1) only if the number of inputs that
are high is odd.
- Circuit Diagram:
```
A ---|XOR|--- Output
B ---|
```
- Truth Table:
```
A | B | Output
----------
0|0|0
0|1|1
1|0|1
1|1|0
```
- XNOR Gate (Exclusive NOR): A gate that produces a high output (1) only if the number of inputs
that are high is even.
- Circuit Diagram:
```
A ---|XNOR|--- Output
B ---|
```
- Truth Table:
```
A | B | Output
----------
0|0|1
0|1|0
1|0|0
1|1|1
```
- NOT Gate (Inverter): A gate that produces the opposite logic state as its input.
- Circuit Diagram:
```
A ---|NOT|--- Output
```
- Truth Table:
```
A | Output
----------
0|1
1|0
```
- Half Adder: A digital circuit that adds two single binary digits.
- Truth Table:
```
A | B | Sum | Carry
-------------------
0|0|0 |0
0|1|1 |0
1|0|1 |0
1|1|0 |1
```
- Circuit Diagram:
```
A ----\
| AND---- Sum
B ----/
| OR---- Carry
|______
```
- Full Adder: A digital circuit that adds three binary digits, two operands, and a carry bit.
- Truth Table:
```
------------------------
0|0|0 |0 |0
0|0|1 |1 |0
0|1|0 |1 |0
0|1|1 |0 |1
1|0|0 |1 |0
1|0|1 |0 |1
1|1|0 |0 |1
1|1|1 |1 |1
```
- Circuit Diagram: Full adder can be implemented using two half adders and an OR gate.
- An IC chip is a miniaturized electronic circuit that has been manufactured in the surface of a thin
substrate of semiconductor material.
- Radix/Base: The number of unique digits (including zero) used to represent numbers in a
positional numeral system.
- Hexadecimal (Base 16): Uses digits 0 through 9 and letters A to F (representing 10 to 15).
5. Conversion Systems:
- Binary to Gray: Each bit in the Gray code is the exclusive-OR of the corresponding bits in the
binary number.
- Gray to Binary: Gray code can be converted back to binary by taking the exclusive-OR of
consecutive bits.
7. Decoder:
- A decoder is a digital circuit that converts a binary code into a specific set of output lines, one of
which will be active based on the input code.
- The number of input lines determines the number of unique input codes that can be decoded.
- The number of output lines determines the number of different decoded outputs.
8. Use of Decoder:
- Decoders are used in various applications such as address decoding in memory systems,
demultiplexing, data routing, etc.
- It can decode 3 binary bits (000 to 111) into one of the eight outputs based on the input.
- A demultiplexer performs the reverse operation, taking a single input and selecting one of many
output lines to route the input to.
11. Flip-Flops:
- Flip-flops are sequential circuits that can store one bit of information.
Circuit diagrams for each type of flip-flop can be quite complex and are better represented visually.