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: 
Highlighted
Participant memset
Participant
419 Views
Registered: ‎12-23-2009

SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution

Hello!

How to perform SPIx8 dual quad SPI flash readout in Vivado tools? Configuration memory device is selected for x1_x2_x4_x8 mode, but I'm not able to find any setting for real bus width. Also, readout dialog window allows selection of single readout file only, but two separate files are expected for SPIx8 mode.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
343 Views
Registered: ‎06-05-2013

Re: SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution

Here is how you can use GUI to readback the flash:

 

1) Program the flash using 2 flash files. 

program_flash.JPG

2) Readback flash file

readback_flash.JPG

3) Provide the readback file name with offset information. Tool will generate 2 flash readback files with the following suffix readback_file_name_primary & readback_file_name_secondary. 

 

readback_offset_with_filename.JPG 

 

Hope it helps. 

Thanks

Harshit

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
4 Replies
Moderator
Moderator
387 Views
Registered: ‎06-05-2013

Re: SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution
This feature has been added to VIvado 2018.3 which is the latest version. You can use lab tool version as well. Try to perform readback. It will generate primary and secondary readback images for you.

Thanks
Harshit
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Participant memset
Participant
356 Views
Registered: ‎12-23-2009

Re: SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution

No, it looks like I can't do that in Vivado 2018.3 too.

In Vivado 2018.3 lab tools:
For "Program Configuration Memory Device" dialog window with x1_x2_x4_x8 SPI chip selected I see "Configuration file" / "PRM file" and "Configuration file 2" / "PRM file 2" fields. Only verify but not readout is possible using this dialog.

For "Readback Configuration Memory Device" dialog window its only possible to select state of non-config IO pins, address range and single output file filename and format. Actual readout produces only one file exactly as named in this window. Can you check this please?

I think it may be possible to perform a dual SPI readout using tcl command. Can you please advice how to do that?

Unfortunately there are no example for readback_hw_cfgmem for dual SPI case in it's embedded help page.

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

Re: SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution

Here is how you can use GUI to readback the flash:

 

1) Program the flash using 2 flash files. 

program_flash.JPG

2) Readback flash file

readback_flash.JPG

3) Provide the readback file name with offset information. Tool will generate 2 flash readback files with the following suffix readback_file_name_primary & readback_file_name_secondary. 

 

readback_offset_with_filename.JPG 

 

Hope it helps. 

Thanks

Harshit

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Participant memset
Participant
309 Views
Registered: ‎12-23-2009

Re: SPIx8 (dual quad) readout in Vivado programming tools

Jump to solution

Yes, I've tested that and it works.

Logic behind configuring readback to dual chip is kind of weird, but it's doable. Of course, it's not always desirable to perform readback after programming, but easier setup is possible.

Preparation: in configuration device properties set "Programming file" and "Programming file 2" fields to point to any existing file (same file for both entries is well acceptable). This step is required to initializehw_cfgmem object to dual PROM configuration.

After that just run readback as usual: set output file name and start the process. Two files with _primary and _secondary suffixes will be generated.