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/20 10:33] – [Create block design] rpjday | vivado_2018.3_zedboard [2019/05/20 12:05] (current) – [petalinux-config] rpjday | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| </ | </ | ||
| - | ===== Steps ===== | + | ===== Vivado steps ===== |
| ==== Create new project ==== | ==== Create new project ==== | ||
| Line 91: | Line 91: | ||
| * M AXI GP0 Interface (uncheck) | * M AXI GP0 Interface (uncheck) | ||
| * Validate again (should pass) | * Validate again (should pass) | ||
| - | | + | |
| - | * Right click | + | ==== Create HDL wrapper ==== |
| - | * " | + | |
| - | | + | |
| - | | + | * " |
| - | | + | |
| - | | + | 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 ==== | ||