In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the example analysis of HLS Lesson20. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
1. Improved throughput: essentially achieved by improving parallelism
When pipeline acts on a function, there is no gap in the data from the IO point of view, while when acting on a loop, there will be a gap between the two adjacent loops.
two。 Improve latency
3. Improve area
Example: cordic
Here, the value range of z0 is required to be [- π / 2, π / 2]. For the number of [- π, π], it is necessary to pre-process and map to [- π / 2, π / 2], and then calculate it, and finally carry out post-processing.
# include "cordic.h"
Void pre_cir_cordic (di_t full_alpha,di_t & alpha,flag_t & flag)
{
If (full_alpha > PI/2)
{
Alpha=PI-full_alpha
Flag=2
}
Else if (full_alpha > m)
Yi [massi1] = Yi [m] + (xi [m] > > m)
Zi [massi1] = Zii [m]-myarctan [m]
}
Else
{
Xi [massi1] = Xi [m] + (yi [m] > > m)
Yi [massi1] = Yi [m]-(Xi [m] > > m)
Zi [massi1] = Zii [m] + myarctan [m]
}
Flag_delay_ a [m + 1] = flag_delay_ a [m]
}
Mysin= Yi [N-1]
Mycos= Xi [N-1]
Flag_delay=flag_delay_ a [N-1]
}
Void post_cir_cordic (do_t mysin,do_t mycos,flag_t flag_delay,do_t & sin_out,do_t & cos_out)
{
Switch (int (flag_delay))
{
Case 2 rig sinuous outflow mystical cosmetic outflow color mycosmic break
Case 3bloc sinuous outflow mystical cosmetic outflow color mycosmic break
Default:sin_out=mysin;cos_out=mycos;break
}
}
Void cir_cordic (di_t full_alpha,do_t & sin_out,do_t & cos_out)
{
Di_t alpha
Flag_t flag
Do_t mysin
Do_t mycos
Flag_t flag_delay
Pre_cir_cordic (full_alpha,alpha,flag)
Cir_cordic_calc (alpha,flag,mysin,mycos,flag_delay)
Post_cir_cordic (mysin,mycos,flag_delay,sin_out,cos_out)
}
After reading the above, do you have any further understanding of the example analysis of HLS Lesson20? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.