112855Sgabeblack@google.com#define SC_INCLUDE_DYNAMIC_PROCESSES
212855Sgabeblack@google.com#include "CoreDecouplingLTInitiator.h"
312855Sgabeblack@google.com#include "SimpleATInitiator1.h"
412855Sgabeblack@google.com#include "SimpleATInitiator2.h"
512855Sgabeblack@google.com#include "SimpleLTInitiator1.h"
612855Sgabeblack@google.com#include "SimpleLTInitiator2.h"
712855Sgabeblack@google.com#include "SimpleLTInitiator3.h"
812855Sgabeblack@google.com#include "SimpleATTarget1.h"
912855Sgabeblack@google.com#include "SimpleATTarget2.h"
1012855Sgabeblack@google.com#include "SimpleLTTarget1.h"
1112855Sgabeblack@google.com#include "SimpleLTTarget2.h"
1212855Sgabeblack@google.com#include "ExplicitATTarget.h"
1312855Sgabeblack@google.com#include "ExplicitLTTarget.h"
1412855Sgabeblack@google.com
1512855Sgabeblack@google.com#include "MultiSocketSimpleSwitchAT.h"
1612855Sgabeblack@google.com
1712855Sgabeblack@google.com/*
1812855Sgabeblack@google.comConnection Map: Busses are written vertically
1912855Sgabeblack@google.com
2012855Sgabeblack@google.comAT_I1-B-AT_T1
2112855Sgabeblack@google.comLT_I1-U-LT_T1
2212855Sgabeblack@google.comLT_I2-S
2312855Sgabeblack@google.comLT_I3-1-B-LT_T2
2412855Sgabeblack@google.com        U-LT_T3
2512855Sgabeblack@google.com  AT_I2-S-AT_T2
2612855Sgabeblack@google.com  LT_I4-2-AT_T3
2712855Sgabeblack@google.com*/
2812855Sgabeblack@google.comint sc_main(int argc, char* argv[]){
2912855Sgabeblack@google.com
3012855Sgabeblack@google.com    MultiSocketSimpleSwitchAT bus1("bus1");
3112855Sgabeblack@google.com    MultiSocketSimpleSwitchAT bus2("bus2");
3212855Sgabeblack@google.com
3312855Sgabeblack@google.com    SimpleATInitiator1 at_i1("AT_I1", 3, 0x10000000); //AT_T1
3412855Sgabeblack@google.com    SimpleLTInitiator1 lt_i1("LT_I1", 3, 0x20000000); //LT_T1
3512855Sgabeblack@google.com    SimpleLTInitiator2 lt_i2("LT_I2", 3, 0x30000000); //LT_T2
3612855Sgabeblack@google.com    SimpleLTInitiator3 lt_i3("LT_I3", 3, 0x60000000); //AT_T3
3712855Sgabeblack@google.com
3812855Sgabeblack@google.com
3912855Sgabeblack@google.com    SimpleATInitiator2 at_i2("AT_I2", 3, 0x50000000); //AT_T2
4012855Sgabeblack@google.com    CoreDecouplingLTInitiator lt_i4("LT_I4", 3, 0x40000000); //LT_T3
4112855Sgabeblack@google.com
4212855Sgabeblack@google.com    SimpleATTarget1    at_t1("AT_T1");
4312855Sgabeblack@google.com    SimpleATTarget2    at_t2("AT_T2");
4412855Sgabeblack@google.com    ExplicitATTarget    at_t3("AT_T3");
4512855Sgabeblack@google.com    SimpleLTTarget1    lt_t1("LT_T1");
4612855Sgabeblack@google.com    SimpleLTTarget2    lt_t2("LT_T2");
4712855Sgabeblack@google.com    ExplicitLTTarget    lt_t3("LT_T3");
4812855Sgabeblack@google.com
4912855Sgabeblack@google.com
5012855Sgabeblack@google.com    at_i1.socket(bus1.target_socket);
5112855Sgabeblack@google.com    lt_i1.socket(bus1.target_socket);
5212855Sgabeblack@google.com    lt_i2.socket(bus1.target_socket);
5312855Sgabeblack@google.com    lt_i3.socket(bus1.target_socket);
5412855Sgabeblack@google.com
5512855Sgabeblack@google.com    at_i2.socket(bus2.target_socket);
5612855Sgabeblack@google.com    lt_i4.socket(bus2.target_socket);
5712855Sgabeblack@google.com
5812855Sgabeblack@google.com    bus1.bindTargetSocket(at_t1.socket, 0x10000000,0x1000ffff, 0xfffffff);
5912855Sgabeblack@google.com    bus1.bindTargetSocket(lt_t1.socket, 0x20000000,0x2000ffff, 0xfffffff);
6012855Sgabeblack@google.com    bus1.bindTargetSocket(bus2.target_socket, 0x30000000,0x6000ffff);
6112855Sgabeblack@google.com
6212855Sgabeblack@google.com    bus2.bindTargetSocket(at_t2.socket, 0x50000000,0x5000ffff, 0xfffffff);
6312855Sgabeblack@google.com    bus2.bindTargetSocket(lt_t2.socket, 0x30000000,0x3000ffff, 0xfffffff);
6412855Sgabeblack@google.com    bus2.bindTargetSocket(at_t3.socket, 0x60000000,0x6000ffff, 0xfffffff);
6512855Sgabeblack@google.com    bus2.bindTargetSocket(lt_t3.socket, 0x40000000,0x4000ffff, 0xfffffff);
6612855Sgabeblack@google.com
6712855Sgabeblack@google.com    sc_core::sc_start();
6812855Sgabeblack@google.com
6912855Sgabeblack@google.com    bus1.dump_status();
7012855Sgabeblack@google.com    bus2.dump_status();
7112855Sgabeblack@google.com
7212855Sgabeblack@google.com    return 0;
7312855Sgabeblack@google.com}
74