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; --- 290 unchanged lines hidden (view full) --- 299 300 public: 301 302 /** constructor 303 */ 304 SimpleCache(SimpleCacheParams *params); 305 306 /** |
307 * Get a port with a given name and index. This is used at |
308 * binding time and returns a reference to a protocol-agnostic |
309 * port. |
310 * 311 * @param if_name Port name 312 * @param idx Index in the case of a VectorPort 313 * 314 * @return A reference to the given port 315 */ |
316 Port &getPort(const std::string &if_name, 317 PortID idx=InvalidPortID) override; |
318 319 /** |
320 * Register the stats 321 */ 322 void regStats() override; 323}; 324 325 326#endif // __LEARNING_GEM5_SIMPLE_CACHE_SIMPLE_CACHE_HH__ |