Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / issue50 / idct.d / mul_577.vhd @ 2051e520

History | View | Annotate | Download (503 Bytes)

1 2051e520 Arnaud Dieumegard
library ieee;
2
use ieee.std_logic_1164.all;
3
4
library ieee;
5
use ieee.numeric_std.all;
6
7
entity mul_577 is
8
	port (
9
		result : out std_logic_vector(30 downto 0);
10
		in_a : in  std_logic_vector(30 downto 0);
11
		in_b : in  std_logic_vector(14 downto 0)
12
	);
13
end mul_577;
14
15
architecture augh of mul_577 is
16
17
	signal tmp_res : signed(45 downto 0);
18
19
begin
20
21
	-- The actual multiplication
22
	tmp_res <= signed(in_a) * signed(in_b);
23
24
	-- Set the output
25
	result <= std_logic_vector(tmp_res(30 downto 0));
26
27
end architecture;