Jump to content

Using different RAL maps by the same sequece


Recommended Posts

In a sequence, I normally call regmodel.reg_name.write(status, data);

then it uses default_map

For a different map, instead regmodel.reg_name.write(status,data,,alt_map);

assuming alt_map is defined in regmodel

What I'd like to do is to remove knowledge of the maps from the sequence so its read/write calls will be to different maps at the descretion of the test that starts the sequence.

I don't think I wand to set regmodel.default_map = regmodel.alt_map before starting the sequence.

Maybe I need to have the sequence always read and write with a local_map and set myseq.local_map = regmodel.alt_map or regmodel.default map before starting it?

Something better?

George

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