Create a truth table according to these specifications: There are 3 input bits, x2, x1, x0, and 2 output bits, s1, s0. The 2-bit output is the largest number of consecutive 1’s in the 3 input bits. (x2 is the most significant bit of the input, and s1 is the most significant bit of the output.) For example, input 000 gives output 00 (no 1’s), inputs 001 and 010 give output 01, input 011 gives output 10, etc.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section: Chapter Questions
Problem 12PP
icon
Related questions
Question

machine structures:

Create a truth table according to these specifications:

There are 3 input bits, x2, x1, x0, and 2 output bits, s1, s0. The 2-bit output is the largest

number of consecutive 1’s in the 3 input bits. (x2 is the most significant bit of the input,

and s1 is the most significant bit of the output.)

For example, input 000 gives output 00 (no 1’s), inputs 001 and 010 give output 01, input

011 gives output 10, etc.

Show all 8 rows of the table clearly

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage