Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21568 Discussions

Encrypting configuration .sof file using Command line interface

Avina
Beginner
1,359 Views

Hi,

 

I need to convert .sof file into .jic & .ekp files using the command line in order to use it in an automatic post flow script. 

 

I was trying to run the following command:

 

quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -k key_file.key key1:key2

 

i got an error "size of file(s) in EPCS128 exceeds memory capacity"

 

i need to enable the compression option - could someone advise the correct syntax for the compression enable??

 

AN556 page 16 mention to use an option file which contains the string compression=on

 

what kind of file format is the option file? could someone attach example of file with the correct syntax?

 

 

 

regards

 

Avi

Labels (1)
0 Kudos
5 Replies
Fakhrul
Employee
1,310 Views

Hi Avina,


You might want to take a look at a related post:

quartus_cpf - converting sof file to encrypted pof (with ekp included) for Max 10 FPGA


Regards,

Fakhrul



0 Kudos
Avina
Beginner
1,296 Views

Hi Fakhrul,

 

thanks for your reply,

 

your answer doesn't help me to much.. i need to compress the .sof file and create a .jic encrypted file 

 

i need the complete syntax (include the compression option enable) to run in the command line.

 

the following command ended with the following error: 

 

quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -k key_file.key key1:key2

 

"size of file(s) in EPCS128 exceeds memory capacity"

 

hope you can answer me quickly

 

Regards,

 

Avi

0 Kudos
Fakhrul
Employee
1,203 Views

Hi Avina,


Could you try to check the compression command found in table 4 on page 14, here: https://cdrdv2.intel.com/v1/dl/getContent/733068?fileName=ug-683432-733068.pdf


Btw, have you tried using Quartus GUI? Is it working?


Also, can you try to use the latest Quartus version?


Regards,

Fakhrul


0 Kudos
Fakhrul
Employee
1,151 Views

Please be advised that due to the absence of a response from you regarding the previous notification we provided, we will be transitioning this thread to community support. If you have any new questions or concerns, we kindly suggest opening a new thread to receive assistance from Intel experts. However, if you do not have any further inquiries, the community users will be available to assist you on this thread. Thank you for your understanding.


0 Kudos
Avina
Beginner
1,136 Views

Hi, 

 

Juliusz gave me the following solution: 

 

quartus_cpf -c design_file.sof design_file.jic -d EPCS128 -s EP4SGX530 -o bitstream_compression=on -k key_file.key:key1:key2
Adding option bitstream_compression allows to create compressed bitstream.

 

it helped to compress the file and now i need to check if the file is also encrypted.

 

i will let you know as soon as i test it on the board 

 

Avi. 

0 Kudos
Reply