add jtag boundary scan image
[libreriscv.git] / nlnet_2021_lip6_vlsi.mdwn
1 # NLnet LIP6 VLSI Project Grant
2
3 * Code: 2021-08-049
4 * Approved: 09 Nov 2021
5
6 ## Project name
7
8 LIP6 VLSI Tools
9
10 ## Website / wiki
11
12 <https://libre-soc.org/nlnet_2021_lip6_vlsi>
13
14 Please be short and to the point in your answers; focus primarily on
15 the what and how, not so much on the why. Add longer descriptions as
16 attachments (see below). If English isn't your first language, don't
17 worry - our reviewers don't care about spelling errors, only about
18 great ideas. We apologise for the inconvenience of having to submit in
19 English. On the up side, you can be as technical as you need to be (but
20 you don't have to). Do stay concrete. Use plain text in your reply only,
21 if you need any HTML to make your point please include this as attachment.
22
23 ## Abstract: Can you explain the whole project and its expected outcome(s).
24
25 LIP6's VLSI tools are one of the few user-operated toolchains for creating
26 ASIC layouts where the full source code is available for inspection.
27 This means that there is no opportunity for insertion of rogue hardware
28 into an ASIC made by LIP6 tools which could compromise user trust, either locally or for
29 internet use. Further: academic, public and free discussion are all
30 engendered and fostered where at present NDAs rife through the VLSI
31 Industry prevent and prohibit discussion and general improvements beneficial
32 to users.
33
34 The expected outcome is to improve Coriolis2, HITAS/YAGLE and extend the
35 whole toolchain so that it is faster, able to handle larger ASIC designs,
36 and can perform Logical Validation. Also to be improved and tested is
37 support for lower geometries (starting with 130nm)
38
39 # Have you been involved with projects or organisations relevant to this project before? And if so, can you tell us a bit about your contributions?
40
41 LIP6 has created the ASIC Layout for the Libre-SOC 180nm ASIC that went to
42 IMEC TSMC MPW in June 2021. It was developed entirely with Libre source code
43 from HDL to GDS-II, the only NDA being the TSMC PDK.
44
45
46 # Requested Amount
47
48 EUR $50,000.
49
50 # Explain what the requested budget will be used for?
51
52 To improve the speed of the GUI front-end, to make it possible to
53 handle larger ASIC designs, to add LVS capability, improve the internal
54 data format (to better handle mixed case module and signal names), integrate
55 the Static Timing Analysis tool (HITAS) and YAGLE gate-level extraction tool, to complete the conversion
56 to python 3,
57 to try smaller geometry ASICs (beginning with 130nm), and potentially
58 investigate using multi-processing to speed up completion.
59
60 # Does the project have other funding sources, both past and present?
61
62 LIP6 is part of Sorbonne University. The developers and maintainers
63 of Coriolis2, HITAS/TAGLE, and Alliance, are all employed by Sorbonne
64 University. For the Libre-SOC 180nm ASIC development an NLnet Grant
65 was received, most of this work is now completed.
66
67 # Compare your own project with existing or historical efforts.
68
69 The only other major proven VLSI Toolchain that is Libre Licensed and
70 has created successful ASICs is Magic, selected as part of the OpenROAD
71 toolchain. The entire OpenROAD toolchain is based on tcl/tk, a late 1980s
72 scripting language technology. LIP6 VLSI tools are written in c++ and python,
73 which are modern much better well-known programming languages. With python
74 being so well-known and prevalent it is much easier to operate and
75 coriolis2
76 for the development of complex reproducible ASIC layouts.
77
78 ## What are significant technical challenges you expect to solve during the project, if any?
79
80 The size of databases for VLSI ASIC Layout are extremely large, and a huge
81 amount of computing power is needed, in one single machine. In addition
82 a huge amount of specialist knowledge of VLSI and silicon is needed,
83 completely separately from actual Software Engineering skills. These
84 three factors combine to really tax the development of VLSI tools.
85
86 ## Describe the ecosystem of the project, and how you will engage with relevant actors and promote the outcomes?
87
88 The entire source code is developed and available immediately, through LIP6
89 online resources including gitlab instance, mailing list, and website.
90 Sorbonne University and LIP6 both have twitter accounts, and the developers
91 write Academic papers and present at conferences. In addition, they work
92 with the Libre-SOC Team to promote milestones and developments.
93
94 # Extra info to be submitted
95
96 # Questions 01 Oct 2020
97
98 **What rates were used, and what main tasks are there**
99
100 we estimate the rates based on LIP6 University hiring an additional engineer in France, at commercial rates, to be around EUR 3000 to 4000 a month.
101
102 * training a new Engineer on coriolis2 c++/python internals: estimated
103 2 months
104 * porting to python3 estimated 2 months (some libraries have to be removed and rewritten) including re-running several designs and checking they are still the same.
105 * porting and updating of older (Alliance) layout extractor tools
106 (solstice, equinox) to newer (c++/python) coriolis2 as pure
107 netlist extractor: 2 months
108 * adding limited electrical information extraction (wire resistance
109 and capacitance) to the new layout extractor: 4-6 weeks
110 * researching Logical Equivalence algorithms and Academic papers to ensure good knowledge before proceeding: 4 to 5 weeks.
111 * implementation of Logical Equivalence checker: 10 to 14 weeks.
112 this is **not** the same as an **extraction** tool (above). the LEQ tool
113 **uses** (checks) the extracted database.
114 * validation of Logical Equivalence checker against simulations and other (proprietary) checkers: 5 to 7 weeks
115 * Identifying locations in 150,00 lines of code which can be parallelised by "divide and conquer", and those which can be "threaded": 3 weeks
116 * separation of code into separate processes ("divide and conquer"): 2 months
117 * adding "mutex" (exclusion) protection around code which can be "threaded": 2 months
118 * debugging and stabilising of both of the above: 2 months.
119 * alternative file formats and data structures which support case-sensitive net names: 2 months
120 * HITAS/YAGLE integration into coriolis2, updating license and documentation: 2 months
121
122 **You mention you will be able to perform Logical Validation.
123 Can you expand a bit on that, what assurances could that bring?**
124
125 Short summary:
126
127 there are two main ways to check that the HDL matches (is "equivalent") with the transistor layout, which has many changes made:
128
129 1) simulation. for large designs this requires supercomputers for months and sometimes years to complete the simulation. realistically, only a
130 very small number of cycles can be run (several days to run one "clock" cycle).
131
132 2) Formal Mathematical "Logical equivalence". this performs boolean logic analysis and takes only hours (or days for very large designs).
133
134 it is extremely important for a professional VLSI toolchain to have this capability.
135
136 Longer version:
137
138 As I assume you are not familiar with making ASIC, I will try to
139 explain with sufficient details while not being too long.
140
141 * The Place & Route (P&R) step of making an ASIC takes in input,
142 you can think of it as a "specification", a netlist.
143 * A netlist is, or can be understood as:
144 1. A specialized kind of electrical schematic with (in digital
145 cases) all components being 1 bit memories or boolean functions
146 (AND, OR, NOR, ...).
147 2. A gigantic automaton, or set of big boolean equations.
148 The fact that all the components are either memories or logical
149 functions enable that.
150 * Checking that the P&R has worked correctly amount to re-create
151 a netlist *from* the layout generated by the router. And, then,
152 perform a comparison of the *specification* netlist and the
153 one coming from the layout. Of course, they must be identical...
154 This is a "simple" graph comparison.
155 * BUT, during the P&R, to meet electrical constraints like timing or
156 good power supply, the specification netlist *is modified*.
157 For example, the clock is split into a clock-tree to ensure
158 synchronicity all over the design or some very long wire is
159 broken into smaller ones. In some cases, more drastic operations
160 can be performed, like completely changing the way the boolean
161 computations are done.
162 * So, after extraction, we end up with two *different* netlists,
163 which *should* implement the same automaton, hence the concept
164 of "logical equivalence" (LEQ).
165 * Currently, with Alliance/Coriolis, we check that the *modificated*
166 netlist is identical to the one extracted from the layout.
167 But we don't know with mathematical certainty that the
168 *modificated* one is equivalent (not equal) to the specification
169 one.
170 Of course we have made some other tests to check that (pattern
171 simulation) but it's not foolproof (to have good coverage the
172 number of pattern grows in 2^N where N is the number of memory
173 *bits* in the circuit...).