-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
perhaps already possible but could not get it to work yet. Is it possible that the standalone generator considers the default values and read/write masks config from RDL description into generated code (perhaps in the generated constructor). For example, generate
inline vpvper::pulpissimo::gen::spi_channel_regs::spi_channel_regs(sc_core::sc_module_name nm)
: sc_core::sc_module(nm),
NAMED(SPIM_RX_CFG, r_SPIM_RX_CFG, 0x4, *this, 0xffffffbf, 0xffffffdf),
NAMED(SPIM_CMD_CFG, r_SPIM_CMD_CFG, 0x4, *this, 0xffffffbf, 0xffffffdf) {}
instead of
inline vpvper::pulpissimo::gen::spi_channel_regs::spi_channel_regs(sc_core::sc_module_name nm)
: sc_core::sc_module(nm),
NAMED(SPIM_RX_CFG, r_SPIM_RX_CFG, 0, *this),
NAMED(SPIM_CMD_CFG, r_SPIM_CMD_CFG, 0, *this) {}
if default, read/write masks specified in RDL description
Reactions are currently unavailable