Difference between revisions of "DESK-XZ7-L/Development/Creating and building the Vivado project"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")
 
Line 22: Line 22:
  
 
To reproduce the build, user just need to:
 
To reproduce the build, user just need to:
 
 
* clone the repository:
 
* clone the repository:
<pre class="workstation-terminal">
+
<syntaxhighlight lang="bash">
 
git clone git@git.dave.eu:sdv12/vivado.git -b desk-xz7-l-rel-1.0.0
 
git clone git@git.dave.eu:sdv12/vivado.git -b desk-xz7-l-rel-1.0.0
 
cd vivado
 
cd vivado
</pre>
+
</syntaxhighlight>
 
* (only once as first tools setup) copy Bora hardware definition into Vivado installation.:
 
* (only once as first tools setup) copy Bora hardware definition into Vivado installation.:
<pre class="workstation-terminal">
+
<syntaxhighlight lang="bash">
 
cp -r boards/ /opt/Xilinx/2021.2/Vivado/2021.2/data/
 
cp -r boards/ /opt/Xilinx/2021.2/Vivado/2021.2/data/
</pre>
+
</syntaxhighlight>
 
* lunch Vivado Design Suite with the following command:
 
* lunch Vivado Design Suite with the following command:
<pre class="workstation-terminal">
+
<syntaxhighlight lang="bash">
 
source /opt/Xilinx/2021.2/Vivado/2021.2/settings64.sh
 
source /opt/Xilinx/2021.2/Vivado/2021.2/settings64.sh
 
vivado -mode tcl -source scripts/recreate_prj_bora_BASE.tcl -notrace -tclargs "gen_bitstream"
 
vivado -mode tcl -source scripts/recreate_prj_bora_BASE.tcl -notrace -tclargs "gen_bitstream"
</pre>
+
</syntaxhighlight>
 
* at the end of bitstream build process, the script automatically exports hardware
 
* at the end of bitstream build process, the script automatically exports hardware
 
** The Vivado project ready for customization through Vivado GUI is available into <code>vivado/bora.xpr</code>
 
** The Vivado project ready for customization through Vivado GUI is available into <code>vivado/bora.xpr</code>
Line 43: Line 42:
 
*** <code>vivado/bora.runs/impl_1/bora_wrapper.bin</code>
 
*** <code>vivado/bora.runs/impl_1/bora_wrapper.bin</code>
 
** The hardware export, ready for import into Petalinux, is available in <code>vivado/bora.xsa</code>
 
** The hardware export, ready for import into Petalinux, is available in <code>vivado/bora.xsa</code>
 +
<section end=Body/>
  
 
----
 
----
  
 
[[Category:BORA]]
 
[[Category:BORA]]

Revision as of 16:59, 18 November 2022

History
ID# Issue Date Notes

1xxxx

Q1 2023 DESK-XZ7-L-1.0.0 release



Creating and building the Vivado project[edit | edit source]

The Vivado repository allows to:

  • track hardware/fpga related sources/configuration
  • reproduce hardware design output (FPGA bitstream, XSA) using TCL scripts

To reproduce the build, user just need to:

  • clone the repository:
git clone git@git.dave.eu:sdv12/vivado.git -b desk-xz7-l-rel-1.0.0
cd vivado
  • (only once as first tools setup) copy Bora hardware definition into Vivado installation.:
cp -r boards/ /opt/Xilinx/2021.2/Vivado/2021.2/data/
  • lunch Vivado Design Suite with the following command:
source /opt/Xilinx/2021.2/Vivado/2021.2/settings64.sh
vivado -mode tcl -source scripts/recreate_prj_bora_BASE.tcl -notrace -tclargs "gen_bitstream"
  • at the end of bitstream build process, the script automatically exports hardware
    • The Vivado project ready for customization through Vivado GUI is available into vivado/bora.xpr
    • The bitstream file is now present in
      • vivado/bora.runs/impl_1/bora_wrapper.bit
      • vivado/bora.runs/impl_1/bora_wrapper.bin
    • The hardware export, ready for import into Petalinux, is available in vivado/bora.xsa