目标
编写了 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