00001 00002 /* 00003 * router.h 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License, 00007 * version 2, as published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License along 00015 * with this program; if not, write to the Free Software Foundation, Inc., 00016 * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 * Author: Lavina Jain 00019 * 00020 */ 00021 00026 00027 #ifndef __noc_router__ 00028 #define __noc_router__ 00029 00030 #include "systemc.h" 00031 #include "../config/constants.h" 00032 #include <string> 00033 #include <vector> 00034 #include <time.h> 00035 00041 class router { 00042 protected: 00043 UI id; 00044 00045 public: 00047 router() {} 00049 virtual UI calc_next(UI ip_dir, ULL src_id, ULL dst_id) = 0; 00051 virtual void initialize() = 0; 00053 virtual void setID(UI) = 0; 00054 }; 00055 00056 #endif