00001 /* 00002 * ===================================================================================== 00003 * 00004 * Filename: genericData.cc 00005 * 00006 * Description: 00007 * 00008 * Version: 1.0 00009 * Created: 02/21/2010 05:06:54 PM 00010 * Revision: none 00011 * Compiler: gcc 00012 * 00013 * Author: Mitchelle Rasquinha (), mitchelle.rasquinha@gatech.edu 00014 * Company: Georgia Institute of Technology 00015 * 00016 * ===================================================================================== 00017 */ 00018 00019 #ifndef _genericdata_cc_INC 00020 #define _genericdata_cc_INC 00021 00022 #include "genericData.h" 00023 00024 LinkArrivalData::LinkArrivalData() 00025 { 00026 valid = false; 00027 } 00028 00029 LinkArrivalData::~LinkArrivalData() 00030 { 00031 } 00032 00033 VirtualChannelDescription::VirtualChannelDescription() 00034 { 00035 } 00036 00037 string 00038 InputBufferState::toString() const 00039 { 00040 stringstream str; 00041 str << "input_buffer_state" 00042 << " inport: " << input_port 00043 << " inch: " << input_channel 00044 << " outport: " << output_port 00045 << " outch: " << output_channel 00046 << " destination: " << destination 00047 << " address: " << address; 00048 switch( pipe_stage) 00049 { 00050 case INVALID: 00051 str << " INVALID"; 00052 break; 00053 case IB: 00054 str << " IB"; 00055 break; 00056 case EMPTY: 00057 str << " EMPTY"; 00058 break; 00059 case FULL: 00060 str << " FULL"; 00061 break; 00062 case ROUTED: 00063 str << " ROUTED"; 00064 break; 00065 case SWA_REQUESTED: 00066 str << " SWA_REQUESTED"; 00067 break; 00068 case SW_ALLOCATED: 00069 str << " SW_ALLOCATED"; 00070 break; 00071 case SW_TRAVERSAL: 00072 str << " SW_TRAVERSAL"; 00073 break; 00074 case REQ_OUTVC_ARB: 00075 str << " REQ_OUTVC_ARB"; 00076 break; 00077 } 00078 00079 return str.str(); 00080 } 00081 00082 InputBufferState::InputBufferState() 00083 { 00084 pipe_stage = INVALID; 00085 } 00086 00087 00088 #endif /* ----- #ifndef _genericdata_cc_INC ----- */ 00089