Changeset 137 for trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel
- Timestamp:
- Feb 16, 2011, 1:42:13 PM (14 years ago)
- Location:
- trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel/Makefile
r3 r137 1 1 ARCH=mips32el 2 2 SIMULATION_ARGS=100000 3 SOCLIB_CC_ADD_ARGS=-I. -t systemcass 3 4 SOCLIB?=$(shell soclib-cc --getpath) 4 5 export SOCLIB -
trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel/platform_desc
r85 r137 9 9 Uses('caba:vci_logger'), 10 10 Uses('caba:vci_multi_tty'), 11 Uses('caba:vci_vgmn'), 11 Uses('caba:vci_simple_ring_fast', 12 ring_cmd_data_size = 40, 13 ring_rsp_data_size = 33), 12 14 Uses('caba:vci_mem_cache_v1'), 13 15 Uses('common:elf_file_loader'), … … 20 22 rflag_size = 1, 21 23 srcid_size = 8, 22 pktid_size = 6,23 trdid_size = 6,24 pktid_size = 4, 25 trdid_size = 4, 24 26 wrplen_size = 1 25 27 ) -
trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel/segmentation.h
r85 r137 19 19 // base address required by MIPS processor 20 20 ///////////////////////////////////////////////////////////////// 21 #define MMU21 //#define MMU 22 22 23 23 #define RESET_BASE 0xBFC00000 24 #define RESET_SIZE 0x0000 004024 #define RESET_SIZE 0x00001000 25 25 26 26 #define EXCEP_BASE 0x80000000 27 #define EXCEP_SIZE 0x0000 02e027 #define EXCEP_SIZE 0x00001000 28 28 29 29 #define TEXT_BASE 0x00400000 30 #define TEXT_SIZE 0x00 0011c830 #define TEXT_SIZE 0x00100000 31 31 ///////////////////////////////////////////////////////////////// 32 32 // global data segment (initialised) … … 34 34 35 35 #define MC_M_BASE 0x10000000 36 #define MC_M_SIZE 0x00 00eb2036 #define MC_M_SIZE 0x00100000 37 37 38 /////////////////////////////////////////////////////////////////39 // page table (initialised)40 /////////////////////////////////////////////////////////////////41 #define PTD_ADDR 0x4040000042 #define PTE_ADDR 0x4040200043 #define IPTE_ADDR 0x4040300044 #define TAB_SIZE 0x0001000045 46 #define V_TTY_BASE 0x0080000047 #define V_TIMER_BASE 0x00C00000 // timer virtual address48 38 ////////////////////////////////////////////////////////// 49 39 // System devices -
trunk/platforms/caba-ring-ccxcachev1_memcachev1-mipsel/top.cpp
r85 r137 11 11 #include "vci_simple_ram.h" 12 12 #include "vci_multi_tty.h" 13 #include "vci_ vgmn.h"13 #include "vci_simple_ring_fast.h" 14 14 #include "vci_mem_cache_v1.h" 15 15 #include "vci_cc_xcache_wrapper_v1.h" … … 30 30 31 31 // Define VCI parameters 32 typedef soclib::caba::VciParams<4,8,32,1,1,1,8, 6,6,1> vci_param;32 typedef soclib::caba::VciParams<4,8,32,1,1,1,8,4,4,1> vci_param; 33 33 typedef soclib::common::Iss2Simhelper<soclib::common::Mips32ElIss> proc_iss; 34 34 // Mapping table … … 36 36 soclib::common::MappingTable maptabp(32, IntTab(8), IntTab(8), 0x00300000); 37 37 38 maptabp.add(Segment("reset", RESET_BASE, RESET_SIZE, IntTab( 2), true));39 maptabp.add(Segment("excep", EXCEP_BASE, EXCEP_SIZE, IntTab( 2), true));40 maptabp.add(Segment("text" , TEXT_BASE , TEXT_SIZE , IntTab( 2), true));38 maptabp.add(Segment("reset", RESET_BASE, RESET_SIZE, IntTab(0), true)); 39 maptabp.add(Segment("excep", EXCEP_BASE, EXCEP_SIZE, IntTab(0), true)); 40 maptabp.add(Segment("text" , TEXT_BASE , TEXT_SIZE , IntTab(0), true)); 41 41 maptabp.add(Segment("tty" , TTY_BASE , TTY_SIZE , IntTab(1), false)); 42 maptabp.add(Segment("mc_m" , MC_M_BASE , MC_M_SIZE , IntTab( 2), true ));42 maptabp.add(Segment("mc_m" , MC_M_BASE , MC_M_SIZE , IntTab(0), true )); 43 43 44 44 std::cout << maptabp << std::endl; … … 114 114 soclib::caba::VciSignals<vci_param> signal_vci_tgt_tty("vci_tgt_tty"); 115 115 116 soclib::caba::VciSignals<vci_param> signal_vci_tgt_rom("vci_tgt_rom");117 118 116 soclib::caba::VciSignals<vci_param> signal_vci_tgt_xram("vci_tgt_xram"); 119 117 … … 134 132 // Components 135 133 soclib::caba::VciCcXCacheWrapperV1<vci_param, proc_iss > 136 proc0("proc0", 0, maptabp, maptabc, IntTab(0),IntTab(0),IntTab(0),4, 64,16,4,64,16);134 proc0("proc0", 0, maptabp, maptabc, IntTab(0),IntTab(0),IntTab(0),4,4,16,4,4,16); 137 135 138 136 soclib::caba::VciCcXCacheWrapperV1<vci_param, proc_iss > 139 proc1("proc1", 1, maptabp, maptabc, IntTab(1),IntTab(1),IntTab(1),4, 64,16,4,64,16);137 proc1("proc1", 1, maptabp, maptabc, IntTab(1),IntTab(1),IntTab(1),4,4,16,4,4,16); 140 138 141 139 soclib::caba::VciCcXCacheWrapperV1<vci_param, proc_iss > 142 proc2("proc2", 2, maptabp, maptabc, IntTab(2),IntTab(2),IntTab(2),4, 64,16,4,64,16);140 proc2("proc2", 2, maptabp, maptabc, IntTab(2),IntTab(2),IntTab(2),4,4,16,4,4,16); 143 141 144 142 soclib::caba::VciCcXCacheWrapperV1<vci_param, proc_iss > 145 proc3("proc3", 3, maptabp, maptabc, IntTab(3),IntTab(3),IntTab(3),4,64,16,4,64,16); 146 147 soclib::caba::VciSimpleRam<vci_param> 148 rom("rom", IntTab(0), maptabp, loader); 143 proc3("proc3", 3, maptabp, maptabc, IntTab(3),IntTab(3),IntTab(3),4,4,16,4,4,16); 149 144 150 145 soclib::caba::VciSimpleRam<vci_param> … … 152 147 153 148 soclib::caba::VciMemCacheV1<vci_param> 154 memc("memc",maptabp,maptabc,maptabx,IntTab(0),IntTab(4),IntTab( 2), IntTab(4),4,16,16);149 memc("memc",maptabp,maptabc,maptabx,IntTab(0),IntTab(4),IntTab(0), IntTab(4),16,16,16); 155 150 156 151 soclib::caba::VciMultiTty<vci_param> … … 163 158 // soclib::caba::VciLogger<vci_param> vci_logger_memc("vci_logger_memc",maptabp); 164 159 165 // soclib::caba::VciSimpleRingNetwork<vci_param>166 // ringd("ringd",maptabp, IntTab(), 2, 4, 3);167 soclib::caba::VciVgmn<vci_param>168 ringd("ringd",maptabp, 4, 3, 2, 2);169 170 // soclib::caba::VciSimpleRingNetwork<vci_param>171 //ringc("ringc",maptabc, IntTab(), 2, 5, 5);172 soclib::caba::VciVgmn<vci_param>173 ringc("ringc",maptabc, 5, 5, 2, 2);174 175 // soclib::caba::VciSimpleRingNetwork<vci_param>176 //ringx("ringx",maptabx, IntTab(), 2, 1, 1);177 soclib::caba::VciVgmn<vci_param>178 ringx("ringx",maptabx, 1, 1, 2, 2);160 soclib::caba::VciSimpleRingFast<vci_param, 40 , 33> 161 ringd("ringd",maptabp, IntTab(), 2, 4, 2); 162 // soclib::caba::VciVgmn<vci_param> 163 // ringd("ringd",maptabp, 4, 3, 2, 2); 164 165 soclib::caba::VciSimpleRingFast<vci_param, 40 , 33> 166 ringc("ringc",maptabc, IntTab(), 2, 5, 5); 167 // soclib::caba::VciVgmn<vci_param> 168 // ringc("ringc",maptabc, 5, 5, 2, 2); 169 170 soclib::caba::VciSimpleRingFast<vci_param, 40 , 33> 171 ringx("ringx",maptabx, IntTab(), 2, 1, 1); 172 // soclib::caba::VciVgmn<vci_param> 173 // ringx("ringx",maptabx, 1, 1, 2, 2); 179 174 180 175 // Net-List … … 228 223 proc3.p_vci_tgt(signal_vci_tgt_proc3); 229 224 230 rom.p_clk(signal_clk);231 rom.p_resetn(signal_resetn);232 rom.p_vci(signal_vci_tgt_rom);233 234 225 // vci_logger_proc0.p_clk(signal_clk); 235 226 // vci_logger_proc0.p_resetn(signal_resetn); … … 277 268 ringd.p_to_initiator[2](signal_vci_ini_rw_proc2); 278 269 ringd.p_to_initiator[3](signal_vci_ini_rw_proc3); 279 ringd.p_to_target[0](signal_vci_tgt_ rom);270 ringd.p_to_target[0](signal_vci_tgt_memc); 280 271 ringd.p_to_target[1](signal_vci_tgt_tty); 281 ringd.p_to_target[2](signal_vci_tgt_memc);282 272 283 273 ringc.p_clk(signal_clk);
Note: See TracChangeset
for help on using the changeset viewer.