Assignment-3 (1.2 & 1.4)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Assignment-3 (1.2 & 1.

4)

Course Title: Digital Electronics and Pulse Technique Lab


Course Code: CSE 224

Submitted To: Pranta Saha


Lecturer
School of Science, Engineering and Technology

East Delta University, Chittagong

Submitted By:
M.K. Ataul Karim
ID: 163001112
Submission Date: 7th July, 2020.
Exercise 1.2:
Design a logic circuit that has three inputs, A, B, and C, and whose output will be HIGH
only when a majority of the inputs are HIGH.
Answer:
From the problem statement the output should be 1(high), when two out of three or all
three inputs are 1(high). Other outputs should be 0 (low).
So the truth table should be:
A B C Output (f)
0 0 0 0

0 0 1 0

0 1 0 0

0 1 1 1

1 0 0 0
1 0 1 1

1 1 0 1

1 1 1 1

Here we found four cases where the outputs are HIGH. So the Boolean expression of this
statement is:
f= A’BC +AB’C +ABC’ +ABC
Minimization of this function is:
f= A’BC+ AB’C +ABC’ +ABC
= A’BC +ABC +AB’C +ABC +ABC’ +ABC (since A+A=A)
= BC (A’+A) +AC (B’+B) + AB (C’+C)
= BC +AC +AB (since A+A’=1)
= AB +BC +AC
Here the main circuit picture in DSCH software given below:

Timing diagram of this circuit is:


Minimize function circuit of main function in DSCH software is:

Timing diagram of this minimize circuit:


Exercise 1.4:
Assume, there is a laser beam in a Lab facility. A three switch-system could be
implemented to protect personnel from the laser beam, with a switch S1 on the door to
the lab, a switch S2 on the plastic covers over the beam path, and an over-ride S3 switch
for all these interlocks which a maintenance technician might make use of. To fire the
beam in normal use, we want S1 and S2 to be closed and S3 open. We choose this way
round because switches activated by doors generally close (complete an electrical circuit)
when a door is closed. When the switch is closed, the logic level is low. Now, implement
the logic and design the circuit.
Answer:
From the problem statement we understood that the laser beam should be fired when S1
and S2 are closed and S3 is open.
Here, logic level low means that the active state of a switch is a 0 or false status. So we
can say that, the laser is fired when S1 and S2 is false (0) and S3 is open (1).
We know that only NOR gate give the output false if and only if at least one input is true.
So if we use a NOR gate between S1 and S2 we can solve the problem of S1 and S2
switch. Now we have to use an AND gate because only AND gate makes the output true
if, and only if, all inputs are true.so the Boolean expression of this problem should be,
f= S3 (S1’ S2’)
= S3 (S1+S2)
= (S1+S2)’ S3
Truth table of this function:
S1 S2 S3 Output(f)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0
Circuit Diagram of this function is:

Minimization circuit Diagram of this function is:


Here the main circuit pictures in DSCH software given below:

Figure 1: When all inputs S1,S2,S3 are low(0) so the output is low.

Figure 2: When S1 and S2 is low (0) and S3 is high (1) so the output is high (1).
Timing diagram of this circuit:

Here the minimize circuit pictures in DSCH software given below:

Figure 1: When all inputs S1, S2, S3 are low(0) so the output is low.
Figure 2: When S1 and S2 is low (0) and S3 is high (1) so the output is high (1).

Timing diagram of minimize circuit:


Class work

Minimize function of this circuit:


f= (x1+x2) x3

Truth table of this function:


X1 X2 X3 Output(f)
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1
Here the circuit picture in DSCH software given below:

Timing diagram of this circuit:

You might also like