ZYNQ linux笔记 --- Linux UIO框架下调用HLS ip核

目标


编写了 HLS IP核,实现对图像的缩放,已通过HLS 仿真验证和裸机验证,想在Linux端调用该IP

工程构建

简单描述一下,vdma出来连接 resize ip核,resize ip核后面接 vid_out ip
resize ip核的 interrput 接口通过 xlconcat ip 连接到PS端中断接口IRQ,这一点很重要!
在这里插入图片描述
导出xsa文件,开始构建Linux

修改设备树和内核

修改设备树

生成的 pl.dtsi 部分内容如下

	amba_pl: amba_pl {
   
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "simple-bus";
		ranges ;
		axi4_resize_0: axi4_resize@40000000 {
   
			/* This is a place holder node for a custom IP, user may need to update the entries */
			clock-names = "ap_clk";
			clocks = <&clkc 16>;
			compatible = "xlnx,axi4-resize-1.0";
			interrupt-names = "interrupt";
			interrupt-parent = <&intc>;
			interrupts = <0 31 4>;
			reg = <0x40000000 0x10000>;
			xlnx,s-axi-control-addr-width = <0x

相关推荐

  1. Go HTTP 调用

    2024-03-13 03:40:04       54 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-13 03:40:04       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-13 03:40:04       106 阅读
  3. 在Django里面运行非项目文件

    2024-03-13 03:40:04       87 阅读
  4. Python语言-面向对象

    2024-03-13 03:40:04       96 阅读

热门阅读

  1. 继续与否的决策

    2024-03-13 03:40:04       34 阅读
  2. 区块链技术的应用场景和优势

    2024-03-13 03:40:04       35 阅读
  3. Rust 注释用法

    2024-03-13 03:40:04       49 阅读
  4. 【video】记录audio+video

    2024-03-13 03:40:04       37 阅读
  5. VUE中常用的4种高级方法

    2024-03-13 03:40:04       42 阅读
  6. openGauss数据库安装与使用

    2024-03-13 03:40:04       38 阅读
  7. 选择适合微服务的编程语言

    2024-03-13 03:40:04       39 阅读
  8. Android 13.0 kenel中修改rom系统内部存储的大小

    2024-03-13 03:40:04       45 阅读
  9. mapper文件中的逻辑运算符替换

    2024-03-13 03:40:04       44 阅读
  10. 98. 一台服务器能支持多少QPS

    2024-03-13 03:40:04       36 阅读
  11. 二叉树的后序遍历

    2024-03-13 03:40:04       45 阅读