0% found this document useful (0 votes)
1 views3 pages

Digital Lab.4

Uploaded by

ramezturkey01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

Digital Lab.4

Uploaded by

ramezturkey01
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Pre-Lab 04

Digital systems lab – Section 4


Ramez Al-Masadeh – 20221102027
a. Fill the truth table below for the 2’s complement calculator

A B C D W X Y Z
0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1
0 0 1 0 1 1 1 0
0 0 1 1 1 1 0 1
0 1 0 0 1 1 0 0
0 1 0 1 1 0 1 1
0 1 1 0 1 0 1 0
0 1 1 1 1 0 0 1
1 0 0 0 1 0 0 0
1 0 0 1 0 1 1 1
1 0 1 0 0 1 1 0
1 0 1 1 0 1 0 1
1 1 0 0 0 1 0 0
1 1 0 1 0 0 1 1
1 1 1 0 0 0 1 0
1 1 1 1 0 0 0 1

b. From the circuit, derive the Boolean expression that describes each output (W, X, Y, and Z) in terms of
the inputs (A, B, C, and D).

W = A ^ (B + C + D)

X = B ^ (C + D)

Y= C^D

Z=D

2.A - Fill the truth table below for the 4-bit gray code to 4-bit binary convertor
A B C D W X Y Z
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1

b. From the circuit, derive the Boolean expression that describes each output (W, X, Y, and Z) in terms of
the inputs (A, B, C, and D).

W=A

X=A^B

Y = (A ^ B) ^ C

Z = [ (A^B) ^C] ^D

Note: ^ is the symbol of XOR

You might also like