The Sparta Modeling Framework
Loading...
Searching...
No Matches
core_example::Preloader Class Reference

implement a PreloaderIF with appropriate knowledge of how to preload yaml files into the lsu's L1 cache. More...

#include <Preloader.hpp>

Inheritance diagram for core_example::Preloader:
Collaboration diagram for core_example::Preloader:

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 ClockgetClock () const
 
SchedulergetScheduler (const bool must_exist=true) const
 
std::string getName () const
 
TreeNodegetContainer ()
 Gets the TreeNode (container) for this resource (if any)
 
const TreeNodegetContainer () const
 Gets the TreeNode (container) for this resource (if any)
 
ResourceContainergetResourceContainer ()
 Gets the ResourceContainer for this resource (if any)
 
const ResourceContainergetResourceContainer () 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.
 
Resourceoperator= (const Resource &)=delete
 

Static Public Attributes

static constexpr char name [] = "preloader"
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Preloader()

core_example::Preloader::Preloader ( sparta::TreeNode node,
const PreloaderParameterSet params 
)
inline

Definition at line 41 of file Preloader.hpp.

Member Function Documentation

◆ preload()

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.

Member Data Documentation

◆ name

constexpr char core_example::Preloader::name[] = "preloader"
staticconstexpr

Definition at line 31 of file Preloader.hpp.


The documentation for this class was generated from the following files: