bedf1ba50b083b11f44eefdabcb8a9bedf7591c0
[libreriscv.git] / docs / pinmux.mdwn
1 # Pinmux, IO Pads, and JTAG Boundary scan
2
3 Links:
4
5 * <http://www2.eng.cam.ac.uk/~dmh/4b7/resource/section14.htm>
6 * <https://ftp.libre-soc.org/Pin_Control_Subsystem_Overview.pdf>
7
8 Managing IO on an ASIC is nowhere near as simple as on an FPGA.
9 An FPGA has built-in IO Pads, the wires terminate inside an
10 existing silicon block which has been tested for you. In an
11 ASIC, a bi-directional IO Pad requires three wires (in, out,
12 out-enable) to be routed right the way from the ASIC, all
13 the way to the IO PAD, where only then does a wire bond connect
14 it to a single pin.
15
16 <img src="https://www10.edacafe.com/book/ASIC/CH02/CH02-44.gif" />
17
18 Designing an ASIC, there is no guarantee that the IO pad is
19 working when manufactured. Worse, the peripheral could be
20 faulty. How can you tell what the cause is? There are two
21 possible faults, but only one symptom ("it dunt wurk").
22 This problem is what JTAG Boundary Scan is designed to solve.
23 JTAG can be operated
24 at very low clock frequencies (5 khz is perfectly acceptable)
25 so there is very little risk of clock skew during that testing.
26
27 Additionally, an SoC is designed to be low cost, to use low cost
28 packaging. ASICs are typically 32 to 128 pins QFP
29 only in the Embedded
30 Controller range, and between 300 to 650 FBGA in the Tablet /
31 Smartphone range, absolute maximum of 19 mm on a side.
32 1,000 pin packages common to Intel desktop processors are
33 absolutely out of the question.
34
35 Yet, the expectation from the market is to be able to fit 1,000++
36 pins worth of peripherals into only 200 to 400 worth of actual
37 IO Pads. The solution here: a GPIO Pinmux, described in some
38 detail here <https://ftp.libre-soc.org/Pin_Control_Subsystem_Overview.pdf>
39
40 This page goes over the details and issues involved in creating
41 an ASIC that combines **both** JTAG Boundary Scan **and** GPIO
42 Muxing, down to layout considerations using coriolis2.
43
44 <img src="https://libre-soc.org/shakti/m_class/JTAG/jtag-block.jpg"
45 width=600 />
46