From: Luke Kenneth Casson Leighton Date: Sun, 5 Dec 2021 22:02:49 +0000 (+0000) Subject: code-comments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cddf2ac64e4f878e2abc6603fbfa3990c086ed09;p=soc.git code-comments --- diff --git a/src/soc/fu/mmu/fsm.py b/src/soc/fu/mmu/fsm.py index 96a5d517..a7930232 100644 --- a/src/soc/fu/mmu/fsm.py +++ b/src/soc/fu/mmu/fsm.py @@ -120,6 +120,11 @@ class FSMMMUStage(ControlBase): # WIP: properly implement MicrOp.OP_MTSPR and MicrOp.OP_MFSPR with m.Switch(op.insn_type): + + ########## + # OP_MTSPR + ########## + with m.Case(MicrOp.OP_MTSPR): comb += Display("MMUTEST: OP_MTSPR: spr=%i", spr) # despite redirection this FU **MUST** behave exactly @@ -156,6 +161,10 @@ class FSMMMUStage(ControlBase): comb += l_in.rs.eq(a_i) # incoming operand (RS) comb += done.eq(1) # FIXME l_out.done + ########## + # OP_MFSPR + ########## + with m.Case(MicrOp.OP_MFSPR): comb += Display("MMUTEST: OP_MFSPR: spr=%i returns=%i", spr, spr1_i) @@ -177,6 +186,10 @@ class FSMMMUStage(ControlBase): comb += o.ok.eq(1) comb += done.eq(1) + ########## + # OP_TLBIE + ########## + with m.Case(MicrOp.OP_TLBIE): comb += Display("MMUTEST: OP_TLBIE: insn_bits=%i", spr) # pass TLBIE request to MMU (spec: v3.0B p1034) @@ -192,6 +205,10 @@ class FSMMMUStage(ControlBase): comb += done.eq(l_out.done) # zzzz comb += self.debug0.eq(2) + ############ + # OP_ILLEGAL + ############ + with m.Case(MicrOp.OP_ILLEGAL): comb += self.illegal.eq(1)