Code Search for Developers
 
 
  

switch_reg.h from GreenSocs at Krugle


Show switch_reg.h syntax highlighted

/*****************************************************************************

  The following code is derived, directly or indirectly, from the SystemC
  source code Copyright (c) 1996-2004 by all Contributors.
  All Rights reserved.

  The contents of this file are subject to the restrictions and limitations
  set forth in the SystemC Open Source License Version 2.4 (the "License");
  You may not use this file except in compliance with such restrictions and
  limitations. You may obtain instructions on how to receive a copy of the
  License at http://www.systemc.org/. Software distributed by Contributors
  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
  ANY KIND, either express or implied. See the License for the specific
  language governing rights and limitations under the License.

 *****************************************************************************/

/*****************************************************************************

  switch_reg.h - This file describes a SystemC structure "switch_reg".

  Original Author: Rashmi Goswami, Synopsys, Inc.

 *****************************************************************************/

/*****************************************************************************

  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
  changes you are making here.

      Name, Affiliation, Date:
  Description of Modification:

 *****************************************************************************/

struct switch_reg {
   pkt val;
   bool free;

// constructor
   switch_reg()    
    {
      free = true;
    }
};




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.am
  README
  fifo.cpp
  fifo.h
  main.cpp
  pkt.h
  pkt_switch.dsp
  pkt_switch.dsw
  pkt_switch.sln
  pkt_switch.vcproj
  receiver.cpp
  receiver.h
  sender.cpp
  sender.h
  switch.cpp
  switch.h
  switch_clk.cpp
  switch_clk.h
  switch_reg.h