I thought a few of these slides were worth a look. Google's justification of HLS is "higher up the food chain" than just design entry (the thing we do when we write RTL). They are interested in:
domain exploration,
"feature creep" (presumably "design evolution", when stated as a positive),
validation tooling,
maintainability, and
simulation throughput.
...plus the co-simulation of RTL with the software stack that invariably goes along with it.
I am reluctant to poke the HLS bees'-nest here (which tends to be much more myopically focused on design entry) - I don't currently use HLS, but I fully expect to try again in the future.
I do extensively use C++/RTL cosimulation and think it's a revelation compared to a conventional RTL-only validation flow.
It would be interesting to know more about the HLS flow that they're using (catapult from Siemens, apparently) and how it compares to other offerings. It would also be interesting to know if they're don't the whole design in HLS, or just the core logic and then integrating all of the pieces with HDL.
I have used catapult and Vivado HLS. Both are similar in flow though Vivado HLS is easier to use, but ties you to the ecosystem. One of the great benefits of catapult is the ability to quickly change technologies from different FPGA vendors to ASIC Targets. I did a white paper for Mentor on how to port from Vivado HLS to Catapult which shows a lot of the differences between the two
How portable is HLS code between different tools? I was under the impression that they are all somewhat different and therefore it's no possible/practical to write portable code, but I certainly could be wrong about that as I have not done anything with HLS.
For HLS, everything is plain C++ until it's synthesized and entire world of software testing tools is your oyster. Multicore? Sure, why not? I think this is something HLS teams feel in their bones but will have a hard time really conveying to people who haven't lived it.
For my homebrew cosimulation, I use Xilinx's xsim with XSI. (It is the only simulator on my list - I'd much prefer open-source but need mixed-language and encrypted IP.) In this situation simulation licenses are not enumerated (ssh, don't tell) and I'm incentivized to create many short test cases I can run in parallel. Performance of any single test is poor with xsim (multicore? either not at all, or not meaningfully) but I can still keep indefinitely many cores pegged on a regression suite.
So, if you're okay with a large silicon budget, HLS is fine. But if you're working on FPGAs where you have a very limited silicon budget and a lot of tricks you can do in RTL in custom silicon are already restricted or expensive and then throw on an even more expensive abstraction layer in terms of generation on top of that, well you can see where the double whammy of penalties comes from. That's not to say HLS on FPGA is horrible or useless. I've used it extensively for domain exploration and just trying stuff out. But every design that I've ever used HLS for hit the wall of "okay, we're in 2-4 of the largest FPGAs on the market today and we either need to drop the HLS or go to an ASIC" and ultimately, we always dropped HLS because it was cheaper to do so than go to an ASIC. But we were working on scales of 2,000-5,000 units with incomplete specifications and no desire by the customer to lockdown the final requirements 2-3 years in advance of the need rather than 6-12 months. At YouTube's scale (I'd estimate they need probably 100K+ VCUs at a minimum), an ASIC makes a lot of sense.
HLS isn't bad, it's just not a jack of all trades and it works better for some applications (video pipelines, OpenCL kernel accelerators, ML, etc.) than others (network stream processing, complex interconnects and NoCs, etc.).
I thought a few of these slides were worth a look. Google's justification of HLS is "higher up the food chain" than just design entry (the thing we do when we write RTL). They are interested in:
...plus the co-simulation of RTL with the software stack that invariably goes along with it.
I am reluctant to poke the HLS bees'-nest here (which tends to be much more myopically focused on design entry) - I don't currently use HLS, but I fully expect to try again in the future.
I do extensively use C++/RTL cosimulation and think it's a revelation compared to a conventional RTL-only validation flow.
It would be interesting to know more about the HLS flow that they're using (catapult from Siemens, apparently) and how it compares to other offerings. It would also be interesting to know if they're don't the whole design in HLS, or just the core logic and then integrating all of the pieces with HDL.
I have used catapult and Vivado HLS. Both are similar in flow though Vivado HLS is easier to use, but ties you to the ecosystem. One of the great benefits of catapult is the ability to quickly change technologies from different FPGA vendors to ASIC Targets. I did a white paper for Mentor on how to port from Vivado HLS to Catapult which shows a lot of the differences between the two
How portable is HLS code between different tools? I was under the impression that they are all somewhat different and therefore it's no possible/practical to write portable code, but I certainly could be wrong about that as I have not done anything with HLS.
It was pretty portable, you need to be careful about the types though and location of pragamas change.
The white paper is available here https://static.sw.cdn.siemens.com/siemens-disw-assets/public/6vsLNBOSDS3qrdspOT0d12/en-US/Siemens-SW-Porting-Vivado-HLS-designs-to-Catapult-WP-81881-C1.pdf
One of the best benefits of not using Catapult is not having to deal with Mentor Graphics. Sadly, it's one of the best of HLS tools on the market.
It's interesting to bring up the co-simulation of RTL with the software stack. Is the software stack running on multi-cores?
For HLS, everything is plain C++ until it's synthesized and entire world of software testing tools is your oyster. Multicore? Sure, why not? I think this is something HLS teams feel in their bones but will have a hard time really conveying to people who haven't lived it.
For my homebrew cosimulation, I use Xilinx's xsim with XSI. (It is the only simulator on my list - I'd much prefer open-source but need mixed-language and encrypted IP.) In this situation simulation licenses are not enumerated (ssh, don't tell) and I'm incentivized to create many short test cases I can run in parallel. Performance of any single test is poor with xsim (multicore? either not at all, or not meaningfully) but I can still keep indefinitely many cores pegged on a regression suite.
So, if you're okay with a large silicon budget, HLS is fine. But if you're working on FPGAs where you have a very limited silicon budget and a lot of tricks you can do in RTL in custom silicon are already restricted or expensive and then throw on an even more expensive abstraction layer in terms of generation on top of that, well you can see where the double whammy of penalties comes from. That's not to say HLS on FPGA is horrible or useless. I've used it extensively for domain exploration and just trying stuff out. But every design that I've ever used HLS for hit the wall of "okay, we're in 2-4 of the largest FPGAs on the market today and we either need to drop the HLS or go to an ASIC" and ultimately, we always dropped HLS because it was cheaper to do so than go to an ASIC. But we were working on scales of 2,000-5,000 units with incomplete specifications and no desire by the customer to lockdown the final requirements 2-3 years in advance of the need rather than 6-12 months. At YouTube's scale (I'd estimate they need probably 100K+ VCUs at a minimum), an ASIC makes a lot of sense.
HLS isn't bad, it's just not a jack of all trades and it works better for some applications (video pipelines, OpenCL kernel accelerators, ML, etc.) than others (network stream processing, complex interconnects and NoCs, etc.).