---
# System prepended metadata

title: Regular Meeting (2021.1.9)
tags: [Regular Meeting, DeWei]

---

# Regular Meeting (2021.1.9)

* Solved [problem](https://hackmd.io/qKOyd_9FScCmjdIhv2pl2g) about xvc (last week)]
  * Maybe board-files we don't need to install
* XVC: 
  * New problem: solved
  * Some Critical Warnning
  * Hardware: passed (Report for hw: next week)
  * Next Step: software
  * **1st use *tcl* to compile bigger project**
    * I wish I can applied this experience to others project, e.g. UT4


## Solved problem about xvc (last week)

* Problem: can't find preset of processor system(ps)
  * Tried to install board files for pynq (not valid)

* Solution

  * step1: Finded preset files from [here](https://d2m32eurp10079.cloudfront.net/Download/pynq-z2_v1.0.xdc.zip), [content as here](https://github.com/curly-wei/xvc-pynq-z2/blob/main/src/hw/script/PYNQ-Z2.tcl)

  * step2: Apply preset for ps(pynq-z2)
    * Before modify:
    ``` tclsh
    # zybo
    # bd_system.tcl 
    set_property -dict [ 
      list \
      CONFIG.PCW_USE_M_AXI_GP0 {1} \
      CONFIG.preset {Microzed*}  \
    ] 
    $processing_system7_0
    ```
    * After modify:
  
    ``` tclsh
    # pynq-z2
    # bd_system.tcl 
    set_property -dict [apply_preset] \
    $processing_system7_0
    ```
  * step3: Marked ps preset file as necessary in my building script (tclsh)
  ```tclsh
  # top.tcl
  # Define script of bd-top file for ps
  set k_top_bd_script_file "${k_script_src_dir}/bd_system.tcl"
  ...
  ...
  ...
  if { [ file exists ${k_top_bd_script_file} ] == 1 } {
      puts "INFO: read-in files for top bd: ${k_top_bd_script_file}"
      source ${k_top_bd_script_file}
      update_compile_order -fileset ".srcs/sources_1"
    } else {
      error "ERROR: read-in files for ps preset: < ${k_top_bd_script_file} > fail. This file is necessary, please check again"
  }
  ```

## New problem about XVC

![](https://i.imgur.com/R67LkLg.png)

Solution:

1. Compare with 2 xvc blocks
  * zybo
    * ![](https://i.imgur.com/y0AsDz5.png)
  * pynq-z2
    * ![](https://i.imgur.com/CW2WAoo.png)

2. I guess that maybe problem caused by **ps-preset-file**
  * zybo
    * ![](https://i.imgur.com/uzPGZtl.png)
  * pynq-z2
    * ![](https://i.imgur.com/BIc10Ws.png)
 
## Some Critical Warnning

### Critical warnning
![](https://i.imgur.com/CBUAuQN.png)

1. DDR
[Discussion here](https://forums.xilinx.com/t5/Design-Entry/Vivado-critical-warning-when-creating-hardware-wrapper/td-p/762938)

2. Read-Only
[Discussion here](https://forums.xilinx.com/t5/AI-and-Vitis-AI/PYNQ-Z2-Board-Problems-with-hardware-rebuild-of-BNN-PYNQ-git/td-p/1024362)

###### tags: `Regular Meeting` `DeWei`