UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant afgarrido
Participant
495 Views
Registered: ‎03-27-2017

Bitstream Encryption VCU118

Vivado Version 2017.4

Board VCU118

Video Reference: https://youtu.be/Jo4kI-M5st0

I am attempting to do a simple encryption of my bit file by using the directions in the Xilinx tutorial but am having trouble.

 

I set up my encryption after the design is synthesized using the Tools-->Edit Device Properties-->Encryption option selection (selecting Enable Bitstream Encryption to Yes and keeping all other options at their default value).  I then save my constraints file and run implementation. 

sybit.PNG

 

When I attempt to program the BBR Key I see the following 

programBB.PNG

 

then get the following error:

set_property PROGRAM.DPA_PROTECT 0 [get_hw_devices xcvu9p_0]
set_property ENCRYPTION.FILE {C:/workspace/Devon/Mult/Mult_Test1/Mult_Test1.runs/impl_1/Hardware_Sim.nky} [get_property PROGRAM.HW_BITSTREAM [lindex [get_hw_devices] 0]]
WARNING: [Xicom 50-49] Device name not specified, device check will be skipped
ERROR: [Labtools 27-3157] File Error: Invalid SLR index specified on line 5.
Invalid SLR index specified on line 7.
ERROR: [Common 17-39] 'set_property' failed due to earlier errors.

 

 

Hardware_Sim.nky contains:

Device xcvu9p;
EncryptKeySelect BBRAM;
Key0 27c7d1450b2e3415c3a3d91e146ac114c520fe38b01336ddaff205f06ff0e092, 0;
StartIV0 f63d61b50e770eff5f0140c0e0b67230, 0;
Key0 27c7d1450b2e3415c3a3d91e146ac114c520fe38b01336ddaff205f06ff0e092, 1;
StartIV0 f63d61b50e770eff5f0140c0e0b67230, 1;
Key0 27c7d1450b2e3415c3a3d91e146ac114c520fe38b01336ddaff205f06ff0e092, 2;
StartIV0 f63d61b50e770eff5f0140c0e0b67230, 2;

 

 

I must be missing something for how to encrypt the bit file for Ultrascale parts.  Are there additional steps I must take in order to correctly program the BBRAM?

 

0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
479 Views
Registered: ‎06-06-2018

Re: Bitstream Encryption VCU118

Hi @afgarrido,

 

After running implimentation and then open implimented design  and then try performing Tools-->Edit Device Properties-->Encryption option selection (selecting Enable Bitstream Encryption to Yes and keeping all other options at their default value).

 

Regards,

Deepak D N

------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please reply or give Kudos or Mark it as an Accepted Solution

------------------------------------------------------------------------------------------------------------------------------------------------------------------

0 Kudos
Highlighted
Participant afgarrido
Participant
452 Views
Registered: ‎03-27-2017

Re: Bitstream Encryption VCU118

Hello ddn,

  Thank you for the suggestion however I reached the same problem as before.  The nky file matches the same format of the previous post (of course the key values have been re-randomized) along with the same resulting error when I attempt to program the BBR key.

0 Kudos
Moderator
Moderator
426 Views
Registered: ‎06-05-2013

Re: Bitstream Encryption VCU118

Only below constraint is required to generate the required nky & bit file. Here is the AR  https://www.xilinx.com/support/answers/52881.html 

 

set_property BITSTREAM.ENCRYPTION.ENCRYPT YES [current_design] 

 

Let vivado generate the required .nky file for your design. Before programming, clear the BBR key & then program the bbr key using the generated nky file. 

 

I have attached the VCU118 sample bit with nky file (change the extension to .nky from .txt) . Try to use those files & let us know if there are any issues. 

If  it works file then share your design properties once you open the implemented design:

report_property -all [current_design]

 

Thanks

Harshit

 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------