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

Subversion Repositories sv_dir_tb

[/] [sv_dir_tb/] [trunk/] [sv/] [tb_types.sv] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sckoarn
////////////////////////////////////////////////////////////////////////////
2
//
3
// Copyright 2014  Ken Campbell
4
//
5
//   Licensed under the Apache License, Version 2.0 (the "License");
6
//   you may not use this file except in compliance with the License.
7
//   You may obtain a copy of the License at
8
//
9
//     http://www.apache.org/licenses/LICENSE-2.0
10
//
11
//   Unless required by applicable law or agreed to in writing, software
12
//   distributed under the License is distributed on an "AS IS" BASIS,
13
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
//   See the License for the specific language governing permissions and
15
//   limitations under the License.
16
//
17
/////////////////////////////////////
18
 
19
//////////////////////////////////////////
20
//  type definitions for the  sv  tb_pkg
21
/////////////////////////////////////////
22
  typedef class lst_item;
23
  typedef class cmd_lst;
24
  typedef class tb_cmd;
25
  typedef class tb_trans;
26
 
27
  ////////////////////////////////////
28
  typedef struct {
29
    string cmd;
30
    integer par1;
31
    integer par2;
32
    integer par3;
33
    integer par4;
34
    integer par5;
35
    integer par6;
36
    string dym_str;
37
    integer valid;
38
  } cmd_val_t;
39
 
40
 
41
  typedef struct {
42
    string  txt;
43
    integer val;
44
  } lst_item_t;
45
 
46
//////////////////////////////////////////////////////////////
47
//  this class is a container class that is used to
48
//    pass in information and get information from the
49
//    command list.
50
class tb_trans;
51
  cmd_lst     cmd;
52
  cmd_val_t  rtn_val;
53
  integer    next;
54
 
55
  extern function new();
56
endclass  //  class tb_trans
57
 
58
 
59
function tb_trans::new();
60
  cmd             = new();
61
  rtn_val.cmd     = "";
62
  rtn_val.dym_str = "";
63
  rtn_val.par1    = 0;
64
  rtn_val.par2    = 0;
65
  rtn_val.par3    = 0;
66
  rtn_val.par4    = 0;
67
  rtn_val.par5    = 0;
68
  rtn_val.par6    = 0;
69
  rtn_val.valid   = 0;
70
  next            = 0;
71
endfunction

powered by: WebSVN 2.1.0

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