C++ Device API Reference Manual
Reference documentation for the Simics C++ Device API.
 
Loading...
Searching...
No Matches
sample_device.h
Go to the documentation of this file.
1/*
2 © 2024 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//-*- C++ -*-
15
16#ifndef CPP_API_EXTENSIONS_EXAMPLES_REG_INTEGRATION_EXAMPLE_SAMPLE_DEVICE_H
17#define CPP_API_EXTENSIONS_EXAMPLES_REG_INTEGRATION_EXAMPLE_SAMPLE_DEVICE_H
18
19#include <simics/cc-api.h>
20#include <simics/c++/model-iface/transaction.h>
21
22#include "regs.h"
23
25
27 public:
29 : simics::MappableConfObject(o) {
30 // initialize
31 }
32
33 static void init_class(simics::ConfClass *cls);
34
35 void objects_finalized() override;
36
38
40
42
44};
45
46
47class SampleBankPortManual : public simics::BankPort<SampleDevice> {
48 public:
50
51 public:
52 SampleBank bank {this, simics::Description("a user defined bank")};
53};
54
55#endif
56
Definition: sample_device.h:47
SampleBank bank
Definition: sample_device.h:52
Definition: regs.h:37
Definition: sample_device.h:26
void add_io_regs_bank(simics::ConfClass *cls)
void objects_finalized() override
SampleDevice(simics::ConfObjectRef o)
Definition: sample_device.h:28
SampleBankPortManual * io_regs
Definition: sample_device.h:43
void hello_world_callback()
void do_reg_bindings()
static void init_class(simics::ConfClass *cls)
Extends Port with bank required interfaces.
Definition: bank-port.h:71
BankPort(ConfObjectRef o)
Definition: bank-port.h:82
Represents Simics C type conf_class_t.
Definition: conf-class.h:52
Represents Simics C type conf_object_t.
Definition: conf-object.h:38
Definition: mappable-conf-object.h:134
Definition: after-bank.h:33
std::string_view Description
Type used to describe a resource.
Definition: common-types.h:46