From: Luke Kenneth Casson Leighton Date: Sat, 26 Sep 2020 11:19:24 +0000 (+0100) Subject: add openocd configs X-Git-Tag: 24jan2021_ls180~320 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=495329497bff91c8ab3b7ca07b65b1eb489d408d;p=soc.git add openocd configs --- diff --git a/src/soc/litex/florent/README.txt b/src/soc/litex/florent/README.txt new file mode 100644 index 00000000..71d55183 --- /dev/null +++ b/src/soc/litex/florent/README.txt @@ -0,0 +1,4 @@ +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' diff --git a/src/soc/litex/florent/idcode_test.svf b/src/soc/litex/florent/idcode_test.svf new file mode 100644 index 00000000..4c31a229 --- /dev/null +++ b/src/soc/litex/florent/idcode_test.svf @@ -0,0 +1,27 @@ +// Created using Xilinx iMPACT Software [ISE WebPACK - 5.1i] +TRST OFF; +ENDIR IDLE; +ENDDR IDLE; +STATE RESET IDLE; +TIR 0 ; +HIR 0 ; +TDR 0 ; +HDR 0 ; +// Validating chain... +TIR 0 ; +HIR 0 ; +TDR 0 ; +HDR 0 ; +SIR 4 TDI (f) SMASK (f) ; +TIR 0 ; +HIR 5 TDI (1f) SMASK (1f) ; +// don't set header to 1 extra bit +//HDR 1 TDI (00) SMASK (01) ; +TDR 0 ; +//Loading device with 'idcode' instruction. +SIR 4 TDI (1) SMASK (f) ; +SDR 32 TDI (00000000) SMASK (ffffffff) TDO (000018ff) MASK (ffffffff) ; +//Loading device with 'conld' instruction. +//SIR 8 TDI (f0) ; +RUNTEST 110000 TCK; + diff --git a/src/soc/litex/florent/idcode_test2.svf b/src/soc/litex/florent/idcode_test2.svf new file mode 100644 index 00000000..d2112fc0 --- /dev/null +++ b/src/soc/litex/florent/idcode_test2.svf @@ -0,0 +1,20 @@ +STATE RESET IDLE; +TIR 0 ; +HIR 5 TDI (1f) SMASK (1f) ; +//HDR 1 TDI (00) SMASK (01) ; +TDR 0 ; +//Loading device with 'idcode' instruction. +SIR 4 TDI (1) SMASK (1) ; +//SDR 32 TDI (00000000) SMASK (ffffffff) TDO (00000c7f) SMASK (ffffffff) ; +SDR 32 TDI (00000000) SMASK (ffffffff) TDO (000018ff) MASK (ffffffff) ; +// +// set to DMI "address" +SIR 4 TDI (8) SMASK (f) ; +// set DMI "ctrl" address (0) +SDR 8 TDI (2) SMASK (ff) ; +// set to DMI "data read" +SIR 4 TDI (9) SMASK (f) ; +// read 64 bit +//SDR 32 TDI (00000000) SMASK (ffffffff) TDO (000018ff) MASK (ffffffff) ; +//SDR 32 TDI (00000000) SMASK (00000000) TDO (00000000) MASK (ffffffff) ; +SDR 64 TDI (0000000000000000) SMASK (0000000000000000) TDO (0000000000000000) MASK (ffffffffffffffff) ; diff --git a/src/soc/litex/florent/openocd.cfg b/src/soc/litex/florent/openocd.cfg index 9cd40c3a..a3c7084a 100644 --- a/src/soc/litex/florent/openocd.cfg +++ b/src/soc/litex/florent/openocd.cfg @@ -6,8 +6,8 @@ remote_bitbang_host localhost # this should be irlen=4 jtag newtap libresoc tap -irlen 4 -irmask 0xf -ircapture 0xf -expected-id 0x000018ff -set _TARGETNAME libresoc.tap -target create $_TARGETNAME.0 ppc64 -chain-position $_TARGETNAME -rtos hwthread +#set _TARGETNAME libresoc.tap +#target create $_TARGETNAME.0 ppc64 -chain-position $_TARGETNAME -rtos hwthread # Configure work area in on-chip SRAM #$_TARGETNAME.0 configure -work-area-phys 0x80000000 \