add option for QTY 4x 4k SRAM blocks (not added yet) to issuer_verilog
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Feb 2021 14:39:14 +0000 (14:39 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 20 Feb 2021 14:39:14 +0000 (14:39 +0000)
src/soc/simple/issuer_verilog.py

index ffeb7dc588ce01de832dca24af83443b4b583eb4..f9e655008359902ab8088f31cada5e9d17441d7b 100644 (file)
@@ -33,6 +33,9 @@ if __name__ == '__main__':
     parser.add_argument("--enable-testgpio", action="store_true",
                         help="Disable gpio pins",
                         default=False)
+    parser.add_argument("--enable-sram4x4kblock", action="store_true",
+                        help="Disable sram 4x4k block",
+                        default=False)
     parser.add_argument("--debug", default="jtag", help="Select debug " \
                         "interface [jtag | dmi] [default jtag]")
 
@@ -63,11 +66,13 @@ if __name__ == '__main__':
                          nocore=not args.core, # test coriolis2 ioring
                          use_pll=args.pll,  # bypass PLL
                          gpio=args.enable_testgpio, # for test purposes
+                         sram4x4kblock=args.enable_sram4x4kblock, # add SRAMs
                          debug=args.debug,      # set to jtag or dmi
                          units=units)
 
     print("nocore", pspec.__dict__["nocore"])
     print("gpio", pspec.__dict__["gpio"])
+    print("sram4x4kblock", pspec.__dict__["sram4x4kblock"])
     print("xics", pspec.__dict__["xics"])
     print("use_pll", pspec.__dict__["use_pll"])
     print("debug", pspec.__dict__["debug"])