-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'security/' changes from 3039eed..6b60f47
6b60f47 update utils.mk (#68) ee61e2e remove modular test which are not for customer (#67) 8cb2e7a Fix next cr 0511 (#66) 31e490b Fix next cr-1086848 (#65) 7571eba Fix cr 1098358 (#64) 5f013b6 Fix ripmd golden (#63) 3bf0e84 fix dsp chain issue (#62) 33ad0aa opt ecdsa secp256k1 (#61) dc3cc06 fix typo in pragma 3e65107 Minor Changes (#50) a0954a3 minor change (#59) ec1de22 Next bring back api (#58) b3fbbe3 Update Jenkinsfile a9599aa change all the makefiles in L1 to fix aws support (#57) 1fdae3a Next benchmark (#55) dbdc5fa Next benchmark (#53) d5f7f30 Next benchmark (#52) 3f53c9f add aws/versal support for L1 (#51) f93c89d update tool version for vck_190 (#49) 1845b19 support vcd_190 (#48) 47a57b4 AES refactor (#46) 0114cb6 Add Sizeless version CRC32 and Adler32 (#44) 2ed8174 2021.1 ripemd160 (#43) a0562f2 change 2020.2_stable_latest to 2021.1_stable_latest git-subtree-dir: security git-subtree-split: 6b60f47b03ade447f1dea46b47d8abebe0fbe553
- Loading branch information
sdausr
committed
May 26, 2021
1 parent
ebf9e92
commit 9ceed7b
Showing
378 changed files
with
7,044 additions
and
3,826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@Library('pipeline-library')_ | ||
VitisLibPipeline (branch: 'next', libname: 'xf_security', TARGETS: 'hls_csim:hls_csynth:hls_cosim:vitis_sw_emu:vitis_hw_emu:vitis_hw_build', | ||
email: 'tuol@xilinx.com', devtest: 'RunDeploy.sh', TOOLVERSION: '2020.2_stable_latest') | ||
upstream_dependencies: 'xf_utils_hw,next,../utils', | ||
email: 'tuol@xilinx.com', devtest: 'RunDeploy.sh', TOOLVERSION: '2021.1_stable_latest') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Adler32 | ||
======== | ||
|
||
To profile performance of adler32, we prepare a datapack of 268,435,456 byte messages as kernel input. | ||
Base on U50, We have 1 kernel, each kernel has 1 PU. | ||
Kernel utilization and throughput is shown in table below. | ||
|
||
Executable Usage | ||
================ | ||
|
||
* **Work Directory(Step 1)** | ||
|
||
The steps for library download and environment setup can be found in :ref:`l1_vitis_security`. For getting the design, | ||
|
||
``` | ||
cd L1/benchmarks/adler32 | ||
``` | ||
|
||
* **Build kernel(Step 2)** | ||
|
||
Run the following make command to build your XCLBIN and host binary targeting a specific device. Please be noticed that this process will take a long time, maybe couple of hours. | ||
|
||
``` | ||
source /opt/xilinx/Vitis/2021.1/settings64.sh | ||
source /opt/xilinx/xrt/setenv.sh | ||
export DEVICE=u50_gen3x16 | ||
export TARGET=hw | ||
make run | ||
``` | ||
|
||
* **Run kernel(Step 3)** | ||
|
||
To get the benchmark results, please run the following command. | ||
|
||
``` | ||
./BUILD_DIR/host.exe -xclbin ./BUILD_DIR/Adler32Kernel.xclbin -data PROJECT/data/test.dat -num 16 | ||
``` | ||
|
||
Input Arguments: | ||
|
||
``` | ||
Usage: host.exe -[-xclbin] | ||
-xclbin binary; | ||
``` | ||
|
||
* **Example output(Step 4)** | ||
|
||
``` | ||
kernel has been created | ||
kernel start------ | ||
kernel end------ | ||
Execution time 724.018ms | ||
Write DDR Execution time 1.19501 ms | ||
Kernel Execution time 721.203 ms | ||
Read DDR Execution time 0.07055 ms | ||
Total Execution time 723.504 ms | ||
``` | ||
|
||
Profiling | ||
========= | ||
|
||
The Adler32 is validated on Xilinx Alveo U50 board. | ||
Its resource, frequency and throughput is shown as below. | ||
|
||
+-----------+------------+------------+----------+--------+--------+-------------+ | ||
| Frequency | LUT | REG | BRAM | URAM | DSP | Throughput | | ||
+-----------+------------+------------+----------+--------+--------+-------------+ | ||
| 262 MHz | 6,348 | 12,232 | 16 | 0 | 0 | 4.1 GB/s | | ||
+-----------+------------+------------+----------+--------+--------+-------------+ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.