add comment headings with spec page numbers
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jul 2020 12:50:31 +0000 (13:50 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 22 Jul 2020 12:50:31 +0000 (13:50 +0100)
src/soc/fu/trap/formal/proof_main_stage.py

index b2e4c498c405cb759925f7ee73d6cb85bcd86b4f..dc257292ea03491e49343453894ec7e67e34474b 100644 (file)
@@ -61,6 +61,10 @@ class Driver(Elaboratable):
 
         # start of properties
         with m.Switch(op.insn_type):
+
+            ###############
+            # TDI/TWI/TD/TW.  v3.0B p90-91
+            ###############
             with m.Case(MicrOp.OP_TRAP):
                 # TODO: put back use of fields, do not access insn bits direct
                 # see https://bugs.libre-soc.org/show_bug.cgi?id=421#c24
@@ -157,6 +161,9 @@ class Driver(Elaboratable):
                         Assert(nia_o.data == op.trapaddr << 4),
                     ]
 
+            #################
+            # SC.  v3.0B p952
+            #################
             with m.Case(MicrOp.OP_SC):
                 expected_msr = Signal(len(msr_o.data))
                 comb += expected_msr.eq(op.msr)
@@ -220,6 +227,9 @@ class Driver(Elaboratable):
                 with m.Else():
                     comb += Assert(msr_o[MSR.HV] == 0)
 
+            ###################
+            # RFID.  v3.0B p955
+            ###################
             with m.Case(MicrOp.OP_RFID):
                 comb += [
                     Assert(msr_o.ok),