Jump to content

How to set the reset value and mask per each field separately in ip-xact 2006.


carter

Recommended Posts

 

In 4.6.7.3 Example register definition from IP-XACT™ User Guide v1.2.pdf, The following register definition demonstrates with a snippet.

            VNL...

           <spirit:register>                                                       
          <spirit:name>ureg1</spirit:name>                                       
          <spirit:addressOffset>4</spirit:addressOffset>                         
          <spirit:size>32</spirit:size>                                          
          <spirit:reset>                                                         
            <spirit:value>0x12345678</spirit:value>                              
            <spirit:mask>0xffffffff</spirit:mask>                                
          </spirit:reset>                                                        
          <spirit:field>                                                         
            <spirit:name>destination</spirit:name>                               
            <spirit:bitOffset>0</spirit:bitOffset>                               
            <spirit:bitWidth>14</spirit:bitWidth>                                
          </spirit:field>                                                        
          <spirit:field>                                                         
            <spirit:name>frame_kind</spirit:name>                                
            <spirit:bitOffset>14</spirit:bitOffset>                              
            <spirit:bitWidth>2</spirit:bitWidth>                                 
          </spirit:field>
          <spirit:field>
            <spirit:name>rsvd</spirit:name>
            <spirit:bitOffset>16</spirit:bitOffset>
            <spirit:bitWidth>16</spirit:bitWidth>
          </spirit:field>
        </spirit:register>

        ...

 

There is implemented only one register reset for whole fields of a register

                     <spirit:reset>
                        <spirit:value>0x12345678</spirit:value>
                        <spirit:mask>0xffffffff</spirit:mask>
                    </spirit:reset>

 

Is there any way to set the reset to each individual fields not only one? Could you guide me how each fields can have reset value ?

 

 

 

 

ipxact_example.xml

Link to comment
Share on other sites

4 hours ago, kock said:

Hi,

You cannot describe register field resets in 1685-2009. The register reset value has to be used to compute the register field reset values.

Best regards,
Erwin

Thank you Erwin.

What IP-XACT version I can describe register field reset?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...