From: Luke Kenneth Casson Leighton Date: Sun, 11 Oct 2020 13:50:11 +0000 (+0100) Subject: record commands for building ECP5 X-Git-Tag: 24jan2021_ls180~161 X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=commitdiff_plain;h=4c743fd5828bfff6bb030a8c9f6f898fec2138dc record commands for building ECP5 --- diff --git a/src/soc/litex/florent/README.txt b/src/soc/litex/florent/README.txt index 71d55183..2cab6638 100644 --- a/src/soc/litex/florent/README.txt +++ b/src/soc/litex/florent/README.txt @@ -1,4 +1,11 @@ +# sim openocd test + create verilog file "python issuer_verilog libresoc.v" copy to libresoc/ directory terminal 1: ./sim.py terminal 2: openocd -f openocd.cfg -c init -c 'svf idcode_test2.svf' + +# ecp5 build + +./versa_ecp5.py --sys-clk-freq=55e6 --build +./versa_ecp5.py --sys-clk-freq=55e6 --load diff --git a/src/soc/litex/florent/ls180soc.py b/src/soc/litex/florent/ls180soc.py index 9da9d180..4279effc 100755 --- a/src/soc/litex/florent/ls180soc.py +++ b/src/soc/litex/florent/ls180soc.py @@ -521,6 +521,8 @@ class LibreSoCSim(SoCCore): if not debug: return + jtag_en = ('jtag' in variant) or variant == 'ls180' + # setup running of DMI FSM dmi_addr = Signal(4) dmi_din = Signal(64) diff --git a/src/soc/litex/florent/versa_ecp5.py b/src/soc/litex/florent/versa_ecp5.py index d2e157d7..55787f25 100755 --- a/src/soc/litex/florent/versa_ecp5.py +++ b/src/soc/litex/florent/versa_ecp5.py @@ -26,6 +26,7 @@ class TestSoC(BaseSoC): BaseSoC.__init__(self, sys_clk_freq, cpu_type = "external", cpu_cls = LibreSoC, + cpu_variant = "standardjtag", #cpu_cls = Microwatt, device = "LFE5UM", **kwargs)