1:name: RISC-V platform with a verilated UART 2:description: This script runs Zephyr printing out on a verilated UART. 3 4$name?="UARTLite" 5 6using sysbus 7mach create $name 8machine LoadPlatformDescription @platforms/cpus/verilated/riscv_verilated_uartlite.repl 9 10$bin?=@https://dl.antmicro.com/projects/renode/uartlite--custom_uart_demo--zephyr.elf-s_184340-129eb92404f437a466cd8700f6743b1c5b0da912 11$uartLinux?=@https://dl.antmicro.com/projects/renode/libVuartlite-Linux-x86_64-12746432362.so-s_2065720-1c7a212b50fdb10a90b5be713b106a49d3d81c2e 12$uartWindows?=@https://dl.antmicro.com/projects/renode/libVuartlite-Windows-x86_64-12746432362.dll-s_3233193-267d2ef5f2f89c78bbe931d861b530c5bb461ab6 13$uartMacOS?=@https://dl.antmicro.com/projects/renode/libVuartlite-macOS-x86_64-12746432362.dylib-s_219096-1d5ef6dee55d7c7068de26a134b347ffbcd2fd5f 14 15showAnalyzer uart 16 17uart SimulationFilePathLinux $uartLinux 18uart SimulationFilePathWindows $uartWindows 19# uart SimulationFilePathMacOS $uartMacOS 20 21macro reset 22""" 23 sysbus LoadELF $bin 24 # set pc to the beginning of ROM where `vinit` is defined that sets `mtvec` and jumps directly to `__start` 25 sysbus.cpu PC `sysbus GetSymbolAddress "vinit"` 26""" 27runMacro $reset 28 29