C++ Device API Reference Manual
Reference documentation for the Simics C++ Device API.
 
Loading...
Searching...
No Matches
field-type.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2022 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_TYPE_FIELD_TYPE_H
17#define SIMICS_TYPE_FIELD_TYPE_H
18
19#include <tuple>
20
21#include "common-types.h"
22
23namespace simics {
24/*
25 * Type alias represents a type containing field information
26 *
27 * It is a tuple consists of following members:
28 *
29 * 1. A name of the field. The name should follow
30 * the Simics naming rules. To indicate an array, similar to a C array,
31 * specify the number of fields between a pair of square brackets,
32 * e.g., f[8]. By default the stride of the array is the size of the
33 * field, but other values can be chosen as follows, f[8 stride 4].
34 * 2. A human-readable description of the field
35 * 3. An address offset of the field relative to its enclosing register
36 * 4. An nonzero number of bits of the field
37 */
38using field_t = std::tuple<Name, Description, Offset, BitWidth>;
39} // namespace simics
40
41#endif
Definition: attr-value.h:23
std::tuple< Name, Description, Offset, BitWidth > field_t
Definition: field-type.h:38