1*** Variables ***
2${URI}                          @https://dl.antmicro.com/projects/renode
3
4${HIFIVE1}=     SEPARATOR=
5...  """                                        ${\n}
6...  using "platforms/cpus/sifive-fe310.repl"   ${\n}
7...                                             ${\n}
8...  clint:                                     ${\n}
9...  ${SPACE*4}frequency: 16000000              ${\n}
10...  """
11
12
13*** Keywords ***
14Create Machine
15    Execute Command             using sysbus
16    Execute Command             mach create
17    Execute Command             machine LoadPlatformDescriptionFromString ${HIFIVE1}
18    Execute Command             sysbus LoadELF ${URI}/hifive1_revb--zephyr-tests-memprotect-protection.elf-s_456552-a281d83d018c9245a02c87a7be0c4f1d7ec04942
19    Execute Command             sysbus Tag <0x10008000 4> "PRCI_HFROSCCFG" 0xFFFFFFFF
20    Execute Command             sysbus Tag <0x10008008 4> "PRCI_PLLCFG" 0xFFFFFFFF
21    Execute Command             cpu PerformanceInMips 320
22
23    Create Terminal Tester      sysbus.uart0
24
25
26*** Test Cases ***
27Should Pass Zephyr "mem_protect/protection" Test suite on HiFive1_RevB
28    Create Machine
29    Execute Command             start
30    Wait For Line On Uart       PROJECT EXECUTION SUCCESSFUL
31