ext2gp2ext.cpp revision 12855
12497SN/A/***************************************************************************** 212241Snikos.nikoleris@arm.com 38711SN/A Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 48711SN/A more contributor license agreements. See the NOTICE file distributed 58711SN/A with this work for additional information regarding copyright ownership. 68711SN/A Accellera licenses this file to you under the Apache License, Version 2.0 78711SN/A (the "License"); you may not use this file except in compliance with the 88711SN/A License. You may obtain a copy of the License at 98711SN/A 108711SN/A http://www.apache.org/licenses/LICENSE-2.0 118711SN/A 128711SN/A Unless required by applicable law or agreed to in writing, software 138711SN/A distributed under the License is distributed on an "AS IS" BASIS, 142497SN/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 152497SN/A implied. See the License for the specific language governing 162497SN/A permissions and limitations under the License. 172497SN/A 182497SN/A *****************************************************************************/ 192497SN/A#define SC_INCLUDE_DYNAMIC_PROCESSES 202497SN/A#include "tlm.h" 212497SN/A 222497SN/A#include "SimpleLTInitiator_ext.h" 232497SN/A#include "SimpleBusLT.h" 242497SN/A#include "SimpleLTTarget_ext.h" 252497SN/A#include "extension_adaptors.h" 262497SN/A 272497SN/A 282497SN/Aint sc_main(int argc, char* argv[]) 292497SN/A{ 302497SN/A SimpleLTInitiator_ext initiator("initiator1", 10, 0x0); 312497SN/A adapt_ext2gp<32> bridge1("bridge1"); 322497SN/A SimpleBusLT<1,1> bus("bus"); 332497SN/A adapt_gp2ext<32> bridge2("bridge2"); 342497SN/A SimpleLTTarget_ext target("target1"); 352497SN/A 362497SN/A initiator.socket(bridge1.target_socket); 372497SN/A bridge1.initiator_socket(bus.target_socket[0]); 382497SN/A bus.initiator_socket[0](bridge2.target_socket); 392665SN/A bridge2.initiator_socket(target.socket); 402665SN/A 418715SN/A sc_core::sc_start(); 428922SN/A sc_core::sc_stop(); 432497SN/A 442497SN/A return 0; 452497SN/A} 462982SN/A