Skip to content

Check the return value of the predict method #81

@antmarzam

Description

@antmarzam

Do not cast the uvm_reg predict method to void, instead check the return value.

Argument:
The predict method may fail depending on whether it uses UVM_PREDICT_READ, UVM_PREDICT_WRITE or UVM_PREDICT_DIRECT, and ignoring the return value effectively hides whether the prediction was successful or not.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions