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