Skip to content

About the write data and operand question. #249

@weiqi7777

Description

@weiqi7777

hi:

We see the data trace description, and confuse the write data and operand.

The spec say:

Atomic and CSR accesses have either both load and store data, or store data and an operand. For CSRs
and unified atomics, both values are reported via data, with the store data in the LSBs and the load
data or operand in the MSBs

So how to understanding write data and operand.

From the referenceFlow, we look the data encoder python code, and know:

For CSR instruction:

Image
  • write data is the rd register value
  • rs1 value is the operand

For store exclusive instruciton:
Image

  • write data is the rd register value
  • rs2 value is the operand

Is this understanding correct?

thanks

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