当前位置:网站首页>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 .
边栏推荐
- [tcapulusdb knowledge base] how does tcapulusdb add a business cluster cluster?
- How to use voice synthesis? Can voice synthesis modify the voice?
- In only three steps, this large manufacturing enterprise has achieved full operational improvement with data
- Summary of various situations in which easycvr cannot use voice intercom function
- What are the selected CDN content acceleration scenarios of Tencent cloud?
- Tencent host security (cloud mirror) arsenal: a sword to kill mining Trojans binaryai engine
- Property management source code based on wechat applet
- Detailed explanation of SSH tunnel and stable intranet penetration using autossh
- Global and Chinese alumina nanoparticle market scale and Development Trend Outlook report 2022-2028
- NFS operations and deployment
猜你喜欢
![[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)
![[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)

Stm32g474 infrared receiving based on irtim peripherals

layer 3 switch

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

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

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)
随机推荐
Troubleshooting and repair of easygbs docking with universal video equipment to broadcast message 487
Intensive use of glusterfs 4.1
How to handle the loading exception in easynvr sharing video playback through iframe?
Easynvr background channel list timing request touchstreamclient interface optimization
[tcapulusdb knowledge base] how to delete a table in tcapulusdb table management?
[dry goods] four tools linkage of automated batch hole digging process
[tcapulusdb knowledge base] tcapulusdb introduction Questions Summary
Tcapulusdb pays high tribute to Chinese journalists!
Collation of commonly used glusterfs commands
How to make a ECS into a fortress machine how long does it take to build a fortress machine
Build your own DSL with go and HCl
[technical grass planting] how can this double eleven be cost-effective!
"Cross border" layout photovoltaic circle Green Island wind invested 4.6 million to layout distributed photovoltaic power generation
Glusterfs version 4.1 selection and deployment
Application of "popular science" UAV and video technology in fire scene
[software cost consulting] information project bidding process and precautions
[technical grass planting] look what I did with my server!
[seckill] new / old users lock in the "explosive seckill zone" and snap up the one-year validity cloud function resource yyds for 63 yuan!
Logistics industry supplier collaborative management platform supplier life cycle management to optimize logistics costs
Tencent Conference - black screen analysis