fix "long" issue with renode example

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-06 23:53:03 +08:00
parent c90a2efccb
commit bf81312e84

View File

@ -9,7 +9,7 @@
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css">
<link rel="stylesheet" href="dist/theme/night.css">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css">
@ -220,7 +220,7 @@
<h2>What is a Computer?</h2>
<ul>
<li>A system of devices</li>
<li>One or more CPU</li>
<li>One or more processors</li>
<li>One or more buses</li>
<li>One or more blocks of memory</li>
<li>Some I/O</li>
@ -385,6 +385,9 @@
Blocks are frequently reused across designs, and can save you from having to reimplement
everything from scratch!
</section>
<section>
<h2>What if we need to write it ourselves?</h2>
</section>
<section>
<h2>Steps to Set Up a Serial Port</h2>
<ol>
@ -393,6 +396,7 @@
<li class="fragment strike semi-fade-out" data-fragment-index="1">Mux GPIOs</li>
<li class="fragment strike semi-fade-out" data-fragment-index="1">Calculate baud rate</li>
<li>Write to UART TX register</li>
<li>Read from UART RX register</li>
</ol>
</section>
<section>
@ -430,7 +434,7 @@
public LiteX_UART(Machine machine) : base(machine)
{
IRQ = new GPIO();
var registersMap = new Dictionary<long, DoubleWordRegister>
var registersMap = new Dictionary&lt;long, DoubleWordRegister>
{
{(long)Registers.RxTx, new DoubleWordRegister(this)
.WithValueField(0, 8,