Question
Given a logic module A that compares the magnitudes of two 3-bit numbers, X 3 = x 1 x 2 x 3 and Y 3
Given a logic module A that compares the magnitudes of two 3-bit numbers, X3 = x1x2x3 and Y3 = y1y2y3, where x3 and y3 are the least significant bits. Module A has two outputs G3 and S3, such that: G3 = 1 iffX3 > Y3; S3 = 1 iff X3 3; and G3 = S3 = 0 iff X3 = Y3.
(a) Design a logic unit B such that together with module A it will serve as a comparator for two four-bit numbers, X4 = x1x2x3x4 and Y4 = y1y2y3y4, as shown in Fig. P5.9. Find expressions for G4 and S4 in terms of the inputs to unit B and show a realization of these expressions using only NAND gates.
(b) Show a realization of module A by means of only units of type B. Assume that the constants 0 and 1 are available.
Fig. P5.9Step 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