From 76b6e83d605fe31af6cf91fda4bbace6dfe92d6d Mon Sep 17 00:00:00 2001 From: Natalie Agus Date: Mon, 22 Apr 2024 12:55:01 +0800 Subject: [PATCH] fix: fix constant addr --- docs/Software/i_betacpudiagnostics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Software/i_betacpudiagnostics.md b/docs/Software/i_betacpudiagnostics.md index c796104..53498b1 100644 --- a/docs/Software/i_betacpudiagnostics.md +++ b/docs/Software/i_betacpudiagnostics.md @@ -232,7 +232,7 @@ The content at `Mem[constant+8]` will be 8 instead of 12 if only the `RA2SEL` mu **Explanation**: * If the `ASEL` mux is faulty, we will be adding `0` (instead of the content of `R0` which is `8`) with the content of `R1` (which is `4`) and storing it at `R2`. The content of `R2 = 0 + Reg[R1] = 4` instead of the expected `12`. -* `constant` is equivalent to address `24`, or `0x0018`. This makes bit 15 to bit 11 of the `ST` instruction to be `00000` +* `constant` is equivalent to address `20`, or `0x0014`. This makes bit 15 to bit 11 of the `ST` instruction to be `00000` * If `RA2SEL` mux is faulty, we will be storing the **content** of `R0` (which is `8`) instead of the **content** of `R2` (which might be 4 or 12 depending on whether `ASEL` mux is faulty)