Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
Manish V Badarkhe | bc0a59f | 2024-01-29 18:24:38 +0000 | [diff] [blame] | 3 | # Copyright (c) 2022-2024, Arm Limited. All rights reserved. |
Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
Juan Pablo Conde | bc764ee | 2024-04-01 13:50:25 -0500 | [diff] [blame] | 7 | |
Manish V Badarkhe | bc0a59f | 2024-01-29 18:24:38 +0000 | [diff] [blame] | 8 | set_model_path "$warehouse/SysGen/SubSystemModels/11.23/17/models/$model_flavour/FVP_TC2" |
Juan Pablo Conde | bc764ee | 2024-04-01 13:50:25 -0500 | [diff] [blame] | 9 | |
| 10 | if is_arm_jenkins_env || upon "$local_ci"; then |
| 11 | default_var sve_plugin_path "$warehouse/SysGen/PVModelLib/11.23/17/external/plugins/$model_flavour/sve2-HEAD/ScalableVectorExtension.so" |
| 12 | else |
| 13 | # OpenCI enviroment |
| 14 | source "$ci_root/fvp_utils.sh" |
| 15 | |
| 16 | # fvp_models variable contains the information for FVP paths, where 2nd field |
| 17 | # points to the /opt/model/*/models/${model_flavour} |
| 18 | models_dir="$(echo ${fvp_models[$model]} | awk -F ';' '{print $2}')" |
| 19 | set_model_path "$models_dir" |
| 20 | |
| 21 | # ScalableVectorExtension is located at /opt/model/*/plugins/${model_flavour} |
| 22 | default_var sve_plugin_path "${models_dir/models/plugins}/ScalableVectorExtension.so" |
| 23 | fi |
| 24 | |
| 25 | reset_var sve_plugin |
| 26 | |
Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 27 | cat <<EOF >"$model_param_file" |
Chris Kay | 6c9ab89 | 2023-02-06 10:43:37 +0000 | [diff] [blame] | 28 | -C css.terminal_uart_ap.start_port=5000 |
| 29 | -C css.terminal_uart1_ap.start_port=5001 |
| 30 | -C soc.terminal_s0.start_port=5002 |
| 31 | -C soc.terminal_s1.start_port=5003 |
| 32 | -C board.terminal_0.start_port=5004 |
| 33 | -C board.terminal_1.start_port=5005 |
Manish V Badarkhe | bc0a59f | 2024-01-29 18:24:38 +0000 | [diff] [blame] | 34 | ${fip_gpt_bin+-C board.flashloader0.fname=$fip_gpt_bin} |
| 35 | ${tc_fitimage_bin+--data board.dram=$tc_fitimage_bin@0x20000000} |
Rupinderjit Singh | 396938a | 2022-07-22 21:19:41 +0100 | [diff] [blame] | 36 | ${vmmaddrwidth+-C css.rss.VMADDRWIDTH=$vmmaddrwidth} |
David Vincze | d8ed562 | 2024-02-23 17:00:12 +0100 | [diff] [blame] | 37 | ${rse_rom_bin+-C css.rss.rom.raw_image=$rse_rom_bin} |
Manish V Badarkhe | bc0a59f | 2024-01-29 18:24:38 +0000 | [diff] [blame] | 38 | -C displayController=2 |
| 39 | -C css.rss.CMU0_NUM_DB_CH=16 |
| 40 | -C css.rss.CMU1_NUM_DB_CH=16 |
David Vincze | d8ed562 | 2024-02-23 17:00:12 +0100 | [diff] [blame] | 41 | ${rse_encrypted_cm_provisioning_bundle_0_bin+--data css.rss.sram0=${rse_encrypted_cm_provisioning_bundle_0_bin}@0x400} |
| 42 | ${rse_encrypted_dm_provisioning_bundle_bin+--data css.rss.sram1=${rse_encrypted_dm_provisioning_bundle_bin}@0x80000} |
Juan Pablo Conde | bc764ee | 2024-04-01 13:50:25 -0500 | [diff] [blame] | 43 | |
| 44 | ${sve_plugin+--plugin=$sve_plugin_path} |
| 45 | ${sve_plugin+-C SVE.ScalableVectorExtension.enable_at_reset=0} |
| 46 | ${sve_plugin+-C SVE.ScalableVectorExtension.veclen=$((128 / 8))} |
Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 47 | EOF |