<jupyter_start><jupyter_text>AXI UART usecase  Block Diagram ![Figure 1. Block Diagram](img/block.png)  Pinout PMOD A: 1:RX, 2:TX. baud 9600  Import Libraries<jupyter_code>from pynq import MMIO
from pynq import Overlay

import sys
sys.path.insert(1, './src')
from uartlite import *<jupyter_output><empty_output><jupyter_text>Download bitstream<jupyter_code>ol = Overlay("./bits/uartlitetest.bit")
ol.download()<jupyter_output><empty_output><jupyter_text>Initialize AXI UART<jupyter_code># Address of the ip core
ADDRESS = 0x42c00000  
uart = UartAXI(ADDRESS)

# Setup AXI UART register
uart.setupCtrlReg()
# Loopback test
uart.write('heldsklfjs\n')
print(uart.readLine())<jupyter_output>heldsklfjs
{'fraction_non_alphanumeric': 0.11477761836441894, 'fraction_numerical': 0.02295552367288379, 'mean_word_length': 7.211764705882353, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '514861', 'license': 'MIT', 'n_tokens_mistral': 289, 'n_tokens_neox': 271, 'n_words': 56, 'path': 'AXI UARTLITE TEST.ipynb', 'repo_name': 'kuoyaoming93/axi_uartlite_pynq', 'size': '697'}