sld-columbia / esp

Embedded Scalable Platforms: Heterogeneous SoC architecture and IP integration made easy
Other
326 stars 105 forks source link

Updated PR with just the required files #108

Closed JuanEsco063 closed 3 years ago

JuanEsco063 commented 3 years ago
modified:   socs/xilinx-zcu102-xczu9eg/top.vhd
modified:   socs/xilinx-zcu102-xczu9eg/zynqmp_top_wrapper.vhd
new file:   tools/esplink/src/le_zcu.c
new file:   tools/esplink/src/le_zcu.h
new file:   tools/esplink/src/memmap.c
new file:   tools/esplink/src/memmap.h
new file:   tools/esplink/src/socmap.h

Untracked files: tools/esplink/src/main_zcu.c

This modifies top.vhd and zynqmp_top_wrapper.vhd for the ZCU102.

Sets the correct value for hprot in top.vhd
Sets the correct address range in top.vhd
Add debug signals in zynqmp_top_wrapper.vhd

I have also modified the ESP link app to work on the ZCU

Added files in esp/tools/esplin/src for a working main (main_zcu) app (le_zcu.h, le_zcu.c, memmap.h, memmap.c,main_xcu.c)

Note the change in the Zynq device tree to add the udmabuf entry is not tracked and thus not reflected here. The entry is:

reserved-memory {

address-cells = <2>;

size-cells = <2>;

ranges; esp_buf0: esp_buf@40000000 { compatible = "shared-dma-pool"; reusable; dma-coherent; reg = <0x0 0x40000000 0x0 0x40000000>; label = "esp_buf0"; }; }; udmabuf_esp@0 { compatible = "ikwzm,u-dma-buf"; device-name = "udmabuf_esp0"; dma-coherent; size = <0x40000000>; // 1GB memory-region = <&esp_buf0>; };

At the end of .../esp/socs/xilinx-zcu102-xczu9eg/zynq/zcu102/sdk/dt/system.dts.tmp