enable issuer_verilog.py to generate new MMU/DCache config memory type
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 1 May 2021 20:47:27 +0000 (21:47 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 1 May 2021 20:47:27 +0000 (21:47 +0100)
src/soc/simple/issuer_verilog.py

index 3632d0e65749e73549292a74497948ada4cddf89..8c0f8e1f5b8cc6a1a3d3e4f5947350e880c428e5 100644 (file)
@@ -74,8 +74,15 @@ if __name__ == '__main__':
     if args.mmu:
         units['mmu'] = 1 # enable MMU
 
-    pspec = TestMemPspec(ldst_ifacetype='bare_wb',
-                         imem_ifacetype='bare_wb',
+    # decide which memory type to configure
+    if args.mmu:
+        ldst_ifacetype = 'mmu_cache_wb'
+    else:
+        ldst_ifacetype = 'bare_wb'
+    imem_ifacetype = 'bare_wb'
+
+    pspec = TestMemPspec(ldst_ifacetype=ldst_ifacetype,
+                         imem_ifacetype=imem_ifacetype,
                          addr_wid=48,
                          mask_wid=8,
                          # must leave at 64