Question
Design an equality comparator circuit for 4-bit binary numbers. We can define functionality of the equality comparator with logic variable E as following, where A
Design an equality comparator circuit for 4-bit binary numbers. We can define functionality of the equality comparator with logic variable E as following,
where A = a3a2a1a0 and B = b3b2b1b0 are the two 4-bit binary inputs.
Then, extend your design to build a magnitude comparator for 4-bit unsigned binary numbers, A and B. Find the three outputs of the magnitude comparator as,
Then again extend your design to build a comparator for 4-bit signed binary numbers in 2s complement system, C = c3c2c1c0 and D = d3d2d1d0 . For this signed comparator, find the three outputs as,
Note that, you can use the magnitude comparator in second part to design the signed comparator.
0 otherwise, 11 ifA=B. 0 otherwise. 1 ifAB, 0 otherwise. 0 otherwise. 1 if C D, 0 otherwise. cD0 0 otherwise. Gpc F( 1 if CStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started