Question: help please Question 4 (3 pt.) Build a circuit that takes a 3-bit numbero as an input, and provides one output indicating whether the number

help please

help please Question 4 (3 pt.) Build a circuit that takes a

Question 4 (3 pt.) Build a circuit that takes a 3-bit numbero as an input, and provides one output indicating whether the number of bits equal to 1 in the input is even (0) or odd (1). For example, if the input is 110, there are 2 bits set to 1; since 2 is an even number, the output should be 0. If the input is 111, there are 3 bits set to 1; since 3 is an odd number, the output should be 1. a) Write a truth table that represents the behavior of this circuit. b) Obtain a Boolean function F for the output of the circuit. Infer this Boolean function from the truth table in a canonical form based on a sum of minterms. Then simplify the Boolean function using Boolean algebra. c) Draw a gate diagram for this circuit, clearly labeling its inputs and outputs. Question 5 (5 pt.) Design a combinational circuit that detects an error in the representation of a decimal digit in BCD. Arn error occurs when the inputs contain any one of the unused bit combinations in the BCD code a) Derive the truth table b) Use K-Maps to minimize the logic. c) Derive the Boolean expression. d) Draw the logic diagram e) Write a Verilog module for the circuit using a structural model. Write an appropriate test-bench for the circuit that shows the correct behavior of your design for at least two valid combinations and two invalid combinations of the inputs. Simulate your code with Icarus Verilog and show the simulator's output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!