Fletchgen
The Fletcher Design Generator
Public Member Functions | Public Attributes | List of all members
fletchgen::MmioReg Struct Reference

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.
 

Detailed Description

Structure to represent an MMIO register.

Definition at line 68 of file mmio.h.


The documentation for this struct was generated from the following file: