Forum Discussion
Altera_Forum
Honored Contributor
13 years ago
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_UNSIGNED.all;
entity UNSIGNED_MULTIPLIER6x6 is
port (
inputA, inputB : in unsigned(5 downto 0);
multResult: out unsigned(11 downto 0);
isEven: out STD_LOGIC
);
end entity;
architecture rtl of UNSIGNED_MULTIPLIER6x6 is
signal Result: unsigned(11 downto 0);
begin
Result <= inputA*inputB;
multResult <= Result;
isEven <= not Result(0);
end RTL ;