beginning outline of talk

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-03-28 18:26:49 +08:00
parent 37861335a2
commit 70089d945a
4 changed files with 200 additions and 31 deletions

View File

@ -1,40 +1,209 @@
<!doctype html> <!doctype html>
<html> <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title> <head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="dist/reset.css"> <title>Renode: Easy CI for your Weird Hardware</title>
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css">
<!-- Theme used for syntax highlighted code --> <link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="plugin/highlight/monokai.css"> <link rel="stylesheet" href="dist/reveal.css">
</head> <link rel="stylesheet" href="dist/theme/black.css">
<body>
<div class="reveal"> <!-- Theme used for syntax highlighted code -->
<div class="slides"> <link rel="stylesheet" href="plugin/highlight/monokai.css">
<section>Slide 1</section> </head>
<section>Slide 2</section>
</div> * Emulators are useful tools
- PC emulator (e.g. Docker on Mac, WSL on Linux)
- NES emulator -- fun and games, realtime output
- Also have debugging emulators
- Renode
* Renode Stack
- CPU cores written in C
- arm, i386, ppc, riscv, sparc, xtensa
- Windows, Mac, Linux
- Peripherals and UI written in C#
- Extensible via Python and C#
- Write once. Run anywhere. Using C# to define new peripherals
* Three major users
- Designers of new boards
- Reverse engineering exsisting hardware
- Silicon designers
* Designers of new boards
- One or more chips
- How are they connected?
- What weird hardware exists?
* Concurrent emulation of multiple devices
- Can connect multiple devices, e.g. via UART, GPIO, SPI, Ethernet, CAN...
- All devices are emulated using the same time source
- Helps to debug timing differences with different processors on a board
* Board definition format
- Easily define memory layout
- Easily move blocks around
- Only define what's necessary
- You don't need to be perfect, just good enough!
* Can read SVD files
* Hardware has Similarities
- Picture of existing register sets
- There are only so many combinations
- Rip. Mix. Burn. Many chips are just copies of one another.
* Tests in CI
* Reverse engineering existing hardware
* If it's a supported architecture, it's easy to run code
* LoadBinary and set PC
* Can skip much of the boot ROM
* Attach GDB
* Reproducible makes it easy to test theories
* Developing new Silicon blocks
* Betrusted hardware
- Create a new design in LiteX / Verilog
- Document the design
- Create a model
- Timing isn't as critical
*
<body>
<div class="reveal">
<div class="slides">
<section>
<section>
<h2>What is an Emulator?</h2>
<ul>
<li>Desktop</li>
<li>CPU</li>
<li>Console</li>
</ul>
</section>
<section>
<h2>Desktop Emulator</h2>
<ul>
<li>VirtualBox</li>
<li>VMWare</li>
<li>Parallels</li>
<li>HyperV</li>
<li>WSL2/Docker</li>
</ul>
</section>
<section>
<h2>CPU Emulator</h2>
<ul>
<li>qemu on Linux</li>
<li>Rosetta on Mac</li>
</ul>
</section>
<section>
<h2>Console Emulator</h2>
<ul>
<li>Wii Virtual Console</li>
</ul>
</section>
</section>
<section>Slide 2</section>
</div> </div>
</div>
<script src="dist/reveal.js"></script> <script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script> <script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script> <script src="plugin/zoom/zoom.js"></script>
<script src="plugin/highlight/highlight.js"></script> <script src="plugin/markdown/markdown.js"></script>
<script> <script src="plugin/highlight/highlight.js"></script>
// More info about initialization & config: <script>
// - https://revealjs.com/initialization/ /** This used to be a part of Reveal.js, but was removed at some point */
// - https://revealjs.com/config/ function getQueryHash() {
Reveal.initialize({ function deserialize(value) {
hash: true, if (typeof value === 'string') {
if (value === 'null') return null;
else if (value === 'true') return true;
else if (value === 'false') return false;
else if (value.match(/^-?[\d\.]+$/)) return parseFloat(value);
}
return value;
}
// Learn about plugins: https://revealjs.com/plugins/ let query = {};
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes ] location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi, a => {
query[a.split('=').shift()] = a.split('=').pop();
}); });
</script> // Basic deserialization
</body> for (let i in query) {
</html> let value = query[i];
query[i] = deserialize(unescape(value));
}
// Do not accept new dependencies via query config to avoid
// the potential of malicious script injection
if (typeof query['dependencies'] !== 'undefined') delete query['dependencies'];
return query;
}
var presenter = !!getQueryHash().s;
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
controls: presenter ? false : true,
progress: true,
history: true,
center: true,
controlsTutorial: presenter ? false : true,
slideNumber: presenter ? null : 'c/t',
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 960,
height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.1,
multiplex: {
// Example values. To generate your own, see the socket.io server instructions.
secret: getQueryHash().s || null,
id: '160c0567ef5ca18f',
url: 'https://p.xobs.io/'
},
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.02,
maxScale: 5.5,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Don't forget to add the dependencies
dependencies: [
{ src: 'https://reveal-multiplex.glitch.me/socket.io/socket.io.js', async: true },
{ src: 'https://reveal-multiplex.glitch.me/client.js', async: true }
],
// Learn about plugins: https://revealjs.com/plugins/
plugins: [RevealMarkdown, RevealHighlight, RevealZoom]
});
</script>
</body>
</html>

BIN
media/hardware-20191117.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 KiB

BIN
media/renode-20191117.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
media/renode-20191117.mp4 Normal file

Binary file not shown.