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

Subversion Repositories mod_sim_exp

[/] [mod_sim_exp/] [trunk/] [rtl/] [vhdl/] [core/] [cell_1b.vhd] - Blame information for rev 4

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 JonasDC
----------------------------------------------------------------------  
2
----  cel_1b                                                      ---- 
3
----                                                              ---- 
4
----  This file is part of the                                    ----
5
----    Modular Simultaneous Exponentiation Core project          ---- 
6
----    http://www.opencores.org/cores/mod_sim_exp/               ---- 
7
----                                                              ---- 
8
----  Description                                                 ---- 
9
----    1 bit cell for use in the montgommery multiplier systolic ----
10
----    array                                                     ----
11
----                                                              ---- 
12
----  Dependencies:                                               ---- 
13
----    - cell_1bit_adder                                         ---- 
14
----    - cell_1bit_mux                                           ----
15
----                                                              ----
16
----  Authors:                                                    ----
17
----      - Geoffrey Ottoy, DraMCo research group                 ----
18
----      - Jonas De Craene, JonasDC@opencores.org                ---- 
19
----                                                              ---- 
20
---------------------------------------------------------------------- 
21
----                                                              ---- 
22
---- Copyright (C) 2011 DraMCo research group and OPENCORES.ORG   ---- 
23
----                                                              ---- 
24
---- This source file may be used and distributed without         ---- 
25
---- restriction provided that this copyright statement is not    ---- 
26
---- removed from the file and that any derivative work contains  ---- 
27
---- the original copyright notice and the associated disclaimer. ---- 
28
----                                                              ---- 
29
---- This source file is free software; you can redistribute it   ---- 
30
---- and/or modify it under the terms of the GNU Lesser General   ---- 
31
---- Public License as published by the Free Software Foundation; ---- 
32
---- either version 2.1 of the License, or (at your option) any   ---- 
33
---- later version.                                               ---- 
34
----                                                              ---- 
35
---- This source is distributed in the hope that it will be       ---- 
36
---- useful, but WITHOUT ANY WARRANTY; without even the implied   ---- 
37
---- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ---- 
38
---- PURPOSE.  See the GNU Lesser General Public License for more ---- 
39
---- details.                                                     ---- 
40
----                                                              ---- 
41
---- You should have received a copy of the GNU Lesser General    ---- 
42
---- Public License along with this source; if not, download it   ---- 
43
---- from http://www.opencores.org/lgpl.shtml                     ---- 
44
----                                                              ---- 
45
----------------------------------------------------------------------
46 2 JonasDC
 
47 3 JonasDC
library ieee;
48
use ieee.std_logic_1164.all;
49
use ieee.std_logic_arith.all;
50
use ieee.std_logic_unsigned.all;
51 2 JonasDC
 
52 3 JonasDC
library mod_sim_exp;
53
use mod_sim_exp.mod_sim_exp_pkg.all;
54
 
55
 
56 2 JonasDC
entity cell_1b is
57 3 JonasDC
  port (
58
    my   : in  std_logic;
59
    y    : in  std_logic;
60
    m    : in  std_logic;
61
    x    : in  std_logic;
62
    q    : in  std_logic;
63
    a    : in  std_logic;
64
    cin  : in  std_logic;
65
    cout : out std_logic;
66
    r    : out std_logic
67
  );
68 2 JonasDC
end cell_1b;
69
 
70 3 JonasDC
 
71 2 JonasDC
architecture Structural of cell_1b is
72 3 JonasDC
  signal mux2adder : std_logic;
73 2 JonasDC
begin
74
 
75 3 JonasDC
  cell_mux : cell_1b_mux
76
  port map(
77
    my     => my,
78
    y      => y,
79
    m      => m,
80
    x      => x,
81
    q      => q,
82
    result => mux2adder
83
  );
84 2 JonasDC
 
85 3 JonasDC
  cell_adder : cell_1b_adder
86
  port map(
87
    a          => a,
88
    mux_result => mux2adder,
89
    cin        => cin,
90
    cout       => cout,
91
    r          => r
92
  );
93
 
94
end Structural;

powered by: WebSVN 2.1.0

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