1:name: Built-in TFTP server demo 2:description: This script runs Micropython on LiteX/VexRiscv booted from the the internal TFTP server hosted by Renode 3 4$name?="litex-vexriscv" 5$bios?=@https://dl.antmicro.com/projects/renode/bios.bin-s_27076-9b28166a445deb24d5d3547871ae0de8365ba4d0 6$micropython?=@https://dl.antmicro.com/projects/renode/litex_vexriscv-micropython.bin-s_218608-db594ec6a9a75d77d2475afd714b6c28fb6e6498 7 8using sysbus 9mach create $name 10 11machine LoadPlatformDescription @platforms/cpus/litex_vexriscv_tftp.repl 12 13emulation CreateSwitch "switch" 14connector Connect ethmac switch 15emulation CreateNetworkServer "server" "192.168.100.100" 16connector Connect server switch 17 18server StartTFTP 6069 19server.tftp ServeFile $micropython "boot.bin" 20 21showAnalyzer uart 22 23macro reset 24""" 25 sysbus LoadBinary $bios 0x0 26 cpu PC 0x0 27""" 28runMacro $reset 29