From: colepoirier@1ec9c8c87c85f09e4718cd80e0605065e33975f0 Date: Wed, 4 Nov 2020 18:27:54 +0000 (+0000) Subject: (no commit message) X-Git-Tag: convert-csv-opcode-to-binary~1862 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19fbdbc99fb61fc6f2d6b3c49e16dc0879e10270;p=libreriscv.git --- diff --git a/HDL_workflow/ECP5_FPGA.mdwn b/HDL_workflow/ECP5_FPGA.mdwn index 733c56acc..f6bc882fd 100644 --- a/HDL_workflow/ECP5_FPGA.mdwn +++ b/HDL_workflow/ECP5_FPGA.mdwn @@ -8,49 +8,9 @@ Cross referenced with: ## Original Instructions -lkcl: - - -> the JTAG TAP interface on the *FPGA* is hard-coded silicon. - -> the JTAG TAP interface connected on the processor and soft-implemented -> *by* the FPGA is likely completely inaccessible until someone -> allocates pins to "jtag_tdi/tdo/tms/tck" in the litex config. -> -> which means: someone's going to have to to through this file: -> -> (which defines the pin allocations) -> -> and in this file do some Voodoo Magic on this file's TestSoC: -> -> -> similar to these four lines: -> -> -> but instead doing something like... err.... -> -> gpio0_pads = platform.reqiest("gpio", 0) # because back in ulx3s.py there's gpio 0, 1, and 2 -> -> self.comb += self.cpu.jtag_tck.eq(gpio0_pads.p) # because again back in that file there are 2 pins, one named "p", one named "n" -> -> self.comb += self.cpu.jtag_tms.eq(gpio0_pads.n) # etc. -> -> and then request gpio1 for the other 2 pins -> -> theeeen you'll need to go back to that ulx3s.py litex platform file, -> look up the pin names B11, C11, A10, A11, and find out what the hell -> they are, whether they're suitable for use. -> -> if they are, then great! these are what you wire up the STLINKv2 to, -> according to what you decided to connect to just above. -> -> but for god's sake do not get this wrong, such as driving an input as -> an output or vice-versa, or wiring up 5.0V to GND with those -> jumper-cables. -> -> do *NOT* randomly upload and power up the ulx3s until this has been -> THOROUGHLY triple-checked. or, you are entirely free to not bother -> and to end up learning the hard way by destroying the FPGA. +See https://bugs.libre-soc.org/show_bug.cgi?id=517#c0 + +TODO checklist based on above ## Connecting the dots: