Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vivado_2018.3_zedboard [2019/05/20 10:56] – [Create HDL wrapper] rpjdayvivado_2018.3_zedboard [2019/05/20 12:05] (current) – [petalinux-config] rpjday
Line 10: Line 10:
 </code> </code>
  
-===== Steps =====+===== Vivado steps =====
  
 ==== Create new project ==== ==== Create new project ====
Line 95: Line 95:
  
   * BLOCK DESIGN; design_1; Sources; right-click   * BLOCK DESIGN; design_1; Sources; right-click
-  * "Create HDL wrapper"+  * "Create HDL wrapper", let Vivado manage wrapper 
 + 
 +Primary output: 
 + 
 +<code> 
 +$ 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 
 +            │       ├── design_1_processing_system7_0_0.xci 
 +            │       └── design_1_processing_system7_0_0.xml 
 +            ├── sim 
 +            │   └── design_1.v 
 +            ├── synth 
 +            │   └── design_1.v 
 +            └── ui 
 +                └── bd_1f5defd0.ui 
 +</code>
  
 ==== Generate block design ==== ==== Generate block design ====
 +
 +Majority of output under ''zedboard.ip_user_files/''.
  
 ==== Run synthesis ==== ==== Run synthesis ====
Line 104: Line 131:
  
 ==== Generate bitstream ==== ==== Generate bitstream ====
 +
 +''zedboard.runs/impl_1/design_1_wrapper.bit''
  
 ==== Export hardware (include bitstream?) ==== ==== Export hardware (include bitstream?) ====
 +
 +End result:
 +
 +<code>
 +$ unzip -l design_1_wrapper.hdf
 +Archive:  design_1_wrapper.hdf
 +02LvEiD+u+Kz8iWSDr/wPVMUtQtx/Up+iy67Wzp7LsT7w=
 +  Length      Date    Time    Name
 +---------  ---------- -----   ----
 +      861  05-20-2019 07:27   hwdef.xml
 +    66717  05-20-2019 07:27   design_1.hwh
 +     6451  05-20-2019 07:27   design_1_bd.tcl
 +   313654  05-20-2019 07:27   ps7_init.c
 +     4908  05-20-2019 07:27   ps7_init.h
 +   313050  05-20-2019 07:27   ps7_init_gpl.c
 +     4294  05-20-2019 07:27   ps7_init_gpl.h
 +  1760914  05-20-2019 07:27   ps7_init.html
 +    24922  05-20-2019 07:27   ps7_init.tcl
 +---------                     -------
 +  2495771                     9 files
 +$
 +</code>
 +===== PetaLinux steps =====
 +
 +==== petalinux-create ====
 +
 +<code>
 +$ petalinux-create \
 +  --type project \
 +  --name zed \
 +  --template zynq
 +$ cd zed
 +$
 +</code>
 +
 +Output:
 +
 +<code>
 +.
 +├── 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
 +        │       ├── files
 +        │       │   ├── Makefile
 +        │       │   ├── peek.c
 +        │       │   └── poke.c
 +        │       └── peekpoke.bb
 +        ├── recipes-bsp
 +        │   ├── device-tree
 +        │   │   ├── device-tree.bbappend
 +        │   │   └── files
 +        │   │       └── system-user.dtsi
 +        │   └── u-boot
 +        │       ├── files
 +        │       │   └── platform-top.h
 +        │       └── u-boot-xlnx_%.bbappend
 +        └── recipes-core
 +            └── images
 +                └── petalinux-image-full.bbappend
 +</code>
 +
 +==== petalinux-config ====
 +
 +<code>
 +$ petalinux-config --get-hw-description <dir containing .hdf file>
 +</code>
 +
 +==== petalinux-build ====
  • vivado_2018.3_zedboard.1558349793.txt.gz
  • Last modified: 2019/05/20 10:56
  • by rpjday