blob: 188d4a52e3e2426e8aad98357507d335029275e4 [file] [log] [blame]
:name: RISC-V platform with a verilated UART
:description: This script runs Zephyr printing out on a verilated UART.
$name?="UARTLite"
using sysbus
mach create $name
machine LoadPlatformDescription @platforms/cpus/verilated/riscv_verilated_uartlite.repl
$bin?=@https://dl.antmicro.com/projects/renode/uartlite--custom_uart_demo--zephyr.elf-s_184340-129eb92404f437a466cd8700f6743b1c5b0da912
$uartLinux?=@https://dl.antmicro.com/projects/renode/libVuartlite-Linux-x86_64-1116123840.so-s_2040800-8a1cee032fa31d047728fdc16fb6d974e2951e21
$uartWindows?=@https://dl.antmicro.com/projects/renode/libVuartlite-Windows-x86_64-1116123840.dll-s_14823139-b2d9892dbd5dd990ae3510c6563446567b897db9
$uartMacOS?=@https://dl.antmicro.com/projects/renode/libVuartlite-macOS-x86_64-1116123840.dylib-s_213664-5794ca7de5a8119640732bfba3f90ce3d6c9163c
showAnalyzer uart
uart SimulationFilePathLinux $uartLinux
uart SimulationFilePathWindows $uartWindows
# uart SimulationFilePathMacOS $uartMacOS
macro reset
"""
sysbus LoadELF $bin
# set pc to the beginning of ROM where `vinit` is defined that sets `mtvec` and jumps directly to `__start`
sysbus.cpu PC `sysbus GetSymbolAddress "vinit"`
"""
runMacro $reset