[Solved] DigitalCircuit Online Assignment1- Digital2-VHDL

$25

File Name: DigitalCircuit_Online_Assignment1-_Digital2-VHDL.zip
File Size: 452.16 KB

SKU: [Solved] DigitalCircuit Online Assignment1- Digital2-VHDL Category: Tag:
5/5 - (1 vote)

Complete the following VHDL code to implement a multiplier using repeated addition method.

(e.g. if A=5 and B = 4 , then the product P can be calculated as 5 + 5 + 5 + 5 = 20 )

library IEEE; use IEEE.std_logic_1164.all; use IEEE.std_logic_unsigned.all; entity multiplier is port( CLK : in std_logic; A, B : in std_logic_vector(3 downto 0); P : out std_logic_vector(7 downto 0)); end multiplier; architecture behavioral of multiplier is

Your design should include the following pins:

  1. CLK: (positive edge trigger input clock)
  2. A: The first number (4 bits)
  3. B: The Second number (4 bits)
  4. P: The result (8 bits) Notes:
  • Use behavioral description
  • The calculation should be synchronous with the clock (the product should be calculated at the rising edge of the input clock)

You have to submit two files:

  1. A VHDL code to implement your Design.
  2. A testbench file to simulate and test your design:
    1. You have to cover all the possible cases for the input data (256 different cases)
    2. For each case you have to:
      • Select two values for A and B.
      • Wait for two clock cycles

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] DigitalCircuit Online Assignment1- Digital2-VHDL
$25