OpenCores
URL https://opencores.org/ocsvn/cryptography/cryptography/trunk

Subversion Repositories cryptography

[/] [cryptography/] [trunk/] [encryption/] [wallace_structure.vhd] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 marcus.erl
----------------------------------------------------------------------------------
2
-- Company: 
3
-- Engineer: 
4
-- 
5
-- Create Date:    19:03:30 10/09/2007 
6
-- Design Name: 
7
-- Module Name:    wallace_structure - Behavioral 
8
-- Project Name: 
9
-- Target Devices: 
10
-- Tool versions: 
11
-- Description: 
12
--
13
-- Dependencies: 
14
--
15
-- Revision: 
16
-- Revision 0.01 - File Created
17
-- Additional Comments: 
18
--
19
----------------------------------------------------------------------------------
20
library IEEE;
21
use IEEE.STD_LOGIC_1164.ALL;
22
use IEEE.STD_LOGIC_ARITH.ALL;
23
use IEEE.STD_LOGIC_UNSIGNED.ALL;
24
 
25
 
26
 
27
entity wallace_structure is
28
 
29
port(P1,P2,P3,P4,P5,P6,P7,P8,P9 :in std_logic_vector( 15 downto 0);
30
       product                  :out std_logic_vector( 15 downto 0));
31
 
32
 
33
 
34
end wallace_structure;
35
 
36
architecture Behavioral of wallace_structure is
37
signal s1,s2 :std_logic_vector ( 15 downto 0);
38
signal c_out :std_logic;
39
component carrysave_adder is
40
port (p1,p2,p3,p4,p5,p6,p7,p8,p9 :in std_logic_vector ( 15 downto 0);
41
       s1 : out std_logic_vector (15 downto 0);
42
       c1 :out std_logic_vector (15 downto 0));
43
end component;
44
 
45
component carrylook_ahead2 is
46
port(a1,b1 : in std_logic_vector(15 downto 0);
47
      s1   :out std_logic_vector(15 downto 0);
48
      cin   :in std_logic);
49
 
50
end component;
51
 
52
 
53
 
54
 
55
begin
56
 
57
ca1:carrysave_adder port map(P1,P2,P3,P4,P5,P6,P7,P8,P9,s1,s2 );
58
ca2:carrylook_ahead2 port map(s1,s2,product,'0');
59
 
60
 
61
 
62
 
63
end Behavioral;
64
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.