ERROR: [Synth 8-5809] Error generated from encrypted envelope, Failed to read verilog

0

Hi, I am new to AWS EC2 F1 FPGAs. I am trying to build cl_helloworld.sv example. When I am compiling synthesis failing due to following error.

ERROR: [Synth 8-5809] Error generated from encrypted envelope. [/home/centos/aws-fpga/hdk/cl/examples/cl_hello_world/build/src_post_encryption/cl_hello_world.sv:470] Failed to read verilog '/home/centos/aws-fpga/hdk/cl/examples/cl_hello_world/build/src_post_encryption/cl_hello_world.sv' INFO: [Common 17-83] Releasing license: Synthesis 10 Infos, 9 Warnings, 0 Critical Warnings and 2 Errors encountered. synth_design failed ERROR: [Common 17-69] Command failed: Synthesis failed - please see the console or run log file for details

Could someone help to resolve this error?

Thanks, Saichand

asked a year ago592 views
4 Answers
0

This error message suggests that there's an issue with the encrypted envelope for the cl_helloworld example in AWS EC2 F1 FPGA. It seems like the encrypted Verilog file failed to be read during synthesis, causing the synth_design process to fail.

To resolve the issue, you could try the following steps:

  • Check the file path of the encrypted Verilog file to ensure it's correct and readable.
  • Check the permissions of the file and the directories to ensure they are set correctly.
  • If the file path is correct and the permissions are set correctly, try re-encrypting the Verilog file.
  • If re-encrypting doesn't work, try to compile a different example to see if it's a general issue with the AWS EC2 F1 FPGA setup or just with this specific example.
profile picture
answered a year ago
  • Hi Divyam, Thank you for the suggestions.

    I checked file path of the encrypted Verilog file it is correct and readable. I checked the permissions of the file and the directories and found them to be correctly set. I re-encrypted the Verilog file by deleting the older encrypted file and a new file got created. I tried compiling cl_dram_dma example and I find same error which is as below.

    ERROR: [Synth 8-5809] Error generated from encrypted envelope. [/home/centos/aws-fpga/hdk/common/shell_v04261818/design/ip/ila_vio_counter/hdl/xsdbm_v3_0_vl_rfs.v:1] ERROR: [Synth 8-5809] Error generated from encrypted envelope. [/home/centos/aws-fpga/hdk/common/shell_v04261818/design/ip/ila_vio_counter/hdl/xsdbm_v3_0_vl_rfs.v:1] Failed to read verilog '/home/centos/aws-fpga/hdk/common/shell_v04261818/design/ip/ila_vio_counter/hdl/xsdbm_v3_0_vl_rfs.v' INFO: [Common 17-83] Releasing license: Synthesis 10 Infos, 14 Warnings, 0 Critical Warnings and 3 Errors encountered. synth_design failed ERROR: [Common 17-69] Command failed: Synthesis failed - please see the console or run log file for details

    Thanks, Saichand.

0

Hi Saichand,

Thank you for being interested in F1 instance. Divyam has really good points. Can you please check those points and make sure you see the encrypted cl_hello_world.sv under /src_post_encryption. I recommend you double check and ensure that you are following the steps here (https://github.com/aws/aws-fpga/tree/master/hdk#getting-started) for building the cl_hello_world example. In addition, can you please let me know if you're running this test on a EC2 instance or on an on-prem machine?

Thanks,

Chen

AWS
answered a year ago
  • Hi Chen, Thank you for the suggestions.

    I am running the example on EC2 t2.nano instance using FPGA Developer AMI and Vivado 2022.1v. I can access encrypted cl_hello_world.sv under /src_post_encryption I followed all the steps mentioned in https://github.com/aws/aws-fpga/tree/master/hdk#getting-started

    I also want to mention couple of things here hoping to helping to resolve the errors.

    1. While running hdk_setup.sh there was an ERROR: Vivado v2022.1 (64-bit) is not supported by this HDK release. To resolve the above error I added v2022.1 in supported_vivado_versions.txt. Then the hdk_setup.sh ran successfully.
    2. While running the build there was the following error ERROR: YOUR INSTANCE has less memory than is necessary for certain builds. This means that your builds will take longer than expected. I am using following command: ./aws_build_dcp_from_cl.sh -ignore_memory_requirement -notify
      to ignore and bypass the error
    3. Apart from the encrypted envelop errors that mentioned earlier there was a WARNING: [Vivado 12-13651] The IP file '/home/centos/src/project_data/aws-fpga/hdk/common/shell_v04261818/design/ip/vio_0/vio_0.xci' has been moved from its original location, as a result the outputs for this IP will now be generated in '/home/centos/src/project_data/aws-fpga/hdk/common/shell_v04261818/design/ip/vio_0'. Alternatively a copy of the IP can be imported into the project using one of the 'import_ip' or 'import_files' commands.

    Thanks, Saichand.

0

Hi Saichand,

I want to double check the branch you used for this job that generated the synthesis error. Since you're using Vivado v2022.1, you would need to switch to the branch "REL_2022_1" (https://github.com/aws/aws-fpga/tree/REL_2022_1) in order to build those CL examples. My guess is that you were using the main branch. If so, please switch the branch and try again. You should be unblocked.

In addition, please be careful about the memory error and the usage of the "-ignore_memory_requirement" option. Xilinx recommends at least 32GB memory space, so a bigger instance type is recommended.

Please let us know if you're still facing any problem.

Thanks,

Chen

AWS
answered a year ago
  • Hi Chen, Thank you for the suggestions.

    I will try synthesis by switching to the branch "REL_2022_1" and get back on it.

    Regards, Saichand.

0

Hi Saichand,

Thank you for your patience and all the information provided. That's very helpful. I'll further investigate this issue on my end to see if I can replicate this. I'll keep you updated asap.

Thanks,

Chen

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions