SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
cci_configuration.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2020 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_CCI_CONFIGURATION_H
17#define SIMICS_SYSTEMC_CCI_CONFIGURATION_H
18
19#include <simics/base/attr-value.h>
20#include <simics/cc-api.h>
21
22#if INTC_EXT && USE_SIMICS_CCI
23#include <cci_configuration>
24#include <cci_utils/broker.h>
25#endif
26
27#include <systemc>
28
29#include <utility> // pair
30#include <map>
31#include <string>
32#include <vector>
33
34namespace simics {
35namespace systemc {
36
38 public:
41 const std::vector<std::pair<std::string, std::string>> *attr);
42 void logUnconsumedPresetValues(ConfObjectRef obj);
43 static void cleanCache();
44#if INTC_EXT && USE_SIMICS_CCI
45 const char* simicsType(cci::cci_param_handle parameter);
46 std::string simicsName(cci::cci_param_handle parameter);
47 std::vector <cci::cci_param_handle> getParameters(
48 sc_core::sc_object *object);
49 cci::cci_param_handle getParameter(const std::string &name);
50 attr_value_t getAttribute(const cci::cci_param_handle &parameter);
51 bool setAttribute(cci::cci_param_handle parameter,
52 const attr_value_t &value);
53
54 private:
55 cci::cci_originator simics_;
56 cci::cci_broker_handle broker_;
57 static std::map<const sc_core::sc_object *,
58 std::vector <cci::cci_param_handle> > cache_;
59#endif
60};
61
62} // namespace systemc
63} // namespace simics
64
65#endif // SIMICS_SYSTEMC_CCI_CONFIGURATION_H
Definition: cci_configuration.h:37
void logUnconsumedPresetValues(ConfObjectRef obj)
void setPresetValues(const std::vector< std::pair< std::string, std::string > > *attr)
Definition: pci_bus_interface.h:24