189 points · by _Microft · 2y ago · 58 comments
Looks like back in 2021 they had an intention to document these, but never quite got round to it:
https://esp32.com/viewtopic.php?p=88114&sid=f7f25776d9cfc6b6...
They do publish a bunch of opensource code that uses the SIMD stuff, and an assembler, so it isn't secret, just very badly documented.
Page 37-301 of the reference manual seems to have all you'd need, including binary instruction encodings, details on instruction timings, etc.
https://www.espressif.com/sites/default/files/documentation/...
The P4 can't come soon enough to get off Xtensa.
Cadence does indeed have their own SIMD architecture ("HiFi", really it's a family of similar but binary-incompatible ISAs). And indeed docs for that don't appear in public (though if you look carefully, details for how to emit the instructions are part of the GNU toolchain integration).
But that isn't this. If you want docs for this, talk to Espressif, not Cadence.
It will have USB-OTG and an LCD driver at least, which so far have been missing from all of their RISC-V parts.
Eg if you want 5ghz then use c5, or if you want some wifi-6 so c6, etc.
Also here’s a talk by them on how to use esp as a wifi coprocessor https://youtu.be/g14aEjnjRLw?si=TgkEyJJ2_L_Shuom
There’s also adafruit airlift https://www.adafruit.com/product/4201
Using a second board just for WiFi is definitely not totally fine for most applications. Having everything integrated into a single package important for everything from reducing BOM count to lower power consumption to development simplicity.
Can you explain this? Why use esp as a peripheral if you already have an ARM chip?
We were considering moving off of esp to something that would make it easier do cpu-bound AI inference on-device or to enable more advanced audio DSP algos.
Honestly I was a bit surprised that espressif used it without defining their own extension of some kind, if you're not doing that then you might as well use something better known.
Edit: ajross* points out that this SIMD extension is such a one, not an off the shelf one. So I guess that explains it.
0: https://bitbanksoftware.blogspot.com/2024/01/esp32-s3-simd-m...
They also make a set of modules per chip, so you can get a particular chip in an easier to use package with e.g a built-in PCB antenna or antenna mounting ports or no antenna, various onboard flash sizes, that sort of stuff: https://www.espressif.com/en/products/modules
C3 if you don't, and are OK with RISC-V
PICO 3v2 otherwise.
(edit: apparently it might? I can't find the documents on how to actually use the OTG device over the fixed IP)
0: https://www.espressif.com/en/products/socs/esp32-s3
1: https://chat.openai.com/share/3e1f990d-e8eb-4e56-acbb-ad5a33...
We all knew there were SIMD instructions, but if there’s no information on how to use them or what they do…
There are some numbers here on the performance improvements he’s managed to make.
I've seen ChatGPT invent its own functions and commands ...
Without scatter/gather I don't think I'm gonna be able to meet my timing requirements (I need to distort images through warping, which is tricky to do without scatter/gather)
Could save a couple of cycles per iteration by preloading the shift amounts into several GPRs before entering the loop, instead of initializing them just before use.
I was looking at doing some hardware image processing for a project (which I still haven't properly started) and looked at an S3 (too weak even with SIMD) to a Gowin FPGA (cheaper than the competition but FPGAs still seemed like a time sink learning HDL or VHDL) and then I ended up picking a pi zero 2, of which the Videocore IV has great SIMD which is now fully documented.
Only problem is that I _still_ haven't started the project even though I have parts sitting there. Was definitely tough trying to consider what the best option might be for processing high speed (90-120fps) video frames.