Skip to content

[feature request] default values, read/write masks? #9

Description

@uzleosharif

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions