Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library ieee;
- use ieee.std_logic_1164.all;
- use ieee.std_logic_arith.all;
- use ieee.std_logic_unsigned.all;
- entity multiplier is
- port(
- clk : in std_logic;
- a : in std_logic_vector(15 downto 0);
- b : in std_logic_vector(15 downto 0);
- p : out std_logic_vector(31 downto 0)
- -- ready : out std_logic;
- );
- end multiplier;
- architecture IMP of multiplier is
- begin
- process (clk)
- begin
- if clk'event and clk = '1' then
- p <= a * b;
- -- ready <= '1';
- -- else
- -- ready <= '0';
- end if;
- end process;
- end IMP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement