-
Notifications
You must be signed in to change notification settings - Fork 0
/
README_ofs_d5005_eval.txt
246 lines (216 loc) · 11.5 KB
/
README_ofs_d5005_eval.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
#!/bin/bash
# Copyright 2022-2023 Intel Corporation
# SPDX-License-Identifier: MIT
# This script relies on the following set of software tools, (intelFPGA_pro, Synopsys, Questasim and Intel OFS) which should be installed using the directory structure below. Tool versions can vary.
##├── intelFPGA_pro
##│ └── 22.3
##│ ├── devdata
##│ ├── gcc
##│ ├── hld
##│ ├── hls
##│ ├── ip
##│ ├── licenses
##│ ├── logs
##│ ├── nios2eds
##│ ├── niosv
##│ ├── qsys
##│ ├── quartus
##│ ├── questa_fe
##│ ├── questa_fse
##│ ├── syscon
##│ └── uninstall
##├── mentor
##│ ├── questasim
##│ │ └── 2021.4
##├── synopsys
##│ ├── vcsmx
##│ │ └── S-2021.09-SP1
##│ └── vip_common
##│ └── vip_Q-2020.03A
##├── user_area
##│ └── ofs-X.X.X
## ofs-X.X.X is a directory the user creates based on version they want to test e.g ofs-1.3.1
## The Intel OFS repos are then cloned beneath ofs-X.X.X and is assigned to the $IOFS_BUILD_ROOT environment variable. This script is then copied to the same directory location, see example below
##├── ofs-1.3.1
##│ ├── examples-afu
##│ ├── linux-dfl
##│ ├── ofs-d5005
##│ ├── ofs-hld-shim
##│ ├── opae-sdk
##│ ├── opae-sim
##│ ├── ofs_d5005_eval.sh
# Repository Contents
## examples-afu (Basic Building Blocks (BBB) for Intel FPGAs is a suite of application building blocks and shims for transforming the CCI-P interface)
## linux-dfl (Contains mirror of linux-dfl and specific Intel OFS drivers that are being upstreamed to the Linux kernel)
## ofs-d5005 (Contains FIM or shell RTL, automated compilation scripts, unit tests framework)
## opae-sdk (Contains the files for building and installing Open Programmable Acceleration Engine Software Development Kit from source)
## opae-sim (Contains the files for an AFU developer to build the Accelerator Funcitonal Unit Simulation Environment (ASE) for workload development)
#################################################################################################################################################################################
# To adapt this script to the user environment please follow the instructions below which explains which line numbers to change in the ofs_d5005_eval.sh script #################
#################################################################################################################################################################################
# User Directory Creation
# The user must create the top-level source directory and then clone Intel OFS repositories
mkdir ofs-1.3.1
In the example above we have used ofs-1.3.1 as the directory name
# Set-Up Proxy Server (lines 61-63)
#Please enter the location of your proxy server to allow access to external internet to build software packages
export http_proxy=
export https_proxy=
export no_proxy=
# License Files (lines 66-68)
#Please enter the the license file locations for the following tool variables
export LM_LICENSE_FILE=
export DW_LICENSE_FILE=
export SNPSLMD_LICENSE_FILE=
# Tools Location (line 81)
# ************** Set Location of Quartus and Synopsys Tools ***************** #
export TOOLS_LOCATION=/home
# ************** Set Location of Quartus and Synopsys Tools ***************** #
In the example above /home is used as the base location of Quartus and Synopsys tools
# Quartus Tools Version (line 86)
# ************** Set version of Quartus ***************** #
export QUARTUS_VERSION=22.3
# ************** Set version of Quartus ***************** #
# OPAE Tools (line 99)
# ************** change OPAE SDK VERSION ***************** #
export OPAE_SDK_VERSION=2.3.0-1
# ************** change OPAE SDK VERSION ***************** #
In the example above "2.3.0-1" is used as the OPAE SDK tools version
# PCIe (Bus Number) (lines 222 and 229)
# The Bus number must be entered by the user after installing the hardware in the chosen server, in the example below "b1" is the Bus Number for a single card
export ADP_CARD0_BUS_NUMBER=b1
# BMC FLASH Image (RTL and FW) (line 325)
export BMC_RTL_FW_FLASH=PACsigned_unsigned_bmc_fw.bin
# The BMC firmware can be updated and the file name will change based on revision number. In the example above "PACsigned_unsigned_bmc_fw.bin" is the FW file used to update the BMC.
# Please place the new flash file in the following newly created location $OFS_ROOTDIR/bmc_flash_files
#################################################################################
#################### AFU Set-up ################################################
#################################################################################
# Testing Remote Signal Tap
after the building steps 14 and 15 from the script (ofs_d5005_eval.sh)
"14 - Build Partial Reconfiguration Tree for $ADP_PLATFORM Hardware with Remote Signal Tap"
"15 - Build Base FIM Identification(ID) into PR Build Tree template with Remote Signal Tap"
# Then to test the Remote Signal Tap feature for the host_chan_mmio example, copy the supplied host_chan_mmio.stp Signal Tap file to the following location
$IOFS_BUILD_ROOT
#################################################################################
#################### Multi-Test Set-up #########################################
#################################################################################
# A user can run a sequence of tests and execute them sequentially. In the example below when the user selects option 36 from the main menu the script will execute 13 tests ie (main menu options 2, 9, 10, 11, 12, 13, 14, 15, 27, 29, 30, 32 and 46. All other tests with an "X" indicates do not run that test
intectiveprum=0
declare -A MULTI_TEST
# Enter Number of sequential tests to run
MULTI_TEST[36,tests]=13
# Enter options number from main menu
# "======================================================================================="
# "========================= ADP TOOLS MENU =============================================="
# "======================================================================================="
MULTI_TEST[36,X]=1
MULTI_TEST[36,0]=2
# "======================================================================================="
# "========================= ADP HARDWARE MENU ==========================================="
# "======================================================================================="
MULTI_TEST[36,X]=3
MULTI_TEST[36,X]=4
MULTI_TEST[36,X]=5
MULTI_TEST[36,X]=6
MULTI_TEST[36,X]=7
MULTI_TEST[36,X]=8
# "======================================================================================="
# "========================= ADP FIM/PR BUILD MENU ======================================="
# "======================================================================================="
MULTI_TEST[36,1]=9
MULTI_TEST[36,2]=10
MULTI_TEST[36,3]=11
MULTI_TEST[36,4]=12
MULTI_TEST[36,5]=13
MULTI_TEST[36,6]=14
MULTI_TEST[36,7]=15
# "======================================================================================="
# "========================= ADP HARDWARE PROGRAMMING/DIAGNOSTIC MENU ===================="
# "======================================================================================="
MULTI_TEST[36,X]=16
MULTI_TEST[36,X]=17
MULTI_TEST[36,X]=18
MULTI_TEST[36,X]=19
MULTI_TEST[36,X]=20
MULTI_TEST[36,X]=21
MULTI_TEST[36,X]=22
MULTI_TEST[36,X]=23
MULTI_TEST[36,X]=24
MULTI_TEST[36,X]=25
MULTI_TEST[36,X]=26
# "======================================================================================="
# "========================== ADP HARDWARE AFU TESTING MENU =============================="
# "======================================================================================="
MULTI_TEST[36,8]=27
MULTI_TEST[36,X]=28
MULTI_TEST[36,9]=29
MULTI_TEST[36,10]=30
MULTI_TEST[36,X]=31
# "======================================================================================="
# "========================== ADP HARDWARE AFU BBB TESTING MENU =========================="
# "======================================================================================="
MULTI_TEST[36,11]=32
MULTI_TEST[36,X]=33
# "======================================================================================="
# "========================== ADP UNIT TEST PROJECT MENU ================================="
# "======================================================================================="
MULTI_TEST[36,12]=34
MULTI_TEST[36,13]=35
# In the example below when the user selects option 36 from the main menu the script will only run options from the ADP FIM/PR BUILD MENU (7 options, main menu options 9, 10, 11, 12, 13, 14 and 15).All other tests with an "X" indicates do not run that test
# "======================================================================================="
# "========================= ADP TOOLS MENU =============================================="
# "======================================================================================="
MULTI_TEST[47,X]=1
MULTI_TEST[47,X]=2
# "======================================================================================="
# "========================= ADP HARDWARE MENU ==========================================="
# "======================================================================================="
MULTI_TEST[47,X]=3
MULTI_TEST[47,X]=4
MULTI_TEST[47,X]=5
MULTI_TEST[47,X]=6
MULTI_TEST[47,X]=7
MULTI_TEST[47,X]=8
# "======================================================================================="
# "========================= ADP FIM/PR BUILD MENU ======================================="
# "======================================================================================="
MULTI_TEST[47,0]=9
MULTI_TEST[47,1]=10
MULTI_TEST[47,2]=11
MULTI_TEST[47,3]=12
MULTI_TEST[47,4]=13
MULTI_TEST[47,5]=14
MULTI_TEST[47,6]=15
# "======================================================================================="
# "========================= ADP HARDWARE PROGRAMMING/DIAGNOSTIC MENU ===================="
# "======================================================================================="
MULTI_TEST[47,X]=16
MULTI_TEST[47,X]=17
MULTI_TEST[47,X]=18
MULTI_TEST[47,X]=19
MULTI_TEST[47,X]=20
MULTI_TEST[47,X]=21
MULTI_TEST[47,X]=22
MULTI_TEST[47,X]=23
MULTI_TEST[47,X]=24
MULTI_TEST[47,X]=25
MULTI_TEST[47,X]=26
# "======================================================================================="
# "========================== ADP HARDWARE AFU TESTING MENU =============================="
# "======================================================================================="
MULTI_TEST[47,X]=27
MULTI_TEST[47,X]=28
MULTI_TEST[47,X]=29
MULTI_TEST[47,X]=30
MULTI_TEST[47,X]=31
# "======================================================================================="
# "========================== ADP HARDWARE AFU BBB TESTING MENU =========================="
# "======================================================================================="
MULTI_TEST[47,X]=32
MULTI_TEST[47,X]=33
# "======================================================================================="
# "========================== ADP UNIT TEST PROJECT MENU ================================="
# "======================================================================================="
MULTI_TEST[47,X]=45
MULTI_TEST[47,X]=46