PP1 91 42 PP2 Po a Structure of the circuit Bit of PPi cout
PP1 91 42 PP2 Po (a) Structure of the circuit Bit of PPi cout FA -cin cout . FA (b) A block in the top row (c) A block in the bottom two rows Figure 5.32 A4x 4 multiplier circuit er cirCUI
Solution
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity Multiplier is
port
(
m, q: in std_logic_vector(3 downto 0);
p: out std_logic_vector(7 downto 0)
);
end entity Multiplier;
architecture Behavioral of Multiplier is
begin
p <= std_logic_vector(unsigned(m) * unsigned(q));
end architecture Behavioral;
