1/* 2 * Copyright (c) 2017 Jason Lowe-Power 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 221 unchanged lines hidden (view full) --- 230 231 public: 232 233 /** constructor 234 */ 235 SimpleMemobj(SimpleMemobjParams *params); 236 237 /** |
238 * Get a port with a given name and index. This is used at |
239 * binding time and returns a reference to a protocol-agnostic |
240 * port. |
241 * 242 * @param if_name Port name 243 * @param idx Index in the case of a VectorPort 244 * 245 * @return A reference to the given port 246 */ |
247 Port &getPort(const std::string &if_name, 248 PortID idx=InvalidPortID) override; |
249}; 250 251 252#endif // __LEARNING_GEM5_PART2_SIMPLE_MEMOBJ_HH__ |