Code Search for Developers
 
 
  

data_ext.h from GreenSocs at Krugle


Show data_ext.h syntax highlighted

#ifndef DATA_EXT_H
#define DATA_EXT_H

#include "scv.h"
#include "data.h"


//declarations below this point are due to the --EXTEND_ALL option

template<>
class scv_extensions<data_t> : public scv_extensions_base<data_t> {
public:
  scv_extensions<int         > field_1;
  scv_extensions<sc_uint<8>  > field_2;
  scv_extensions<unsigned    [5]> payload;
  scv_extensions<string      > str;

  SCV_EXTENSIONS_CTOR(data_t) {
    //must be in order
    SCV_FIELD(field_1);
    SCV_FIELD(field_2);
    SCV_FIELD(payload);
    SCV_FIELD(str);
  }
};
#endif //DATA_EXT_H




See more files for this project here

GreenSocs

To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization.\r\nThe GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

Project homepage: http://sourceforge.net/projects/greensocs
Programming language(s): C,C++,Java,Perl,XML
License: other

  Makefile
  README
  SConstruct
  checktest.sh
  data.h
  data_ext.h
  test.cc
  test_reg.cc