当前位置:   article > 正文

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

linux调用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
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/煮酒与君饮/article/detail/744670
推荐阅读
相关标签
  

闽ICP备14008679号