Jump to content

incomplete example code for clarification

Recommended Posts

  • 4 weeks later...

Nice catch. This will be addressed in the 1.0 version. The example doesn't need to change, but the accompanying text will be updated as follows:

In Example 30 and Example 31, component pss_top contains two instances of component sub_c, named s1 and s2.
Component sub_c contains a data field named base_addr that controls offset addr when action A is traversed.
During construction of the component tree, component pss_top sets s1.base_addr=0x1000 and
Action pss_top::entry traverses action sub_c::A twice. Depending on which component instance
sub_c::A is associated with during traversal, it will cause sub_c::A to be associated with a different
— If sub_c::A executes in the context of pss_top.s1, sub_c::A uses 0x1000.
— If sub_c::A executes in the context of pss_top.s2, sub_c::A uses 0x2000.

Link to post
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.

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...