mem_object.hh (9157:e0bad9d7bbd6) | mem_object.hh (9294:8fb03b13de02) |
---|---|
1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 53 unchanged lines hidden (view full) --- 62 public: 63 typedef MemObjectParams Params; 64 const Params *params() const 65 { return dynamic_cast<const Params *>(_params); } 66 67 MemObject(const Params *params); 68 69 /** | 1/* 2 * Copyright (c) 2012 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 53 unchanged lines hidden (view full) --- 62 public: 63 typedef MemObjectParams Params; 64 const Params *params() const 65 { return dynamic_cast<const Params *>(_params); } 66 67 MemObject(const Params *params); 68 69 /** |
70 * Get a master port with a given name and index. | 70 * Get a master port with a given name and index. This is used at 71 * binding time and returns a reference to a protocol-agnostic 72 * base master port. |
71 * 72 * @param if_name Port name 73 * @param idx Index in the case of a VectorPort 74 * 75 * @return A reference to the given port 76 */ | 73 * 74 * @param if_name Port name 75 * @param idx Index in the case of a VectorPort 76 * 77 * @return A reference to the given port 78 */ |
77 virtual MasterPort& getMasterPort(const std::string& if_name, 78 int idx = -1); | 79 virtual BaseMasterPort& getMasterPort(const std::string& if_name, 80 PortID idx = InvalidPortID); |
79 80 /** | 81 82 /** |
81 * Get a slave port with a given name and index. | 83 * Get a slave port with a given name and index. This is used at 84 * binding time and returns a reference to a protocol-agnostic 85 * base master port. |
82 * 83 * @param if_name Port name 84 * @param idx Index in the case of a VectorPort 85 * 86 * @return A reference to the given port 87 */ | 86 * 87 * @param if_name Port name 88 * @param idx Index in the case of a VectorPort 89 * 90 * @return A reference to the given port 91 */ |
88 virtual SlavePort& getSlavePort(const std::string& if_name, 89 int idx = -1); | 92 virtual BaseSlavePort& getSlavePort(const std::string& if_name, 93 PortID idx = InvalidPortID); |
90}; 91 92#endif //__MEM_MEM_OBJECT_HH__ | 94}; 95 96#endif //__MEM_MEM_OBJECT_HH__ |