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

Subversion Repositories cryptosorter

[/] [cryptosorter/] [trunk/] [memocodeDesignContest2008/] [xup/] [aesCore/] [aestester.v] - Blame information for rev 6

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 kfleming
/*
2
Copyright (c) 2007 MIT
3
 
4
Permission is hereby granted, free of charge, to any person
5
obtaining a copy of this software and associated documentation
6
files (the "Software"), to deal in the Software without
7
restriction, including without limitation the rights to use,
8
copy, modify, merge, publish, distribute, sublicense, and/or sell
9
copies of the Software, and to permit persons to whom the
10
Software is furnished to do so, subject to the following
11
conditions:
12
 
13
The above copyright notice and this permission notice shall be
14
included in all copies or substantial portions of the Software.
15
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
23
OTHER DEALINGS IN THE SOFTWARE.
24
 
25
Author: Nirav Dave
26
*/
27
 
28
module aestester(CLK,
29
                    fastClock,
30
                    fastReset,
31
                    RST,
32
 
33
                    plbMasterWires_mABus,
34
 
35
                    plbMasterWires_mBE,
36
 
37
                    plbMasterWires_mRNW,
38
 
39
                    plbMasterWires_mAbort,
40
 
41
                    plbMasterWires_mBusLock,
42
 
43
                    plbMasterWires_mCompress,
44
 
45
                    plbMasterWires_mGuarded,
46
 
47
                    plbMasterWires_mLockErr,
48
 
49
                    plbMasterWires_mMSize,
50
 
51
                    plbMasterWires_mOrdered,
52
 
53
                    plbMasterWires_mPriority,
54
 
55
                    plbMasterWires_mRdBurst,
56
 
57
                    plbMasterWires_mRequest,
58
 
59
                    plbMasterWires_mSize,
60
 
61
                    plbMasterWires_mType,
62
 
63
                    plbMasterWires_mWrBurst,
64
 
65
                    plbMasterWires_mWrDBus,
66
 
67
                    plbMasterWires_mRst,
68
                    plbMasterWires_mAddrAck,
69
                    plbMasterWires_mBusy,
70
                    plbMasterWires_mErr,
71
                    plbMasterWires_mRdBTerm,
72
                    plbMasterWires_mRdDAck,
73
                    plbMasterWires_mRdDBus,
74
                    plbMasterWires_mRdWdAddr,
75
                    plbMasterWires_mRearbitrate,
76
                    plbMasterWires_mWrBTerm,
77
                    plbMasterWires_mWrDAck,
78
                    plbMasterWires_mSSize,
79
                    plbMasterWires_sMErr,
80
                    plbMasterWires_sMBusy,
81
                    bramInitiatorWires_bramRST,
82
                    bramInitiatorWires_bramAddr,
83
                    bramInitiatorWires_bramDout,
84
                    bramInitiatorWires_bramWEN,
85
                    bramInitiatorWires_bramEN,
86
                    bramInitiatorWires_bramCLK,
87
                    bramInitiatorWires_bramDin);
88
  input  CLK;
89
  input  RST;
90
  input fastClock;
91
  input fastReset;
92
 
93
  // value method plbMasterWires_mABus
94
  output [31 : 0] plbMasterWires_mABus;
95
 
96
  // value method plbMasterWires_mBE
97
  output [7 : 0] plbMasterWires_mBE;
98
 
99
  // value method plbMasterWires_mRNW
100
  output plbMasterWires_mRNW;
101
 
102
  // value method plbMasterWires_mAbort
103
  output plbMasterWires_mAbort;
104
 
105
  // value method plbMasterWires_mBusLock
106
  output plbMasterWires_mBusLock;
107
 
108
  // value method plbMasterWires_mCompress
109
  output plbMasterWires_mCompress;
110
 
111
  // value method plbMasterWires_mGuarded
112
  output plbMasterWires_mGuarded;
113
 
114
  // value method plbMasterWires_mLockErr
115
  output plbMasterWires_mLockErr;
116
 
117
  // value method plbMasterWires_mMSize
118
  output [1 : 0] plbMasterWires_mMSize;
119
 
120
  // value method plbMasterWires_mOrdered
121
  output plbMasterWires_mOrdered;
122
 
123
  // value method plbMasterWires_mPriority
124
  output [1 : 0] plbMasterWires_mPriority;
125
 
126
  // value method plbMasterWires_mRdBurst
127
  output plbMasterWires_mRdBurst;
128
 
129
  // value method plbMasterWires_mRequest
130
  output plbMasterWires_mRequest;
131
 
132
  // value method plbMasterWires_mSize
133
  output [3 : 0] plbMasterWires_mSize;
134
 
135
  // value method plbMasterWires_mType
136
  output [2 : 0] plbMasterWires_mType;
137
 
138
  // value method plbMasterWires_mWrBurst
139
  output plbMasterWires_mWrBurst;
140
 
141
  // value method plbMasterWires_mWrDBus
142
  output [63 : 0] plbMasterWires_mWrDBus;
143
 
144
  // action method plbMasterWires_plbIN
145
  input  plbMasterWires_mRst;
146
  input  plbMasterWires_mAddrAck;
147
  input  plbMasterWires_mBusy;
148
  input  plbMasterWires_mErr;
149
  input  plbMasterWires_mRdBTerm;
150
  input  plbMasterWires_mRdDAck;
151
  input  [63 : 0] plbMasterWires_mRdDBus;
152
  input  [2 : 0] plbMasterWires_mRdWdAddr;
153
  input  plbMasterWires_mRearbitrate;
154
  input  plbMasterWires_mWrBTerm;
155
  input  plbMasterWires_mWrDAck;
156
  input  plbMasterWires_mSSize;
157
  input  plbMasterWires_sMErr;
158
  input  plbMasterWires_sMBusy;
159
 
160
  // action method bramTargetWires_bramIN
161
  output  [31 : 0] bramInitiatorWires_bramAddr;
162
  output  [31 : 0] bramInitiatorWires_bramDout;
163
  output  [3 : 0] bramInitiatorWires_bramWEN;
164
  output  bramInitiatorWires_bramEN;
165
  output  bramInitiatorWires_bramCLK;
166
  output  bramInitiatorWires_bramRST;
167
 
168
  // value method bramTargetWires_bramOUT
169
  input [31 : 0] bramInitiatorWires_bramDin;
170
 
171
  wire [13:0] bramInitiatorWires_bramAddr_our;
172
  assign bramInitiatorWires_bramAddr = {16'h00000,bramInitiatorWires_bramAddr_our, 2'b00};
173
  // signals for module outputs
174
  wire [31 : 0] bramTargetWires_dinBRAM,plbMasterWires_mABus;
175
 
176
  wire [63 : 0]  plbMasterWires_mWrDBus;
177
  wire [7 : 0] plbMasterWires_mBE;
178
  wire [3 : 0] plbMasterWires_mSize;
179
  wire [2 : 0] plbMasterWires_mType;
180
  wire [1 : 0] plbMasterWires_mMSize, plbMasterWires_mPriority;
181
  wire plbMasterWires_mAbort,
182
       plbMasterWires_mBusLock,
183
       plbMasterWires_mCompress,
184
       plbMasterWires_mGuarded,
185
       plbMasterWires_mLockErr,
186
       plbMasterWires_mOrdered,
187
       plbMasterWires_mRNW,
188
       plbMasterWires_mRdBurst,
189
       plbMasterWires_mRequest,
190
       plbMasterWires_mWrBurst;
191
 
192
wire RST_N;
193
assign RST_N = ~RST;
194
wire fastReset_N;
195
assign fastReset_N = ~fastReset;
196
 
197
mkAESTester  m(
198
                .CLK(CLK),
199
                .RST_N(RST_N),
200
                .CLK_fastClock(fastClock),
201
                .RST_N_fastReset(fastReset_N),
202
                .plbMasterWires_mABus(plbMasterWires_mABus),
203
                .plbMasterWires_mBE(plbMasterWires_mBE),
204
                .plbMasterWires_mRNW(plbMasterWires_mRNW),
205
                .plbMasterWires_mAbort(plbMasterWires_mAbort),
206
                .plbMasterWires_mBusLock(plbMasterWires_mBusLock),
207
                .plbMasterWires_mCompress(plbMasterWires_mCompress),
208
                .plbMasterWires_mGuarded(plbMasterWires_mGuarded),
209
                .plbMasterWires_mLockErr(plbMasterWires_mLockErr),
210
                .plbMasterWires_mMSize(plbMasterWires_mMSize),
211
                .plbMasterWires_mOrdered(plbMasterWires_mOrdered),
212
                .plbMasterWires_mPriority(plbMasterWires_mPriority),
213
                .plbMasterWires_mRdBurst(plbMasterWires_mRdBurst),
214
                .plbMasterWires_mRequest(plbMasterWires_mRequest),
215
                .plbMasterWires_mSize(plbMasterWires_mSize),
216
                .plbMasterWires_mType(plbMasterWires_mType),
217
                .plbMasterWires_mWrBurst(plbMasterWires_mWrBurst),
218
                .plbMasterWires_mWrDBus(plbMasterWires_mWrDBus),
219
                .plbMasterWires_mRst(plbMasterWires_mRst),
220
                .plbMasterWires_mAddrAck(plbMasterWires_mAddrAck),
221
                .plbMasterWires_mBusy(plbMasterWires_mBusy),
222
                .plbMasterWires_mErr(plbMasterWires_mErr),
223
                .plbMasterWires_mRdBTerm(plbMasterWires_mRdBTerm),
224
                .plbMasterWires_mRdDAck(plbMasterWires_mRdDAck),
225
                .plbMasterWires_mRdDBus(plbMasterWires_mRdDBus),
226
                .plbMasterWires_mRdWdAddr(plbMasterWires_mRdWdAddr),
227
                .plbMasterWires_mRearbitrate(plbMasterWires_mRearbitrate),
228
                .plbMasterWires_mWrBTerm(plbMasterWires_mWrBTerm),
229
                .plbMasterWires_mWrDAck(plbMasterWires_mWrDAck),
230
                .plbMasterWires_mSSize(plbMasterWires_mSSize),
231
                .plbMasterWires_sMErr(plbMasterWires_sMErr),
232
                .plbMasterWires_sMBusy(plbMasterWires_sMBusy),
233
                .bramInitiatorWires_bramAddr(bramInitiatorWires_bramAddr_our),
234
                .bramInitiatorWires_bramDout(bramInitiatorWires_bramDout),
235
                .bramInitiatorWires_bramWEN(bramInitiatorWires_bramWEN),
236
                .bramInitiatorWires_bramEN(bramInitiatorWires_bramEN),
237
                .bramInitiatorWires_bramCLK(bramInitiatorWires_bramCLK),
238
                .bramInitiatorWires_bramRST(bramInitiatorWires_bramRST),
239
                .bramInitiatorWires_din(bramInitiatorWires_bramDin)
240
                );
241
 
242
endmodule

powered by: WebSVN 2.1.0

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