Khadija Kennou 229J85 Ex1-4
Khadija Kennou 229J85 Ex1-4
Khadija Kennou 229J85 Ex1-4
Experiment 1
1. Logic function test of "NAND gate"
Difference (D):
D=A⊕B (XOR gate)
Borrow (B):
B= A⋅B (AND gate and NOT gate)
Logic Circuit: Draw the logic circuit for the half subtracter
using XOR and AND gates.
3. Design a Full Subtracter (Optional Device)
Logical Relations:
Difference (D):
D=A⊕B⊕B in(using XOR gates)
Borrow Out (B_{out}):
𝐵𝑜𝑢𝑡=(𝐴‾⋅𝐵)+(𝐴⊕𝐵‾⋅𝐵𝑖𝑛)(using AND, OR, and NOT gates)
A B B_in D B_out
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Experiment 3 (design): Design of combinatorial logic circuit
1. Write the design process according to the design content (list,
write, draw the logic diagram).
1.1 Determine Input and Output Variables
Inputs: A, B, C_in (Carry-in)
Outputs: S (Sum), C_out (Carry-out)
1.2 Establish the Truth Table
A B C_in S (Sum) C_out (Carry Out)
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
1.3 and 1.4
2.