attempting to get libre-soc boot on ulx3s-85f
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 10 Feb 2022 15:53:58 +0000 (15:53 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 10 Feb 2022 15:53:58 +0000 (15:53 +0000)
README.txt
versa_ecp5.py

index b7eb1414fe9951a5cb62fff6e67f5225248fd4a4..4dd5e0d4fc8416b4cdc6e0e5ca7c899ec2aef2c9 100644 (file)
@@ -17,6 +17,8 @@ same thing: first build libresoc.v and copy it to the libresoc/ directory
 # arty a7 build
 
 export PATH=$PATH:/usr/local/symbiflow/bin/:/usr/local/symbiflow/vtr/bin/
-./versa_ecp5.py --sys-clk-freq=100e6 --build  --fpga=artya7100t \
+./versa_ecp5.py --sys-clk-freq=25e6 --build  --fpga=artya7100t \
+                    --toolchain=symbiflow
+./versa_ecp5.py --sys-clk-freq=25e6 --load --fpga=artya7100t  \
                     --toolchain=symbiflow
 
index a3772e793b3f6c2bb5c7afd5a11229e4479b7f3b..42ff88f24b2bf4c7d766547f4c83439508a31f32 100755 (executable)
@@ -84,6 +84,7 @@ class ULX3S85FTestSoC(ulx3s.BaseSoC):
         kwargs["integrated_rom_size"] = 0x10000
         #kwargs["integrated_main_ram_size"] = 0x1000
         kwargs["csr_data_width"] = 32
+        kwargs['csr_address_width'] = 15 # limit to 0x8000
         kwargs["l2_size"] = 0
         #bus_data_width = 16,
 
@@ -126,9 +127,9 @@ class ArtyTestSoC(arty.BaseSoC):
         arty.BaseSoC.__init__(self,
             sys_clk_freq = sys_clk_freq,
             cpu_type     = "external",
-            #cpu_cls      = LibreSoC,
-            #cpu_variant  = "standardjtag",
-            cpu_cls      = Microwatt,
+            cpu_cls      = LibreSoC,
+            cpu_variant  = "standardjtag",
+            #cpu_cls      = Microwatt,
             variant      = "a7-100",
             toolchain    = "symbiflow",
             **kwargs)
@@ -160,7 +161,6 @@ def main():
                                **soc_sdram_argdict(args))
 
     elif args.fpga == "ulx3s85f":
-        trellis_args(parser)
         soc = ULX3S85FTestSoC(sys_clk_freq=int(float(args.sys_clk_freq)),
                               **soc_sdram_argdict(args))