DLD Lab Report 08
DLD Lab Report 08
DLD Lab Report 08
Lab report 08
Design and Implementation of 𝒏 − 𝒃𝒊𝒕 Binary Multiplier on
FPGA
1.1-Objective:
In this lab, we will seek how to design 𝑛 − 𝑏𝑖𝑡 binary multiplier and its implementation on
FPGA.
1.2Pre-Lab:
Background Theory:
Binary Multiplier:
Binary multiplier is used to multiply two binary numbers. Multiplication of binary numbers is
performed in the same way as multiplication of decimal numbers. It is build using binary
adders. The common multiplication method is “add and shift” algorithm. If the multiplicand
is 𝑁 − 𝑏𝑖𝑡𝑠 and the Multiplier is 𝑀 − 𝑏𝑖𝑡𝑠 then there is 𝑁 × 𝑀 partial product. AND gates
are used to generate the Partial Products. Note that in binary multiplication, the processes
involve shifting the multiplicand and adding the shifted multiplicand or zero. Each bit of the
multiplier determines whether a 0 is added or a shifter version of the multiplicand (0 implies
zero added, 1 implies shifted multiplicand added). Thus, we can infer a basic shift-and-add
algorithm to implement unsigned binary multiplication.
1.2.5-Test bench:
1.2.7-Output:
1.3.3-Implementation on Hardware:
1. Take ICs and fix it in bread board.
2. Connect it with the help of figure :1.3.2.
3. Connect the output of 7483 ICs with lights.
4. Press the start button and run the circuit.
Page 5 of 9
1.4-In-Lab Task 2:
1.4.1-Implement 𝟒 − 𝒃𝒊𝒕 by 𝟑 − 𝒃𝒊𝒕 binary multiplier on FPGA
1. Using Structural model, write a Verilog description of 4 − 𝑏𝑖𝑡 by 3 − 𝑏𝑖𝑡 multiplier.
a. Use 4 − 𝑏𝑖𝑡 Adder module made in Lab7.
2. Site all the inputs 𝐴 and 𝐵 on slide switches and the outputs are observed on LEDs of
Nexys2 board.
3. Implement the design on FPGA and test the behaviour of designed binary Multiplier by
choosing different binary numbers.
Answer:
Code for multiplier 4 by 3: -
1.4.3-Test bench:
1.4.5-Output: