

number 4 and 5 please! PROBLEM STATEMENT A logic circuit is needed to add multi-bit binary...
You are to design a circuit that calculates the Hamming distance between two 5-bit numbers. It takes two 5-bit binary numbers A4 A3 A2 A1 A0 and B4 B3B 2B1 B0 as inputs and returns the number of bits that are different between the two numbers as the 3-bit binary output O2 O1 O0. For example: *If the two input numbers were 10111 and 00001 then the output would be 011 as there are 3 bits different between them. *If...
Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three outputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.
Can you please show the work!plzz
1. A 2-bit adder may be constructed by connection two full adders (i.e. 1-bit adders) or directly. For the latter, suppose the inputs (corresponding to the operands A and B) are A, Ao, B1 and Bo; and the outputs are So and S, for the 2-bit sum, S, and a carry-out, C . Give a truth table for the "direct" adder » From the truth table, derive a logic expression in sum-of-products form Give...
Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three ouputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.
Design 3- to – 8 decoder using logic gates with enabler, AND, NOT, etc..? Design 3- to – 8 decoder using only two 2-to-4 decoders graphical blocks, use enabler input? a) Design a 3-bit ripple-carry adder using AND, OR, NOT, EXOR, etc.; include carry-in (Cin), carry-out (Cout) and overflow input/output signals? Note: Design for 1-bit first, then extrapolate to 4-bit using 1-bit full-adder graphical block. Design a 3-bit ripple-carry subtractor using AND, OR, NOT, EXOR, etc..; include carry-in (Cin), carry-out...
In quartus prime Implement a 4-bit adder/subtractor using structural VHDL. The circuit will have two 4-bit data inputs (A and B), a control line (add /sub), a 4-bit sum output (S), a carry-out bit (Cout), and an overflow flag. You need two VHDL files (fulladd.vhd) and (hybrid.vhd) to implement the design. VHDL code, fulladd.vhd, will implement a single-bit full adder. The VHDL file, hybrid.vhd, will create four instances of the single-bit full adder. Four XOR gates will be needed to...
4. Design a 4-bit Adder / Subtractor. Follow the steps given below. (a) Write the VHDL code for a 1-bit Full Adder. The VHDL code must include an entity and an architecture. (b) Draw the circuit diagram for a 4-bit Adder / Subtractor. The circuit diagram may include the following logic elements: 1-bit Full Adders (shown as a block with inputs and outputs) Any 2-input logic gates Multiplexers Do not draw the logic circuit for the 1-bit Full Adder.
Given 4-bit ripple carry adders and logic gates (AND, OR, NOT, XOR, XNOR, NAND, NOR). Construct a 12-bit adder/subtractor from the provided components. An input S will determine the type of operation. If S=0, it should add, otherwise subtract. DO THIS PLEASE. Show how you can simplify the circuit if you knew the circuit would always be adding 3. Start with the 4-bit ripple carry adder, set the value on input ‘B’ to the constant 3, and then reduce the...
a full-adder circuit is used to add 2 bits A and B and the carry (Cin) that resulted from the addition of the previous 2 bits. It then produces a SUM S and a carry out (Cout) that would be added to the more significant bits. Generate a truth table that has inputs A, B and Cin and the 2 outputs S and Cout. Find the logical function from the truth table and simplify it, if possible. Implement the function...
8/8pts Question 1 Using block diagram of 1-bit full adders create a 3-bit parallel adder (show all the connections between the adders and proper outputs Logic Q1jpg 4/9 pts Question 2 Consider your design, if the inputs to be added were 100, and 111, what will be the resulting sum output (Express the resulting sum in binary and base 8 using the least number of bits)? What will be the carry output (Express it only in binary using the least...