当前位置:网站首页>Embedded hardware development tutorial -- Xilinx vivado HLS case (2)
Embedded hardware development tutorial -- Xilinx vivado HLS case (2)
2022-06-24 01:53:00 【Tranlong123】
front said
This paper mainly introduces HLS How to use the case , Applicable development environment :Windows 7/10 64bit、Xilinx Vivado 2017.4、Xilinx Vivado HLS 2017.4、Xilinx SDK 2017.4.
Xilinx Vivado HLS(High-Level Synthesis, High level synthesis ) Tool support will C、C++ And so on , At the same time, support based on OpenCL And so on Xilinx Programmable logic device development , It can accelerate the process of algorithm development , Shorten time to market .
This case uses the technology of chuanglong TLZ7x-EasyEVM-S Development board , It is based on Xilinx Zynq-7000 series XC7Z010/XC7Z020 Heterogeneous multi-core processor with high performance and low power consumption SoC Evaluation board , Processor Integration PS End binuclear ARM Cortex-A9 + PL End Artix-7 framework 28nm Programmable logic resources , The evaluation board is composed of core board and evaluation bottom board . The core board has been professionally PCB Layout And high and low temperature tests to verify .
TLZ7x-EasyEVM-S Evaluation board
TLZ7x-EasyEVM-S Evaluation board evaluation board interface resources are rich , Leading out Gigabit Ethernet port 、 dual CAMERA、USB、Micro SD、CAN、UART Such as the interface , Support LCD Display expansion and Qt GUI development .
led_flash Case study
Case function : Control the evaluation LED2 every other 0.5s Flip the state once .
HLS Project description
- The clock
HLS The engineering clock is 100MHz, The case uses the clock to calculate 0.5s At intervals LED2 On off state control , Generated IP The core also needs to be connected to the clock . To modify the clock frequency , Please open the HLS Click after the project , In the pop-up interface Synthesis The column is modified .
chart 26
- Top level function
The top-level function of the case is led_flash.cpp Medium led_flash().
chart 27
Click and , In the pop-up interface Synthesis Column view or set the top level function .
chart 28
This function controls the evaluation LED2 every other 0.5s Flip the state once . The clock set for the project is 100MHz( cycle 10ns), stay for The count in the loop is 100000000, The time is 10ns x 100000000 = 1s.
Compilation and simulation
Please refer to this document HLS Development process description section , Compile . After compilation , Enter the simulation interface and click to perform single step operation , Get into led_flash() function .
chart 29
Continue clicking to enter for loop , When i < 50000000 when ,*led_o be equal to 1(true).
chart 31
Click to run or modify at full speed i The value of is 50000000, When i ≥ 50000000 when ,*led_o be equal to 0(false).
chart 32
IP Nuclear testing
Please refer to this document HLS Development process description section , complete IP Preparations for nuclear testing .
HLS Project generated IP Nuclear is led_flash_0.
chart 33
load PL End .bit Format executable , You can see the evaluation of the floor LED2 Flashing .
key_led_demo Case study
Case function : By pressing the key KEY2 Control the evaluation of LED2 state .
HLS Project description
- The clock
HLS The engineering clock is 100MHz. Case by pressing the key KEY2 Control the evaluation of LED2 state , The clock is not actually used . To modify the clock frequency , Please open the HLS Click after the project
, In the pop-up interface Synthesis The column is modified .
chart 34
- Top level function
The top-level function of the case is key_led_demo.cpp Medium key_led_demo().
chart 35
After clicking , In the pop-up interface Synthesis Column view or set the top level function .
chart 36
Corresponding to the key IO Pull up by default 、 High level . When you press the key ,key_i by 0; When you release the key ,key_i by 1.
Ordinary scalar type parameters correspond to IP Core input interface , Such as key_i As input . Pointer type parameters can be used as input and output , Such as *led_o As the output .
chart 37
Compilation and simulation
Please refer to this document HLS Development process description section , Compile . After compilation , Enter the simulation interface and click to perform single step operation , You can see Console Window printing led_o Value . because key_i The default value is 0, therefore led_o The value of is 1.
chart 38
modify key_i The value of is 1, And continue to click for single step operation .
chart 39
At this point, you can see led_o The value of is 0.
chart 40
IP Nuclear testing
Please refer to this document HLS Development process description section , complete IP Preparations for nuclear testing .
HLS Project generated IP Nuclear is key_led_demo_0.
chart 41
load PL End .bit Format executable , Press down KEY2 be LED2 Lighten up , Release KEY2 be LED2 Extinguish .
边栏推荐
- November 15, 2021: add four numbers II. Here are four integer arrays nums1, num
- Global and Chinese dealox industry development status and demand trend forecast report 2022-2028
- A marriage app_ T signature analysis
- Grp: implement GRP timeout interceptor
- Software cost evaluation: a method for estimating software scale by fast function point method
- Tencent music, slow down?
- Custom form dynamic form form designer process engine design scheme
- Property management source code based on wechat applet
- What is function point analysis - FPA
- Tencent cloud Weibo was selected into the analysis report on the status quo of China's low code platform market in 2021 by Forrester, an international authoritative research institution
猜你喜欢
![[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)](/img/c8/f6c2a62b8ab8fa88bd2b3d8f35f592.jpg)
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)

layer 3 switch

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000

Stm32g474 infrared receiving based on irtim peripherals
![[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)](/img/b5/a8c4bbaf868dd20b7dc9449d2a4378.jpg)
[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)
随机推荐
LeetCode 1289. Descent path min and II
[tcapulusdb knowledge base] common problems of tcapulusdb local deployment
MySQL architecture
Analysis report on market development trends and innovation strategies of China's iron and steel industry 2022-2028
I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000
Tencent cloud Weibo was selected into the analysis report on the status quo of China's low code platform market in 2021 by Forrester, an international authoritative research institution
What are the categories of code signing certificates? What are the differences between different types of certificates?
Best practices cloud development cloudbase multi environment management practices
Tcapulusdb Jun · industry news collection (November 22)
An error is reported when easynvr uploads the SSL certificate: the network request fails. How to handle it?
Zoom supports automatic generation of subtitles; Shareplay goes online; Safari update leads to a large number of bugs | webrtc wind direction
Web user experience design promotion practice
SAP mm UB type sto cannot be transferred to vendor consignment inventory?
Behind the 1.6 trillion requests per day, the secret of DNSPod - state secret DOH
[dry goods] configure failover active/acitve in transparent mode on Cisco ASA firewall
Tencent music, slow down?
5、 Array base
How does Huawei weautomate RPA achieve the natural growth of government enterprise automation?
How do users of Fortress computers add servers? How much does it cost to add servers for fortress users?
Baysor: cell segmentation in imaging based spatial transcriptomics