Fletchgen
The Fletcher Design Generator
|
Structure to represent an MMIO register. More...
#include <mmio.h>
Public Member Functions | |
MmioReg ()=default | |
MmioReg default constructor. | |
MmioReg (MmioFunction function, MmioBehavior behavior, std::string name, std::string desc, uint32_t width, uint32_t index=0, std::optional< uint32_t > addr=std::nullopt, std::optional< uint64_t > init=std::nullopt) | |
MmioReg constructor. | |
Public Attributes | |
MmioFunction | function = MmioFunction::DEFAULT |
Register intended use. | |
MmioBehavior | behavior = MmioBehavior::CONTROL |
Register access behavior. | |
std::string | name |
Register mame. | |
std::string | desc |
Register description. | |
uint32_t | width = 1 |
Bit width. | |
uint32_t | index = 0 |
LSB start index at that address. | |
std::optional< uint32_t > | addr = std::nullopt |
Optional address. | |
std::optional< uint64_t > | init = std::nullopt |
Optional initial value. | |
std::unordered_map< std::string, std::string > | meta |
Metadata. | |