Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
learn:programmable-logic:tutorials:cmod-a7-programming-guide:start [2017/05/02 16:52] – James Colvinlearn:programmable-logic:tutorials:cmod-a7-programming-guide:start [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 67: Line 67:
 ----- -----
 ====2. Creating Program File==== ====2. Creating Program File====
-For the two ways to program your Cmod A7 FPGA there are two file types available; .bit and .bin files. Using a .bit file we can use either the JTAG programming cable, or a standard USB storage device to load the bit file into the FPGA. Programming with a .bin file will use the QuadSPI to program the FPGA each time it is powered on. This means you will not have to reprogram it each time via a micro USB cable or by a thumb drive. The following steps bellow will get you all prepared to program your Cmod A7.+For the two ways to program your Cmod A7 FPGA there are two associated file types available; .bit and .bin files. Using a .bit file we can use either the JTAG programming cable, or a standard USB storage device to load the bit file into the FPGA. Programming with a .bin file will use the QuadSPI to program the FPGA each time it is powered on. This means you will not have to reprogram it each time via a micro USB cable or by a thumb drive. The following steps bellow will get you all prepared to program your Cmod A7.
  
 >2.1) In order to program the FPGA on startup we have to specify that we want to generate a .bin file. This can be done by clicking Tools> Project Settings> Bitstream. In this window we will check the box next to .bin_file. Now Vivado will create both a .bit, and .bin file when we generate a Bitstream. Click Ok. >2.1) In order to program the FPGA on startup we have to specify that we want to generate a .bin file. This can be done by clicking Tools> Project Settings> Bitstream. In this window we will check the box next to .bin_file. Now Vivado will create both a .bit, and .bin file when we generate a Bitstream. Click Ok.
Line 90: Line 90:
 >{{:basys3:22.png?nolink&500|}} >{{:basys3:22.png?nolink&500|}}
  
->2.8) Press "Ok", save your synthesized design (Ctrl+S) and then click "Generate Bitstream" in the Flow Navigator on the left side.+>2.8) Press "Ok", save your synthesized design (Ctrl+S). Vivado will notify you that since you have changed some things after synthesizing your design, your synthesis may become "out of date" with respect to your current project; go ahead and click Ok anyway. Vivado will then ask where you want to write unsaved constraints (even though we did not change any constaints); go ahead an choose the existing file that was used with this project and click Ok. Then click "Generate Bitstream" in the Flow Navigator on the left side.
 >{{:basys3:23.png?nolink&300|}} >{{:basys3:23.png?nolink&300|}}
  
Line 116: Line 116:
  
 ----- -----
-====5. Programming the Cmod A7 using Quad SPI====+====4. Programming the Cmod A7 using Quad SPI====
 Quad SPI Flash is a non-volatile memory that the Cmod A7's FPGA chip looks at on every startup. If Quad SPI is flashed then the FPGA will program itself with the contents found in Quad SPI's flash memory. This method of programming your board is great when you have a final project that you would like to demo or display that doesn't need to be edited and therefore reprogrammed. Quad SPI Flash is a non-volatile memory that the Cmod A7's FPGA chip looks at on every startup. If Quad SPI is flashed then the FPGA will program itself with the contents found in Quad SPI's flash memory. This method of programming your board is great when you have a final project that you would like to demo or display that doesn't need to be edited and therefore reprogrammed.
  
->5.1) In the Hardware Manager window, under hardware right click your device and click Add Configuration Memory Device...+>4.1) In the Hardware Manager window, under hardware right click your device and click Add Configuration Memory Device...
 >{{:basys3:basys3_screen_shot_2015-6-10_9.png?nolink&400|}} >{{:basys3:basys3_screen_shot_2015-6-10_9.png?nolink&400|}}
  
->5.2) This window will pop up. Select the **n25q32-3.3v-spix1_x2_x4** (highlighted below). Click OK on the next window asking if you want to program the configuration memory device.+>4.2) This window will pop up. Select the **n25q32-3.3v-spix1_x2_x4** (highlighted below). Click OK on the next window asking if you want to program the configuration memory device.
 >{{:cmod_a7:pg1.jpg?nolink&700|}} >{{:cmod_a7:pg1.jpg?nolink&700|}}
  
->5.3) Select the .bin file (found in your project/project.runs/impl_1/ folder) where it asks for a configuration file and finally click OK.+>4.3) Select the .bin file (found in your project/project.runs/impl_1/ folder) where it asks for a configuration file and finally click OK.
 >{{:genesys2:pg12.jpg?nolink&700|}} >{{:genesys2:pg12.jpg?nolink&700|}}