1# NOTE: set the `$output_file` variable before including this script 2 3$zephyr_application=@https://dl.antmicro.com/projects/renode/litex_i2s--zephyr-echo_sample.elf-s_1172756-db2f7eb8c6c8f396651b2f2d517cee13d79a9a69 4$simulation_duration?="3.2" 5$input_file?=@https://dl.antmicro.com/projects/renode/sine440_with_beep_aligned.pcm_s24le_44100_stereo.raw-s_793344-b37432aad6a22f36cb5c1e239c9bce4adbcd15fb 6 7using sysbus 8 9mach create 10machine LoadPlatformDescription @platforms/cpus/litex_zephyr_vexriscv_i2s.repl 11 12showAnalyzer sysbus.uart 13 14macro reset 15""" 16 sysbus LoadELF $zephyr_application 17 18 i2s_tx Output $output_file 19 i2s_rx LoadPCM $input_file 20 21 emulation RunFor $simulation_duration 22 23 echo "The output file:" 24 echo $output_file 25 echo "The emulation is now paused" 26""" 27 28runMacro $reset 29