Minres / CoreDSL

Xtext project to parse CoreDSL files
Apache License 2.0
16 stars 3 forks source link

Clarify `always` block arch state update visibility #103

Open wysiwyng opened 1 year ago

wysiwyng commented 1 year ago

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?