move comments
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Apr 2019 17:49:28 +0000 (18:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 14 Apr 2019 17:49:28 +0000 (18:49 +0100)
TLB/src/ariane/tlb.py

index 176693484c08840870966ae18182ad8686d46e38..32041c0af593d9339962adb3ebeb9c36472ac163 100644 (file)
@@ -266,12 +266,13 @@ class TLB:
         #-------------
         # Translation
         #-------------
+
+        # SV39 defines three levels of page tables
         m.d.comb += [ vpn0.eq(self.lu_vaddr_i[12:21]),
                       vpn1.eq(self.lu_vaddr_i[21:30]),
                       vpn2.eq(self.lu_vaddr_i[30:39]),
                     ]
 
-        # SV39 defines three levels of page tables
         tc = []
         for i in range(TLB_ENTRIES):
             tlc = TLBContent(self.pte_width)