Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 1 | {#------------------------------------------------------------------------------ |
Bence Balogh | 4b16c3a | 2023-08-29 16:41:53 +0200 | [diff] [blame] | 2 | # Copyright (c) 2018-2023, Arm Limited and Contributors. All rights reserved. |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #-----------------------------------------------------------------------------#} |
| 7 | {% extends 'jinja2_templates/base.jinja2' %} |
| 8 | {% block metadata %} |
| 9 | {{ super() }} |
| 10 | {% endblock %} |
| 11 | {% block base %} |
| 12 | {{ super() }} |
| 13 | {% endblock %} |
| 14 | {% block actions %} |
| 15 | context: |
| 16 | kernel_start_message: '' |
| 17 | |
| 18 | actions: |
| 19 | - deploy: |
| 20 | namespace: docker |
| 21 | to: fvp |
| 22 | images: |
| 23 | app: |
| 24 | url: {{ application_url }} |
| 25 | data: |
| 26 | url: {{ data_url }} |
| 27 | {%- if enable_code_coverage %} |
| 28 | cc: |
| 29 | url: {{ coverage_trace_plugin }} |
| 30 | {%- endif %} |
| 31 | - boot: |
| 32 | failure_retry: 3 |
| 33 | namespace: docker |
| 34 | method: fvp |
| 35 | docker: |
Bence Balogh | 4b16c3a | 2023-08-29 16:41:53 +0200 | [diff] [blame] | 36 | name: {{ docker_prefix }}/fvp:fvp_corstone_sse-300_11.22_20_linux64 |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 37 | local: true |
| 38 | prompts: |
| 39 | - 'root@lava ' |
Bence Balogh | 4b16c3a | 2023-08-29 16:41:53 +0200 | [diff] [blame] | 40 | image: /opt/model/FVP_Corstone_SSE-300/models/Linux64_GCC-9.3/FVP_Corstone_SSE-300_Ethos-U55 |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 41 | timeout: |
| 42 | minutes: 5 |
| 43 | console_string: 'telnetterminal0: Listening for serial connection on port (?P<PORT>\d+)' |
| 44 | license_variable: '{{ license_variable }}' |
| 45 | use_telnet: False |
| 46 | arguments: |
Paul Sokolovsky | 09fa3ec | 2023-04-05 20:39:08 +0300 | [diff] [blame] | 47 | - "--simlimit 900" |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 48 | - "--application cpu0={APP}" |
| 49 | - "--data cpu0={DATA}@{{ data_bin_offset }}" |
| 50 | - "--parameter mps3_board.platform_type=1" |
| 51 | - "--parameter cpu0.INITSVTOR={{ cpu0_initvtor_s }}" |
| 52 | - "--parameter cpu0.semihosting-enable=0" |
| 53 | - "--parameter mps3_board.DISABLE_GATING=0" |
| 54 | - "--parameter mps3_board.telnetterminal0.start_telnet=1" |
| 55 | - "--parameter mps3_board.telnetterminal1.start_telnet=1" |
| 56 | - "--parameter mps3_board.telnetterminal2.start_telnet=1" |
| 57 | - "--parameter mps3_board.telnetterminal0.quiet=0" |
| 58 | - "--parameter mps3_board.telnetterminal1.quiet=0" |
| 59 | - "--parameter mps3_board.telnetterminal2.quiet=0" |
| 60 | - "--parameter mps3_board.uart0.shutdown_on_eot=1" |
| 61 | - "--parameter 'mps3_board.uart0.out_file=-'" |
| 62 | - "--parameter mps3_board.visualisation.disable-visualisation=1" |
| 63 | {%- if enable_code_coverage %} |
| 64 | - "--plugin {CC}" |
| 65 | - "--parameter mps3_board.uart0.shutdown_tag=\x04" |
Paul Sokolovsky | 120aada | 2022-04-27 21:31:34 +0300 | [diff] [blame] | 66 | - "--cpulimit 240" |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 67 | {%- endif %} |
| 68 | |
| 69 | prompts: |
| 70 | - '(.*)' |
| 71 | |
| 72 | - test: |
| 73 | namespace: target |
| 74 | monitors: |
Xinyu Zhang | 22a1275 | 2022-10-10 17:21:21 +0800 | [diff] [blame] | 75 | {%- for monitor in monitors %} |
Bence Balogh | 4fe9b88 | 2022-03-30 15:23:47 +0200 | [diff] [blame] | 76 | - name: "{{monitor.name}}" |
| 77 | start: "{{monitor.start}}" |
| 78 | end: "{{monitor.end}}" |
| 79 | pattern: "{{monitor.pattern}}" |
| 80 | fixupdict: |
| 81 | '{{monitor.fixup.pass}}': pass |
| 82 | '{{monitor.fixup.fail}}': fail |
| 83 | {%- if monitor.fixup.skip %} |
| 84 | '{{monitor.fixup.skip}}': skip |
| 85 | {%- endif %} |
| 86 | {%- endfor %} |
| 87 | |
| 88 | {%- if enable_code_coverage %} |
| 89 | - test: |
| 90 | namespace: target |
| 91 | interactive: |
| 92 | - name: fvp_stopped |
| 93 | prompts: ['/OSCI/SystemC: Simulation stopped by user.'] |
| 94 | script: |
| 95 | - name: fvp_stopped_1 |
| 96 | command: |
| 97 | - name: fvp_trace_end |
| 98 | prompts: ['Trace path: FVP_Corstone_SSE-300_Ethos-U55.cpu1'] |
| 99 | script: |
| 100 | - name: fvp_trace_end_1 |
| 101 | command: |
| 102 | {%- endif %} |
| 103 | |
| 104 | {% endblock %} |