@@ -385,6 +385,9 @@
Blocks are frequently reused across designs, and can save you from having to reimplement
everything from scratch!
+
+
What if we need to write it ourselves?
+
Steps to Set Up a Serial Port
@@ -393,6 +396,7 @@
Mux GPIOs
Calculate baud rate
Write to UART TX register
+
Read from UART RX register
@@ -430,7 +434,7 @@
public LiteX_UART(Machine machine) : base(machine)
{
IRQ = new GPIO();
- var registersMap = new Dictionary
+ var registersMap = new Dictionary<long, DoubleWordRegister>
{
{(long)Registers.RxTx, new DoubleWordRegister(this)
.WithValueField(0, 8,