Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

NoC.h

Go to the documentation of this file.
00001 
00002 /*
00003  * NoC.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 
00030 
00031 #ifndef __NOC__
00032 #define __NOC__
00033 
00034 #include "NWTile.h"
00035 #include "../config/extern.h"
00036 
00040 struct signals {
00041         sc_signal<flit> sig_toS;                        
00042         sc_signal<flit> sig_fromS;                      
00043         sc_signal<flit> sig_fromE;                      
00044         sc_signal<flit> sig_toE;                        
00045 
00046         sc_signal<creditLine> cr_sig_toS[NUM_VCS];      
00047         sc_signal<creditLine> cr_sig_fromS[NUM_VCS];    
00048         sc_signal<creditLine> cr_sig_fromE[NUM_VCS];    
00049         sc_signal<creditLine> cr_sig_toE[NUM_VCS];      
00050 };
00051 
00057 struct NoC : public sc_module {
00058 
00059         sc_in<bool> switch_cntrl;       
00060 
00062         SC_HAS_PROCESS(NoC);
00063         NoC(sc_module_name NoC, int num_rows, int num_cols);
00064         
00065         int rows;       
00066         int cols;       
00067         
00068         BaseNWTile      *nwtile[MAX_NUM_ROWS][MAX_NUM_COLS];    
00069         signals         sigs[MAX_NUM_ROWS][MAX_NUM_COLS];       
00070 
00071         void entry();   
00072 };
00073 
00074 #endif

Generated on Mon May 7 19:03:19 2007 for NIRGAM by  doxygen 1.3.9.1