add "other things renode can do"

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-08 14:03:07 +08:00
parent 8aa55b0572
commit 0ca6eb6963
3 changed files with 53 additions and 8 deletions

View File

@ -841,7 +841,6 @@
</section> </section>
</section> </section>
<section> <section>
<section> <section>
<h2>Multi-System Emulation</h2> <h2>Multi-System Emulation</h2>
<img src="media/betrusted-ec-com-1.png"> <img src="media/betrusted-ec-com-1.png">
@ -852,13 +851,59 @@
</section> </section>
</section> </section>
<section> <section>
<h2>Other Features</h2> <section>
<ul> <h2>Other Things Renode can Do</h2>
<li>Loading peripherals at runtime</li> </section>
<li>Adding custom instructions to Risc-V</li> <section>
<li>Python hooks for memory access</li> <h2>Loading Peripherals at Runtime</h2>
<li>Networking</li> <pre><code data-trim data-line-numbers="|1|2">
</ul> path add $ORIGIN
i @peripherals/trng_server.cs
</code></pre>
</section>
<section>
<h2>Loading Peripherals at Runtime</h2>
<pre><code class="cs" data-trim data-line-numbers="|3-8|9-16">
private void DefineRegisters()
{
Registers.STATUS.Define(this) // RDY is set on reset
.WithFlag(0, name: "ready",
valueProviderCallback: _ => true)
.WithFlag(1, name: "avail",
valueProviderCallback: _ => true)
;
Registers.DATA.Define(this)
.WithValueField(0, 32, FieldMode.Read,
valueProviderCallback: _ =>
{
return (uint)rng.Next();
},
name: "DATA"
);
}
</code></pre>
From trng_server.cs
</section>
<section>
<h2>Visual Studio Code Lens</h2>
<img src="media/renode-vscode.png">
<p>Auto-complete and contextual popups</p>
</section>
<section>
<h2>Networking with Tap</h2>
<pre><code data-trim data-line-numbers="|1|2|3-4">
emulation CreateSwitch "switch"
emulation CreateTap "renodetap" "tap"
connector Connect host.tap switch
connector Connect sysbus.wifi.wf200 switch
</code></pre>
</section>
<section>
<h2>Networking with Tap</h2>
<img src="media/renode-networking.png">
<p>SoC → <em><strong>COM-SOC</strong></em> → COM → <em><strong>COM-EC</strong></em> → EC →
<em><strong>EC-WIFI</strong></em> → WF200 → Tap → Internet</p>
</section>
</section> </section>
<section> <section>
<h2>Renode is Free Software</h2> <h2>Renode is Free Software</h2>

BIN
media/renode-networking.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
media/renode-vscode.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB