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

Subversion Repositories systemcaes

[/] [systemcaes/] [trunk/] [bench/] [systemc/] [aes128lowarea/] [stimulus.h] - Blame information for rev 28

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 jcastillo
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  Random testbench declation                                  ////
4
////                                                              ////
5
////  This file is part of the SystemC AES                        ////
6
////                                                              ////
7
////  Description:                                                ////
8
////  Declare ramdom testbench class and data                     ////
9
////                                                              ////
10
////  To Do:                                                      ////
11
////   - done                                                     ////
12
////                                                              ////
13
////  Author(s):                                                  ////
14
////      - Javier Castillo, jcastilo@opencores.org               ////
15
////                                                              ////
16
//////////////////////////////////////////////////////////////////////
17
////                                                              ////
18
//// Copyright (C) 2000 Authors and OPENCORES.ORG                 ////
19
////                                                              ////
20
//// This source file may be used and distributed without         ////
21
//// restriction provided that this copyright statement is not    ////
22
//// removed from the file and that any derivative work contains  ////
23
//// the original copyright notice and the associated disclaimer. ////
24
////                                                              ////
25
//// This source file is free software; you can redistribute it   ////
26
//// and/or modify it under the terms of the GNU Lesser General   ////
27
//// Public License as published by the Free Software Foundation; ////
28
//// either version 2.1 of the License, or (at your option) any   ////
29
//// later version.                                               ////
30
////                                                              ////
31
//// This source is distributed in the hope that it will be       ////
32
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
33
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
34
//// PURPOSE.  See the GNU Lesser General Public License for more ////
35
//// details.                                                     ////
36
////                                                              ////
37
//// You should have received a copy of the GNU Lesser General    ////
38
//// Public License along with this source; if not, download it   ////
39
//// from http://www.opencores.org/lgpl.shtml                     ////
40
////                                                              ////
41
//////////////////////////////////////////////////////////////////////
42
//
43
// CVS Revision History
44
//
45
// $Log: not supported by cvs2svn $
46
// Revision 1.2  2004/08/30 14:47:38  jcastillo
47
// Code formated
48
//
49
// Revision 1.1.1.1  2004/07/05 09:46:22  jcastillo
50
// First import
51
//
52
 
53
#include "transactor.h"
54
#include "scv.h"
55
 
56
//Random number generator
57
 
58
class random_generator: virtual public scv_constraint_base
59
{
60
public:
61
 
62
        scv_smart_ptr<sc_biguint<128> > aes_key;
63
        scv_smart_ptr<sc_biguint<128> > aes_data;
64
 
65
        scv_smart_ptr<bool> decrypt;
66
 
67
        SCV_CONSTRAINT_CTOR(random_generator) {}
68
};
69
 
70
class test: public sc_module
71
{
72
public:
73
 
74
        sc_port<rw_task_if> transactor;
75
 
76
        void tb();
77
 
78
        SC_CTOR(test)
79
        {
80
                SC_THREAD(tb);
81
        }
82
};

powered by: WebSVN 2.1.0

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