1 /*****************************************************************************
2 
3   Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4   more contributor license agreements.  See the NOTICE file distributed
5   with this work for additional information regarding copyright ownership.
6   Accellera licenses this file to you under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with the
8   License.  You may obtain a copy of the License at
9 
10     http://www.apache.org/licenses/LICENSE-2.0
11 
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15   implied.  See the License for the specific language governing
16   permissions and limitations under the License.
17 
18  *****************************************************************************/
19 
20 //=====================================================================
21 ///  @file at_extension_optional_top.h
22 
23 ///  @brief This class instantiates components that compose the TLM 2 example system
24 
25 //=====================================================================
26 //  Original Authors:
27 //    Anna Keist, ESLX
28 //    Bill Bunton, ESLX
29 //    Jack Donovan, ESLX
30 //    Charles Wilson, ESLX
31 //=====================================================================
32 
33 #ifndef __AT_EXTENSION_OPTIONAL_TOP_H__
34 #define __AT_EXTENSION_OPTIONAL_TOP_H__
35 
36 #include "tlm.h"                              // TLM header
37 #include "at_target_4_phase.h"                // at memory target
38 #include "at_target_2_phase.h"                // 2nd memory target not using extension
39 #include "initiator_top.h"                    // processor abstraction initiator
40 #include "models/SimpleBusAT.h"               // Bus/Router Implementation
41 
42 /// Top wrapper Module
43 
44 class example_system_top
45 : public sc_core::sc_module                     //  SC base class
46 {
47   public:
48 
49   // Constructor
50 
51   example_system_top                              ///< constructor
52   ( sc_core::sc_module_name name                  ///< instance name
53   );
54 
55   // Member Variables
56 
57   private:
58 
59   SimpleBusAT<2, 2>       m_bus;                  ///< simple bus
60   at_target_4_phase       m_at_target_4_phase_1;  ///< instance 1 target
61   at_target_2_phase       m_at_target_2_phase_2;  ///< instance 2 target
62   initiator_top           m_initiator_1;          ///< instance 1 initiator
63   initiator_top           m_initiator_2;          ///< instance 2 initiator
64 };
65 #endif /* __AT_EXTENSION_OPTIONAL_TOP_H__ */
66