Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerattion description field missing from xml #21

Closed
tkafafi opened this issue Mar 29, 2020 · 2 comments
Closed

Enumerattion description field missing from xml #21

tkafafi opened this issue Mar 29, 2020 · 2 comments

Comments

@tkafafi
Copy link

tkafafi commented Mar 29, 2020

Please add the enumeration description field highlighted in bold to the generated xml.
Thanks

e.g RDL:

field STS { reset = 0; hw = w; sw = r; }; //RO
reg {STS dma_rch_reg[1:0];} sts_fsm;
sts_fsm->desc="Finite State Machines Status Register";
sts_fsm.dma_rch_reg->desc="State of DMA Registers Read Channel statemachine";
enum fsm_dma_rch {
STATE_IDLE = 2'h0 {desc = "Idle";};
STATE_READ_REQ = 2'h1 {desc = "Request arbitration";};
STATE_READ_DATA = 2'h2 {desc = "Data phase";};
STATE_ERR = 2'h3 {desc = "Error state";};
};
sts_fsm.dma_rch_reg->encode=fsm_dma_rch;

Requested XML output: (add <enc_elem_desc>)

    <enum_encode>
      <enc_name>fsm_dma_rch</enc_name>
      <enc_elem>
        <enc_elem_name>STATE_IDLE</enc_elem_name>
        <enc_elem_value>0x0</enc_elem_value>
        <enc_elem_desc><![CDATA[Idle]]></enc_elem_desc>
      </enc_elem>
      <enc_elem>
        <enc_elem_name>STATE_READ_REQ</enc_elem_name>
        <enc_elem_value>0x1</enc_elem_value>
        <enc_elem_desc><![CDATA[Request arbitration]]></enc_elem_desc>
      </enc_elem>
      <enc_elem>
        <enc_elem_name>STATE_READ_DATA</enc_elem_name>
        <enc_elem_value>0x2</enc_elem_value>
        <enc_elem_desc><![CDATA[Data phase]]></enc_elem_desc>
      </enc_elem>
      <enc_elem>
        <enc_elem_name>STATE_ERR</enc_elem_name>
        <enc_elem_value>0x3</enc_elem_value>
        <enc_elem_desc><![CDATA[Error state]]></enc_elem_desc>
      </enc_elem>
    </enum_encode>
@sdnellen
Copy link
Owner

sdnellen commented Apr 6, 2020

submitted mod to add enc_elem_desc

@tkafafi
Copy link
Author

tkafafi commented Oct 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants