SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
gasket_tag.h
Go to the documentation of this file.
1/*
2 © 2018 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_GASKET_TAG_H
15#define SIMICS_SYSTEMC_GASKET_TAG_H
16
17#include <simics/base/attr-value.h>
18#include <simics/cc-api.h>
19
20#include <map>
21#include <string>
22#include <vector>
23
24namespace simics {
25namespace systemc {
26
32 public:
51 virtual void addGasket(std::string id, std::string type) = 0;
61 virtual void setGasketTag(std::string id, std::string name,
62 attr_value_t value) = 0;
63};
64
67 public:
68 explicit GasketTag(ConfObjectRef adapter);
69 virtual ~GasketTag();
70 void addGasket(std::string id, std::string type) override;
71 void setGasketTag(std::string id, std::string name,
72 attr_value_t value) override;
73 std::vector<ConfObjectRef> createGasketObjects();
74
75 private:
76 void addAttrList(std::string id, attr_value_t attr);
77 void addSimulationAttr(const std::string &id);
78
79 std::map<std::string, std::string> id_to_class_;
80 std::map<std::string, attr_value_t> id_to_attr_;
81 ConfObjectRef adapter_;
82};
83
84} // namespace systemc
85} // namespace simics
86
87#endif
This interface provides the means to create gaskets encapsulated in Simics objects.
Definition: gasket_tag.h:31
virtual void addGasket(std::string id, std::string type)=0
Add a new gasket to the simulation.
virtual ~GasketTagInterface()
Definition: gasket_tag.h:33
virtual void setGasketTag(std::string id, std::string name, attr_value_t value)=0
Set tags for the gasket.
Definition: gasket_tag.h:66
GasketTag(ConfObjectRef adapter)
void setGasketTag(std::string id, std::string name, attr_value_t value) override
Set tags for the gasket.
std::vector< ConfObjectRef > createGasketObjects()
void addGasket(std::string id, std::string type) override
Add a new gasket to the simulation.
Definition: adapter.h:79