Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Homework 3(SME102 – Assignment 5) Solutions

1. Implement a binary subtractor. Draw out the truth table and design the
logic circuit.

A Half Subtractor:

A B D Bout
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
D= A ⨁ B
Bout= A ' B

A Full Subtractor:

Bin: borrow in Bout: borrow out

A B Bin D Bout
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
D= A ⨁ B ⨁ B ¿
'
Bout= A ( B +B ¿ ) + B B¿

2. Implement a T Flip-Flop using J-K Flip Flop.

3. Show how you would realize the logic function:

using only 2-input NAND gates. Draw a labeled circuit diagram.


4. Draw the timing diagram:

You might also like