The Sparta Modeling Framework
Loading...
Searching...
No Matches
Preloader.hpp
1// <Preloader.hpp> -*- C++ -*-
2
3#pragma once
4
8
9#include "cache/preload/PreloaderIF.hpp"
10
11namespace core_example
12{
28 public sparta::cache::PreloaderIF
29 {
30 public:
31 static constexpr char name[] = "preloader";
33 {
34 public:
37 {}
38 PARAMETER(std::string, preload_file, "", "The path to the yaml file with preload data")
39 };
40
42 sparta::Resource(node),
43 sparta::cache::PreloaderIF(),
44 filepath_(params->preload_file)
45 {}
46 virtual ~Preloader() = default;
51 void preload();
52 private:
57 void preloadPacket_(const std::string& treenode,
58 sparta::cache::PreloadPkt& pkt) override;
60 const std::string filepath_;
61 };
62
63}
64
A set of sparta::Parameters per sparta::ResourceTreeNode.
#define PARAMETER(type, name, def, doc)
Parameter declaration.
File that defines the Resource class. Consider using sparta::Unit instead.
TreeNode refinement representing the root (or "top") of a device tree.
implement a PreloaderIF with appropriate knowledge of how to preload yaml files into the lsu's L1 cac...
Definition Preloader.hpp:29
Generic container of Parameters.
The is the base class for all types of resources used by the SPARTA framework.
Definition Resource.hpp:44
Resource(TreeNode *rc)
Construct resource with a resource container.
Node in a composite tree representing a sparta Tree item.
Definition TreeNode.hpp:205
Macros for handling exponential backoff.