Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vivado_2018.3_zedboard [2019/05/17 16:36] – [Overview] rpjday | vivado_2018.3_zedboard [2019/05/20 12:05] (current) – [petalinux-config] rpjday | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | Steps in building | + | Steps in building/exporting the output for Zynq Zedboard from Vivado 2018.3. |
| Line 7: | Line 7: | ||
| < | < | ||
| - | $ mkdir ~/xilinx/vivado_projects/zedboard_project | + | $ mkdir ~/xilinx/projects/vpjs/ |
| </ | </ | ||
| - | ===== Steps ===== | + | ===== Vivado steps ===== |
| + | |||
| + | ==== Create new project | ||
| * Select Zedboard (create subdirectory) | * Select Zedboard (create subdirectory) | ||
| - | | + | |
| * "Do not specify sources at this time" | * "Do not specify sources at this time" | ||
| - | | + | |
| + | |||
| + | End result: | ||
| + | |||
| + | < | ||
| + | . | ||
| + | ├── vivado.jou | ||
| + | ├── vivado.log | ||
| + | ├── vivado_pid5494.str | ||
| + | └── zedboard | ||
| + | ├── zedboard.cache | ||
| + | │ └── wt | ||
| + | │ | ||
| + | ├── zedboard.hw | ||
| + | │ └── zedboard.lpr | ||
| + | ├── zedboard.ip_user_files | ||
| + | ├── zedboard.sim | ||
| + | └── zedboard.xpr | ||
| + | </ | ||
| + | |||
| + | ==== Create block design ==== | ||
| * Create Block Design (take all defaults) | * Create Block Design (take all defaults) | ||
| * Empty design, " | * Empty design, " | ||
| * "ZYNQ7 Processing System" | * "ZYNQ7 Processing System" | ||
| + | |||
| + | End result: | ||
| + | |||
| + | < | ||
| + | . | ||
| + | ├── vivado.jou | ||
| + | ├── vivado.log | ||
| + | ├── vivado_pid5494.str | ||
| + | └── zedboard | ||
| + | ├── zedboard.cache | ||
| + | │ └── wt | ||
| + | │ | ||
| + | ├── zedboard.hw | ||
| + | │ └── zedboard.lpr | ||
| + | ├── zedboard.ip_user_files | ||
| + | ├── zedboard.sim | ||
| + | ├── zedboard.srcs | ||
| + | │ └── sources_1 | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | └── zedboard.xpr | ||
| + | </ | ||
| + | |||
| + | '' | ||
| + | |||
| + | < | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== Validation ==== | ||
| + | |||
| * Validate, error with M_AXI_GP0_ACLK | * Validate, error with M_AXI_GP0_ACLK | ||
| - | * Double click on design block graphic | + | * Double click on design block graphic: |
| * PS-PL Configuration | * PS-PL Configuration | ||
| * AXI Non Secure Enablement | * AXI Non Secure Enablement | ||
| Line 26: | Line 91: | ||
| * M AXI GP0 Interface (uncheck) | * M AXI GP0 Interface (uncheck) | ||
| * Validate again (should pass) | * Validate again (should pass) | ||
| - | * Generate Block Design | + | |
| - | * BLOCK DESIGN | + | ==== Create HDL wrapper ==== |
| - | * Right click | + | |
| - | * " | + | * BLOCK DESIGN; design_1; Sources; right-click |
| - | | + | * " |
| - | | + | |
| - | | + | Primary output: |
| - | | + | |
| + | < | ||
| + | $ tree zedboard.srcs | ||
| + | zedboard.srcs | ||
| + | └── sources_1 | ||
| + | └── bd | ||
| + | └── design_1 | ||
| + | ├── design_1.bd | ||
| + | ├── design_1.bxml | ||
| + | ├── design_1_ooc.xdc | ||
| + | ├── hdl | ||
| + | │ └── design_1_wrapper.v | ||
| + | ├── ip | ||
| + | │ └── design_1_processing_system7_0_0 | ||
| + | │ | ||
| + | │ | ||
| + | ├── sim | ||
| + | │ └── design_1.v | ||
| + | ├── synth | ||
| + | │ └── design_1.v | ||
| + | └── ui | ||
| + | └── bd_1f5defd0.ui | ||
| + | </ | ||
| + | |||
| + | ==== Generate block design ==== | ||
| + | |||
| + | Majority of output under '' | ||
| + | |||
| + | ==== Run synthesis ==== | ||
| + | |||
| + | ==== Run implementation | ||
| + | |||
| + | ==== Generate bitstream | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Export hardware (include bitstream? | ||
| + | |||
| + | End result: | ||
| + | |||
| + | < | ||
| + | $ unzip -l design_1_wrapper.hdf | ||
| + | Archive: | ||
| + | 02LvEiD+u+Kz8iWSDr/ | ||
| + | Length | ||
| + | --------- | ||
| + | 861 05-20-2019 07:27 | ||
| + | 66717 05-20-2019 07:27 | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | 1760914 | ||
| + | 24922 05-20-2019 07:27 | ||
| + | --------- | ||
| + | 2495771 | ||
| + | $ | ||
| + | </ | ||
| + | ===== PetaLinux steps ===== | ||
| + | |||
| + | ==== petalinux-create ==== | ||
| + | |||
| + | < | ||
| + | $ petalinux-create \ | ||
| + | --type project \ | ||
| + | --name zed \ | ||
| + | --template zynq | ||
| + | $ cd zed | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | Output: | ||
| + | |||
| + | < | ||
| + | . | ||
| + | ├── config.project | ||
| + | └── project-spec | ||
| + | ├── attributes | ||
| + | ├── configs | ||
| + | │ ├── config | ||
| + | │ └── rootfs_config | ||
| + | ├── hw-description | ||
| + | │ └── metadata | ||
| + | └── meta-user | ||
| + | ├── conf | ||
| + | │ ├── layer.conf | ||
| + | │ └── petalinuxbsp.conf | ||
| + | ├── COPYING.MIT | ||
| + | ├── README | ||
| + | ├── recipes-apps | ||
| + | │ ├── gpio-demo | ||
| + | │ │ ├── files | ||
| + | │ │ │ ├── gpio-demo.c | ||
| + | │ │ │ └── Makefile | ||
| + | │ │ └── gpio-demo.bb | ||
| + | │ └── peekpoke | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | ├── recipes-bsp | ||
| + | │ ├── device-tree | ||
| + | │ │ ├── device-tree.bbappend | ||
| + | │ │ └── files | ||
| + | │ │ | ||
| + | │ └── u-boot | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | └── recipes-core | ||
| + | └── images | ||
| + | └── petalinux-image-full.bbappend | ||
| + | </ | ||
| + | |||
| + | ==== petalinux-config ==== | ||
| + | |||
| + | < | ||
| + | $ petalinux-config --get-hw-description <dir containing .hdf file> | ||
| + | </ | ||
| + | |||
| + | ==== petalinux-build ==== | ||