(no commit message)
[libreriscv.git] / index.mdwn
1 <div class="jumbotron">
2 <h1 class="display-5">Welcome to Libre-SOC</h1>
3 <blockquote>
4 <p>We're building a chip. A fast chip. A safe chip. A trusted chip.
5 </p>
6
7 <p>A chip with lots of peripherals. And it's a VPU. And it's a 3D GPU...
8 </p>
9
10 <p>Oh and here, have the
11 <a href="http://git.libre-soc.org">Libre-SOC source code</a>...
12 </p>
13 </blockquote>
14 <hr class="my-4">
15
16 <h2 class="display-5">Why should I care?</h2>
17
18 With Libre-SOC, you can take complex algorithms usually intended for
19 power hungry servers with big fat GPUs, and run them on tiny devices
20 like smartwatches, cellphones, and pocket drones without changing your
21 code at all.
22
23 <hr class="my-4">
24
25 <h2 class="display-5">Hasn't Somebody Already Done This?</h2>
26
27 To the best of our knowledge, no. The closest systems would be ARM Cortex
28 devices which currently offer mediocre GPU and OpenCL support. Often
29 times, it is quite difficult for customers to get their hands on the
30 drivers and install them due to their locked down nature. Libre-SOC is
31 providing our own Free/Libre drivers. Easy as 1, 2, 3!
32
33 <hr class="my-4">
34
35 <h2 class="display-5">Does Open Hardware Really Work?</h2>
36 <p>A few names come to mind:</p>
37
38 <ul>
39 <li><a href="https://www.raspberrypi.org">Raspberry Pi</a></li>
40 <li><a href="https://www.arduino.cc">Arduino</a></li>
41 <li><a href="https://www.raptorcs.com">Raptor Computing Systems</a></li>
42 <li><a href="https://www.bitcraze.io">CrazyFlie</a></li>
43 <li><a href="https://www.scopefun.com">ScopeFun</a></li>
44 </ul>
45
46 <p class="lead">
47 <a class="btn btn-primary btn-lg" href="https://libre-soc.org/why_a_libresoc/" role="button">Learn more</a>
48
49 </div>
50
51
52
53 # Our Team
54
55 We are proud of our talented and diverse [team](about_us).
56
57 # Our sponsors and partners
58
59 * [Mythic Beasts](http://mythic-beasts.com) who don't overcommit on
60 their VPS allocations (no memory ballooning), and put servers on
61 the fastest backbone Internet points.
62 * [Purism](http://puri.sm) donates to us through [NLNet](nlnet)
63 charitable gifting
64 * [Raptor CS](http://raptorcs.com) has given us access to a powerful
65 18-core 128 GB RAM TALOS II workstation, online.
66 * [Raptor Engineering](https://raptorengineering.com) is providing
67 additional assistance including access to an [[shakti/m_class/LPC]]
68 interface (more to come)
69 * [MarketNext](http://marketnext.org) is helping us connect to developer
70 resources in Emerging markets, for completion of NLNet-funded tasks.
71 See the upcoming [Hackathon](https://www.youtube.com/embed/Px6eakWja3Q"),
72 deadline May 15th
73 * The [[PowerPC Notebook]] Project
74 * [RED Semiconductor](http://redsemiconductor.com) is the commercial realisation of Libre-SOC technology that respects and actively supports Libre principles in its business objectives.
75 * [[fed4fire]] for supercomputer access for verilator simulations,
76 with thanks to Ghent University / IMEC.
77
78 # Status and TODO <a name="TODO"></a>
79
80 This section covers more future tasks. A progress report
81 is available at the [[3d_gpu]] page.
82
83 | Date | Task | bug |
84 | -------- | ----------------------------------------- | ----- |
85 | Oct 2020 | Integer OpenPOWER ISA v3.0 implemented | [[!bug 383]] |
86 | Sep 2020 | ECP5 FPGA running basic bare metal | [[!bug 22]] |
87 | Jun 2021 | 180nm GDS-II IMEC tapeout Jun 9th | [[!bug 199]] |
88 | TODO | Complete MMU for GNU/Linux OSes | [[!bug 51]] |
89 | TODO | ISA Simulators | [[!bug 241]] |
90 | TODO | power-gem5 Simulator | [[!bug 581]] |
91 | TODO | binutils support for SVP64 | [[!bug 550]] |
92 | TODO | gcc support for SVP64 | [[!bug 558]] |
93 | TODO | [[openpower/sv/svp64]] Vectorisation | [[!bug 583]] |
94 | TODO | In-order execution engine | |
95 | TODO | out-of-order execution engine | [[!bug 81]] |
96 | TODO | Video Instructions and libraries | [[!bug 137]] |
97 | TODO | IEEE754 FP HDL Library | [[!bug 48]] |
98 | TODO | Kazan 3D Vulkan Driver | [[!bug 54]] |
99 | TODO | MESA 3D Vulkan Driver | [[!bug 251]] |
100 | TODO | 3D instructions | [[!bug 252]] |
101 | TODO | cryptographic [[openpower/sv/bitmanip]] instructions | |
102 | TODO | [[crypto_router_asic]] (130nm?) | [[!bug 589]] |
103 | TODO | Kestrel BMC Port | |
104 | TODO | Debug Working Group (JTAG, DMI, FSI) | |
105
106 # How Can I Help?
107
108 If you would like to fund us, see [[funding]]. We currently have some
109 funding and always appreciate more! If you are a Corporation or an
110 individual you can donate tax-free to NLNet, and they can in turn gift
111 our developers. Contact lkcl@lkcl.net for more information.
112
113 # How Can I Help as a Developer? <a name="help_as_developer"></a>
114
115 If you want to write code with us (and receive donations from NLNet
116 for doing so), keep reading. If you want to *learn*
117 so that you can write code with us, see "How can I learn" section,
118 below. If there is anything else,
119 just get in touch on the list, there is plenty to do.
120
121 1. First, join the
122 [mailing list](http://lists.libre-soc.org/mailman/listinfo/libre-soc-dev),
123 introduce yourself (people will happily say "hello" back) and
124 the Libera IRC channel
125 (#libre-soc at irc.libera.chat port 6697, see
126 https://libera.chat/guides/connect), [logs here](https://libre-soc.org/irclog/latest.log.html).
127 Read through
128 [recent posts](http://lists.libre-soc.org/pipermail/libre-soc-dev/)
129 and the [[charter]], ask questions if you have any and let everyone know,
130 on the list that you're happy with it and agree to it.
131 2. The next thing you should do is read through the
132 [bugs list](http://bugs.libre-soc.org) and
133 see if there are any bugs that pique your interest.
134 A fascinating way to do that is to view the
135 [dependency graph](https://bugs.libre-soc.org/showdependencygraph.cgi?id=1&display=web&rankdir=LR)
136 3. After that, go ahead and take a look at the
137 [git repositories](https://git.libre-soc.org).
138 4. If you plan to do HDL work, you should familiarize yourself with our
139 [[HDL_workflow]]. If you would like to help with the ASIC layout,
140 see [[HDL_workflow/coriolis2]]
141 5. We do have funding available (see [[nlnet]]) upon completion of issues -
142 we are also working on procuring more funding which gets the project to
143 nanometre scale tapeout.
144 6. After all this, if you feel that Libre-SOC is a something
145 that you would like to contribute to, add yourself to the
146 [current_members](about_us) page, fill in some information about yourself,
147 and join the mailing list and say hello.
148
149 Also note that you can edit this wiki. You can experiment in the [[Sandbox]].
150
151 ## Quick peek at the code
152
153 Here is an example process of how to play with the soc code. The last
154 step you will have needed to install yosys:
155
156 pip3 install virtualenv requests
157 mkdir ~/.virtualenvs && cd ~/.virtualenvs
158 python3 -m venv libresoc
159 source ~/.virtualenvs/libresoc/bin/activate
160
161 cd ~; mkdir libresoc; cd libresoc
162 git clone https://git.libre-soc.org/git/nmigen.git
163 git clone https://git.libre-soc.org/git/nmigen-soc.git
164 git clone https://git.libre-soc.org/git/nmutil.git
165 git clone https://git.libre-soc.org/git/openpower-isa.git
166 git clone https://git.libre-soc.org/git/c4m-jtag.git
167 git clone https://git.libre-soc.org/git/ieee754fpu.git
168 git clone https://git.libre-soc.org/git/soc.git
169
170 cd nmigen; python setup.py develop; cd ..
171 cd nmigen-soc; python setup.py develop; cd ..
172 cd c4m-jtag; python setup.py develop; cd ..
173 cd nmutil; make develop; cd ..
174 cd openpower-isa; make develop; cd ..
175 cd ieee754fpu; make develop; cd ..
176 cd soc; make gitupdate; make develop
177
178 python3 src/soc/decoder/power_decoder.py
179 yosys -p "read_ilang decoder.il; show dec31"
180
181 The full install process may be automated using scripts found
182 here: <https://git.libre-soc.org/?p=dev-env-setup.git;a=summary>
183 which you can clone with:
184
185 git clone https://git.libre-soc.org/git/dev-env-setup.git
186
187 A convenient page which gives step-by-step instructions is:
188 [[HDL_workflow/devscripts]]
189
190 ## How can I learn?
191
192 The whole purpose of this project is to be a learning environment as well
193 as an actual business. If you want to learn how to do ASIC design, with
194 a view to contributing or starting your own ASIC business, start here:
195 [[3d_gpu/tutorial]]. Yes, really: do not let anyone tell you that you
196 can't learn this stuff too.
197
198 Along the way, if you find any [[resources]] or links that you found
199 particularly helpful, please add them to that page so that other people
200 can also benefit (and you have a place to remember them, too).
201
202 ## Needed Skills
203
204 Most labor is currently being applied to developing the GPU portion of
205 the Libre-SOC.
206
207 Our highest priority short-term and medium-term: we need HDL engineers.
208 Particularly those familiar
209 with nMigen or just python. Most of the techniques being used require
210 software engineering skills (OO design, polymorphism) than they do more
211 traditional HDL programming skills. Basically if you have experience in 2
212 of the following you'll do fine: python, nmigen, verilog/VHDL/gate-level
213 design. See [[HDL_workflow]]
214
215 We also need to find a c++ engineer with compiler experience to work on
216 a MESA 3D driver. This will begin life similar to SwiftShader however
217 retaining the vectorisation and predication intrinsics then adding
218 hardware accelerated opcodes (all of which SwiftShader lacks)
219
220 Also, individuals with experience in formal mathematical verification
221 are quite welcome.
222
223 # Documentation
224
225 - [Source Code](/docs/)
226 - [Architecture](3d_gpu/architecture)