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

Subversion Repositories md5

[/] [md5/] [trunk/] [es1005.v] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 verilogcor
/********************************************************************************
2
* Module     : es1005
3
* Description: MD5 Top level
4
*
5
********************************************************************************
6
*          Esencia Technology Proprietary and Confidential
7
*          All rights reserved (c) 2005 by Esencia Technolgy
8
********************************************************************************/
9
 
10
 
11
module es1005 (
12
 
13
         //Inputs
14
          clk,
15
          rst_n,
16
          DataVld,
17
          DataIn,
18
          DataFirst,
19
          DataLast,
20
          DataNumb,
21
          InitVec,
22
 
23
         //Outputs 
24
          MsgDgstVld,
25
          MsgDigest,
26
          DataBusy
27
      );
28
 
29
`include "md5_params.vh"
30
`include "ah_params.vh"
31
 
32
input                                clk;
33
input                                rst_n;
34
input                                DataVld; // Valid flag for Data or InitVec
35
input  [DATA_WIDTH - 1:0]            DataIn; // 32 bit DataIn or Initvect
36
input                                DataFirst; // First chunk
37
input                                DataLast; // Last chunk of data
38
input [5:0]                          DataNumb; // Number of valid bits in 
39
                                               // last chuck of data
40
input                                InitVec;  // Inidicate Init Vector
41
 
42
output                               MsgDgstVld;
43
output [DATA_WIDTH -1:0]             MsgDigest;
44
output                               DataBusy; // Inidicate core is busy
45
 
46
wire                                 MsgDgstVld;
47
wire                                 DataBusy;
48
wire [DATA_WIDTH -1:0]               MsgDigest;
49
wire                                 Md5DataVld;
50
wire  [DATA_WIDTH - 1:0]             Md5DataIn;
51
wire                                 Md5StateVld;
52
wire  [STATE_DWIDTH - 1:0]           Md5StateAIn;
53
wire  [STATE_DWIDTH - 1:0]           Md5StateBIn;
54
wire  [STATE_DWIDTH - 1:0]           Md5StateCIn;
55
wire  [STATE_DWIDTH - 1:0]           Md5StateDIn;
56
wire [5:0]                           RoundNum;
57
 
58
hash_core u_hash_core (
59
 
60
       .clk(clk),
61
       .rst_n(rst_n),
62
       .dataIn(Md5DataIn),
63
       .dataVld(Md5DataVld),
64
       .stateVld(Md5StateVld),
65
       .stateAIn(Md5StateAIn),
66
       .stateBIn(Md5StateBIn),
67
       .stateCIn(Md5StateCIn),
68
       .stateDIn(Md5StateDIn),
69
       .RoundNum(RoundNum),
70
       .msgDgstVld(MsgDgstVld),
71
       .msgDigest(MsgDigest)
72
    );
73
 
74
md5_padding u_md5_padding (
75
 
76
          .clk(clk),
77
          .rst_n(rst_n),
78
          .DataVld(DataVld),
79
          .DataIn(DataIn),
80
          .DataFirst(DataFirst),
81
          .DataLast(DataLast),
82
          .DataNumb(DataNumb),
83
          .InitVec(InitVec),
84
          .RoundNum(RoundNum),
85
          .DataBusy(DataBusy),
86
          .Md5DataIn(Md5DataIn),
87
          .Md5DataVld(Md5DataVld),
88
          .Md5StateAIn(Md5StateAIn),
89
          .Md5StateBIn(Md5StateBIn),
90
          .Md5StateCIn(Md5StateCIn),
91
          .Md5StateDIn(Md5StateDIn),
92
          .Md5StateVld(Md5StateVld)
93
      );
94
 
95
endmodule

powered by: WebSVN 2.1.0

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