Jump to content

Register sequence stops at regmodel.reset();


Recommended Posts

Hi,

I have a register sequence which reads two registers and resets the register model and then updates the reset value to the DUT.

my sequence is

class xyz extends uvm_reg_sequence

task body

read_reg(regmodel.SPICR,status,data);

read_reg(regmodel.SPISR,status,data);

regmodel.reset();

update_reg(regmodel.SPIDR,status,data)

//and all other registers in the model.

end

Problem: Simulation stops at regmodel.reset().

The same sequence if written in the following manner works fine.

class xyz extends uvm_reg_sequence

task body

regmodel.reset();

read_reg(regmodel.SPICR,status,data);

read_reg(regmodel.SPISR,status,data);

update_reg(regmodel.SPIDR,status,data)

//and all other registers in the model.

end

why does the simulation stop in the first sequence???

regards,

KB

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