Docs: small clarification in frontend and isa specs (#1051)

This commit is contained in:
cathales 2023-02-08 15:43:14 +01:00 committed by GitHub
parent 215b45037e
commit d8f526e6d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -566,7 +566,7 @@ BHT (Branch History Table) submodule
- in
- EXECUTE
- bht_update_t
- Update btb with resolved address
- Update bht with resolved address
* - ``bht_prediction_o``
- out
@ -592,7 +592,7 @@ The BHT is not updated if processor is in debug mode.
When a branch instruction is pre-decoded by instr_scan submodule, the BHT informs whether the PC address is in the BHT. In this case, the BHT predicts whether the branch is taken and provides the corresponding target address.
The BTB is never flushed.
The BHT is never flushed.
BTB (Branch Target Buffer) submodule

View file

@ -43,7 +43,7 @@ Table 1.1 shows the general-purpose registers :
-
- x1
- ra
- Return address
- Return address (link register)
* - 2
-
- x2
@ -465,6 +465,8 @@ Control Transfer Instructions
**Description**: takes the branch (pc is calculated using signed arithmetic) if registers rs1 is greater than or equal rs2 (using unsigned comparison).
**Invalid values**: NONE
**Pseudocode**: if (x[rs1] >=u x[rs2]) pc += sext({imm[12:1], 1b0}) else pc += 4
**Exception raised**: no instruction fetch misaligned exception is generated for a conditional branch that is not taken.
@ -742,7 +744,7 @@ Load-Reserved/Store-Conditional Instructions
**Exception raised**: If the address is not naturally aligned (4-byte boundary), a misaligned address exception will be generated.
- **LR.W**: Store-Conditional Word
- **SC.W**: Store-Conditional Word
**Format**: sc.w rd, rs2, (rs1)
@ -1168,7 +1170,7 @@ Load and Store Instructions
- **C.SWSP**: Store Word Stack-Pointer
**Format**: c.lwsp rd, uimm(x2)
**Format**: c.swsp rd, uimm(x2)
**Description**: stores a 32-bit value in register rs2 to memory. It computes an effective address by adding the zero-extended offset, scaled by 4, to the stack pointer, x2.