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. This is used at 71 * binding time and returns a reference to a protocol-agnostic 72 * base master port. |
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 */ |
79 virtual BaseMasterPort& getMasterPort(const std::string& if_name, 80 PortID idx = InvalidPortID); |
81 82 /** |
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. |
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 */ |
92 virtual BaseSlavePort& getSlavePort(const std::string& if_name, 93 PortID idx = InvalidPortID); |
94}; 95 96#endif //__MEM_MEM_OBJECT_HH__ |