Skip to content

singlepulse in uvm is not volatile #311

@pentin-as

Description

@pentin-as

Hello.

When I write in RDL:

field {
  sw = w;
  hw = r;
  singlepulse;
  name = "Reset";
} RESET = 0;

The resulting code is:

this.RESET = uvm_reg_field::type_id::create("RESET");
this.RESET.configure(this, 1, 0, "WO", 0, 'h0, 1, 1, 0);

That is, the volatile bit == 0.

To set volatile to 1, I need to write hw = rw. But that's not true. In fact, hw = r. Furthermore, writing hw = rw will cause unnecessary write signals in the regblock.

I understand that UVM RAL doesn't have the concept of singlepulse. But shouldn't volatile be set to 1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions