Question

FPGA (Interconnected Adder Modules) In this lab you will implement adder circuits using data flow modelling....

FPGA (Interconnected Adder Modules)

In this lab you will implement adder circuits using data flow modelling. You will also create 3-bit adder by employing interconnected 1-bit full adders.

  1. Data flow modelling of a 1-bit full adder circuit.
  2. Data flow modelling of a 3-bit adder circuit. There will be 7 inputs (X2, X1, X0, Y2, Y1, YO, Cin) - please put them in that order - Switch 6 will represent X2 and Switch 0 will be the Cin. There should be 4 outputs (Cout, S2, S1, SO) LED3 will represent Cout and LED0 will represent SO. For this circuit you should employ instances of the data flow version of 1-bit full adder module above. Your inputs X and Y should be 3-bit buses. Your Sum outputs should be a 4-bit bus.
  3. Deliverable: Get a printout of your Verilog source code for the 3-bit adder circuit and the 1-bit full adder. Demo your 3-bit full adder circuit to your lab instructor and have your lab instructor initial your printout.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1 Bit full adder:

Data flow modeling implies a boolean equation for the out puts with respective to inputs.

Boolean equation is obtained from the truth table.

Truth table for 1 bit full adder, let a,b be two input, for full adder c will be third input and s,Co will be two outputs.

a b c s Co

0 0 0 0 0

0 0 1 1 0

0 1 0 1 0

0 1 1 0 1

1 0 0   1 0

1 0 1 0 1

1 1 0 0 1

1 1 1   1 1

Boolean equation using K map : s = a^b^c

Co = (a&b)|(b&c)|(c&a)

Со

3 bit full adder using 1 bit full adder:

X2 X1 X0

   + Y2 Y1 Y0

S3 S2 S1 S0

We implement 3 bit fulladder similar to the general addition using 1 bit full adder.

y2 x2 yo xD Cin co s S3 S2

Carry out of 1st Fulladder is connected to Carry in of 2nd fulladder module. similarly others and final Cout is S3.

Verilog code:

module FA_1bit ( input a,b,c, output s,Co);

assign s = a^b^c;

assign Co = (a&b)|(b&c)|(c&a);

end module

module FA_3bit ( input X[0], X[1], X[2], Y[0], Y[1], Y[2], Cin, output [3:0]S );

wire L,M;

FA_1bit FA1 ( X[0], Y[0], Cin, S[0], L);   

FA_1bit FA2 ( X[1], Y[1], L, S[1], M); // module instantiation positional.

FA_1bit FA3 ( X[2], Y[2], M, S[2], S[3]); // FA_1bit is module we used it multiple times to make  FA_3bit.

end module

7 switches are 7inputs connected in serial order. S output is connected to 4 LEDs.

IF like the answer,   PLZ UP VOTE

Add a comment
Know the answer?
Add Answer to:
FPGA (Interconnected Adder Modules) In this lab you will implement adder circuits using data flow modelling....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • number 4 and 5 please! PROBLEM STATEMENT A logic circuit is needed to add multi-bit binary...

    number 4 and 5 please! PROBLEM STATEMENT A logic circuit is needed to add multi-bit binary numbers. A 2-level circuit that would add two four-bit numbers would have 9 inputs and five outputs. Although a 2-level SOP or POS circuit theoretically would be very fast, it has numerous drawbacks that make it impractical. The design would be very complex in terms of the number of logic gates. The number of inputs for each gate would challenge target technologies. Testing would...

  • A full-adder is a combinational circuit (memory-less) that forms the arithmetic sum of two input bits...

    A full-adder is a combinational circuit (memory-less) that forms the arithmetic sum of two input bits (say a and b) and a carry in (Cin, so three input bits total). The full-adder provides two outputs in the form of the (S)um and the carry out (Cout). The input bits a and b represent the terms to be added, but the full-adder needs to also consider the carry in bit, too. Construct a truth table for the Full-Adder Construct a K-Map...

  • Building and testing basic combinational circuits using Verilog HDL Description: Build and test the following circuits using gate-level modeling in Verilog HDL 1.3-input majority function 2.Condition...

    Building and testing basic combinational circuits using Verilog HDL Description: Build and test the following circuits using gate-level modeling in Verilog HDL 1.3-input majority function 2.Conditional inverter (see the table below: x - control input, y -data input). Do NOT use XOR gates for the implementation. Output 3. Two-input multiplexer (see the table below: x.y -data inputs, z- control input) Output 4. 1-bit half adder. 5. 1-bit full adder by cascading two half adders 6.1-bit full adder directly (as in...

  • Building and testing basic combinational circuits using Verilog HDL Description: Build and test t...

    Building and testing basic combinational circuits using Verilog HDL Description: Build and test the following circuits using gate-level modeling in Verilog HDL. 1. 3-input majority function. 2. Conditional inverter (see the table below: x - control input, y - data input). Do NOT use XOR gates for the implementation.    x y Output 0   y 1   y' 3. Two-input multiplexer (see the table below: x,y - data inputs, z - control input).     z Output 0 x 1 y 4. 1-bit half...

  • QUESTION 1 Suppose that an engineer wants to create a three bit adder using the method...

    QUESTION 1 Suppose that an engineer wants to create a three bit adder using the method described in Lecture 25. As part of the design process, the engineer creates the following building block component: a b Cin Full Adder Cout s In order to create the three bit adder, each of the three building blocks will need to be correctly connected together. In the circuit below, each of the possible connection points has been labeled with a number: A[2] 2...

  • You are to design a circuit that calculates the Hamming distance between two 5-bit numbers. It...

    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...

  • 6 6. [3 pts] Read the instructions for task 1 of the lab. Draw a block...

    6 6. [3 pts] Read the instructions for task 1 of the lab. Draw a block diagram/schematic of the RCA showing the connections between the four full adders. Your RCA should have the following overall inputs/outputs: two 4-bit inputs (you can call them A and B), one -bit carry- in input, one 4-bit sum output, and one 1-bit carry-out output. Make this block diagram/schematic large enough to add additional detail: (a) Give each full adder a unique name (b) Label...

  • DOING NUMBER 7 of VHDL lab "write your own full-adder in VHDL " is my only...

    DOING NUMBER 7 of VHDL lab "write your own full-adder in VHDL " is my only request. Do the rest, if you have time. To verify and apply techniques to build half adders and full adder to perform additions using gates. For each part of the procedure, show the number of that section and include a logic diagram of the circuit, truth table for the circuit, and any other necessary information. Adder Implementation 1. Construct a binary half-adder and record...

  • Logic Circuits Lab Project ELEG 3021 2018 Fall Obiective: Given a practical problem, using the knowledge...

    Logic Circuits Lab Project ELEG 3021 2018 Fall Obiective: Given a practical problem, using the knowledge learned in Logic Circuit class and practical skills gained in the Logic Circuit Lab, develop and conduct appropriate experimentation, analyze and interpret data, and use engineering judgment to draw conclusions. Problem: Given any two unsigned 4-bit numbers A (AsA2AiAo) and B (B;B B Bo), please compare the magnitude of this two numbers and pass the larger one of the two to the output Y...

  • Objective: In this lab, we will learn how we can design sequential circuits using behavioral mode...

    Just need the code for the random counter,Thanks Objective: In this lab, we will learn how we can design sequential circuits using behavioral modelling, and implementing the design in FPGA. Problem: Design a random counter with the following counting sequence: Counting Sequence: 04 2 9 168573 Design Description: The counter has one clock (Clock), one reset (Reset), and one move left or right control signal (L/R) as input. The counter also has one 4bit output O and one 2bit output...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT