Skip to content

Clarify always block arch state update visibility #103

@wysiwyng

Description

@wysiwyng

The current documentation does not explicitly state whether updates to the architectural state done in an always block should be visible in the following instruction behavior section. What is the consensus here?

Example:

Using this always block:

always {
    csr_inc {
        CSR[RV_CSR_CYCLE] += 1;
    }
}

What value would a CSRRx instruction return?

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