1#
2# This script runs Zephyr OS on LiteX+VexRiscv in Renode
3#
4# Note that it uses a custom LiteX configuration.
5# For details, please refer to the repl file.
6#
7using sysbus
8
9mach create
10machine LoadPlatformDescription @platforms/cpus/litex_vexriscv_zephyr.repl
11
12showAnalyzer uart
13
14$zephyr?=@https://dl.antmicro.com/projects/renode/litex_vexriscv--zephyr-shell.elf-s_850340-baf59564d97de15457a3a626aa61c44c1cea66bc
15
16macro reset
17"""
18    sysbus LoadELF $zephyr
19"""
20
21runMacro $reset
22