HDL Coder Presents ERROR Synth 8-5809 When Compiling Simulink Model

Updated Dec 13, 2023

Reported In

Software

  • Simulink

Issue Details

I am trying to compile a simple Simulink model for my NI FPGA device. However, when I launch the compilation, it fails with the following message:

...
Synthesize - Vivado...failed
Compilation Errors:
ERROR: [Synth 8-5809] Error generated from encrypted envelope. [C:/NIFPGA/jobs/dMK1D80_Dk9WUNX/NiLvFpgaClipContainer.vhd:90]
ERROR: [Synth 8-5809] Error generated from encrypted envelope. [C:/NIFPGA/jobs/dMK1D80_Dk9WUNX/NiLvFpgaClipContainer.vhd:88]
...


What is this and why am I getting this error? How can I get rid of it to compile my model?

Solution

The main reason a model errors out with the "[Synth 8-5809] Error generated from encrypted envelope" message is because, as explained in the Known Limitations for the HDL Coder Support Package for NI FPGA Hardware, purely combinatorial circuits such as circuits without clocks are not supported.

Even the simplest model must include a clock or time signal to be recognized as a valid model by the package. If your model does not use any of these signals, NI recommends adding a block that has a SampleTime parameter, such as the Delay block. See below a model that just has a gain stage with one of these blocks:
MicrosoftTeams-image (6).png
After adding the Delay block, the model was compiled successfully.