The Sparta Modeling Framework
|
implement a PreloaderIF with appropriate knowledge of how to preload yaml files into the lsu's L1 cache. More...
#include <Preloader.hpp>
Classes | |
class | PreloaderParameterSet |
Public Member Functions | |
Preloader (sparta::TreeNode *node, const PreloaderParameterSet *params) | |
void | preload () |
Public Member Functions inherited from sparta::Resource | |
Resource (TreeNode *rc) | |
Construct resource with a resource container. | |
Resource (TreeNode *rc, const std::string &name) | |
Construct resource with a specific name and resource container. | |
Resource (const std::string &name, const Clock *clk) | |
Construct a Resource with the given name and clock having NO association with a resource container. This constructor is reserved for free-standing resources owned by other resources (not containers [TreeNodes]) | |
virtual | ~Resource () |
Destroy! | |
const Clock * | getClock () const |
Scheduler * | getScheduler (const bool must_exist=true) const |
std::string | getName () const |
TreeNode * | getContainer () |
Gets the TreeNode (container) for this resource (if any) | |
const TreeNode * | getContainer () const |
Gets the TreeNode (container) for this resource (if any) | |
ResourceContainer * | getResourceContainer () |
Gets the ResourceContainer for this resource (if any) | |
const ResourceContainer * | getResourceContainer () const |
Gets the ResourceContainer for this resource (if any) | |
virtual void | addLink (TreeNode *node, const std::string &label) |
virtual void | activateLink (const std::string &label) |
Resource (const Resource &)=delete | |
Disallow copying. | |
Resource & | operator= (const Resource &)=delete |
Static Public Attributes | |
static constexpr char | name [] = "preloader" |
implement a PreloaderIF with appropriate knowledge of how to preload yaml files into the lsu's L1 cache.
Some models will need more rigorous knowledge of the architecture such as knowing that preloads to l1 must also preload into the l2 and notifying other relevant parts.
This preloader is a resource such that it has the ability to define parameter sets which may be useful when implementing a preloader in your model.
Definition at line 27 of file Preloader.hpp.
|
inline |
Definition at line 41 of file Preloader.hpp.
void core_example::Preloader::preload | ( | ) |
Start the preload process. Should be called in the simulators bind setup.
Definition at line 8 of file Preloader.cpp.
|
staticconstexpr |
Definition at line 31 of file Preloader.hpp.