From: lkcl Date: Tue, 10 May 2022 16:20:14 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls005_v1~2272 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2b7d07e2e072578ce6d970c81dc91889cf18d5b9;p=libreriscv.git --- diff --git a/docs/pinmux.mdwn b/docs/pinmux.mdwn index eabac69f4..4e33ec0f2 100644 --- a/docs/pinmux.mdwn +++ b/docs/pinmux.mdwn @@ -524,7 +524,12 @@ and for writing, slightly different style: if sel[i]: GPIO[GPIO_num].eq(write_byte) -As explained in this video +As explained in this video +if each GPIO is mapped to one single byte, and it is assumed that +the `sel` lines are enough to **always** give byte-level read/write +then the GPIO number *becomes* the Memory-mapped byte number, hence +the use of `len(sel)` above. `len(dat_r)//8` would do as well +because these should be equal. ## Combining JTAG BS Chain and Pinmux (In Progress) [[!img io_mux_bank_planning.JPG size="600x"]]