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

Spring 2023 - CS302P - 2 - BC210407489

The document is an assignment question from a Digital Logic Design practical course. It provides a 4-bit magnitude comparator truth table and asks the student to simplify the truth table. The truth table is for a circuit that compares two 4-bit binary numbers, A and B, and outputs a high signal if A is greater than, equal to, or less than B. It gives the simplified truth table with 9 entries that concisely represent the logic to compare each bit pair from most to least significant.

Uploaded by

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

Spring 2023 - CS302P - 2 - BC210407489

The document is an assignment question from a Digital Logic Design practical course. It provides a 4-bit magnitude comparator truth table and asks the student to simplify the truth table. The truth table is for a circuit that compares two 4-bit binary numbers, A and B, and outputs a high signal if A is greater than, equal to, or less than B. It gives the simplified truth table with 9 entries that concisely represent the logic to compare each bit pair from most to least significant.

Uploaded by

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

Total marks = 20

Digital Logic Design Practical


(CS302P) Deadline
Assignment # 02 18 of July, 2023
th

Spring 2023

Name: Isha Liaqat


Student ID: Bc210407489

Question Statement Marks (20)


You are provided with a 4-Bit Magnitude Comparator through a truth table:

A3 A2 A1 A0 B3 B2 B1 B0 A>B A=B A<B


0 0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 1
0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 0 1 1 0 0 1
0 0 0 0 0 1 0 0 0 0 1
0 0 0 0 0 1 0 1 0 0 1
0 0 0 0 0 1 1 0 0 0 1
0 0 0 0 0 1 1 1 0 0 1
0 0 0 0 1 0 0 0 0 0 1
0 0 0 0 1 0 0 1 0 0 1
0 0 0 0 1 0 1 0 0 0 1
0 0 0 0 1 0 1 1 0 0 1
0 0 0 0 1 1 0 0 0 0 1
0 0 0 0 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