初级会员
- 积分
- 64
- 金钱
- 64
- 注册时间
- 2017-9-2
- 在线时间
- 7 小时
|
楼主 |
发表于 2020-3-13 12:18:00
|
显示全部楼层
下面是Linux驱动的测试程序的运行结果。这些是从putty中复制粘贴过来的。
- root@zynq_multiply_lite:~# ls
- chrdev_mul.ko chrdev_mul_APP
- root@zynq_multiply_lite:~# mv * /lib/modules/4.14.0-xilinx/
- root@zynq_multiply_lite:~# ls
- root@zynq_multiply_lite:~# cd /lib/modules/4.14.0-xilinx/
- root@zynq_multiply_lite:/lib/modules/4.14.0-xilinx# ls
- chrdev_mul.ko modules.builtin modules.order
- chrdev_mul_APP modules.builtin.bin modules.softdep
- kernel modules.dep modules.symbols
- modules.alias modules.dep.bin modules.symbols.bin
- modules.alias.bin modules.devname
- root@zynq_multiply_lite:/lib/modules/4.14.0-xilinx# insmod chrdev_mul.ko
- chrdev_mul: loading out-of-tree module taints kernel.
- Module started...
- mmap...
- char device driver already loaded!
- root@zynq_multiply_lite:/lib/modules/4.14.0-xilinx# ./chrdev_mul_APP /dev/mmult
- Opening the char device...ib/modules/4.14.0-xilinx# ./chrdev_mul_APP /dev/mmult
- Writing matrix A to kernel...
- #Kernel: (float)0x3f800000 was written to AXI BRAM(__iomem: 0xf0ab9000).
- #Kernel: (float)0x40000000 was written to AXI BRAM(__iomem: 0xf0ab9010).
- #Kernel: (float)0x40400000 was written to AXI BRAM(__iomem: 0xf0ab9020).
- #Kernel: (float)0x40000000 was written to AXI BRAM(__iomem: 0xf0ab9030).
- #Kernel: (float)0x40400000 was written to AXI BRAM(__iomem: 0xf0ab9040).
- #Kernel: (float)0x40800000 was written to AXI BRAM(__iomem: 0xf0ab9050).
- #Kernel: (float)0x40400000 was written to AXI BRAM(__iomem: 0xf0ab9060).
- #Kernel: (float)0x40800000 was written to AXI BRAM(__iomem: 0xf0ab9070).
- #Kernel: (float)0x40a00000 was written to AXI BRAM(__iomem: 0xf0ab9080).
- Writing matrix B to kernel...
- #Kernel: (float)0x3f800000 was written to AXI BRAM(__iomem: 0xf0ab9090).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab90a0).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab90b0).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab90c0).
- #Kernel: (float)0x3f800000 was written to AXI BRAM(__iomem: 0xf0ab90d0).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab90e0).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab90f0).
- #Kernel: (float)0x0 was written to AXI BRAM(__iomem: 0xf0ab9100).
- #Kernel: (float)0x3f800000 was written to AXI BRAM(__iomem: 0xf0ab9110).
- #in app: sending a START signal 0x1 to run HLS module.
- #Kernel: start signal received!
- Before START, register value = 4
- #Kernel: After START, register value of __iomem 0xf0abb000 = 0x1
- #in app: sending a query signal 0x10101010 to view HLS status.
- #Kernel: in query mode
- #Kernel: register value of __iomem 0xf0abb000 is 0x6
- #in app: AXI_LITE reg = 0x6
- #Kernel: in query mode
- #Kernel: register value of __iomem 0xf0abb000 is 0x4
- #in app: HLS task is done. AXI_LITE reg = 0x4
- #in app: Deriv#Kernel: (float)0x3f800000 fetched from __iomem 0xf0ab9000.
- ing result...
- #Kernel: Read data successfully.
- read data: 3f800000(aka. 1.000000)
- #Kernel: (float)0x40000000 fetched from __iomem 0xf0ab9010.
- #Kernel: Read data successfully.
- read data: 40000000(aka. 2.000000)
- #Kernel: (float)0x40400000 fetched from __iomem 0xf0ab9020.
- #Kernel: Read data successfully.
- read data: 40400000(aka. 3.000000)
- #Kernel: (float)0x40000000 fetched from __iomem 0xf0ab9030.
- #Kernel: Read data successfully.
- read data: 40000000(aka. 2.000000)
- #Kernel: (float)0x40400000 fetched from __iomem 0xf0ab9040.
- #Kernel: Read data successfully.
- read data: 40400000(aka. 3.000000)
- #Kernel: (float)0x40800000 fetched from __iomem 0xf0ab9050.
- #Kernel: Read data successfully.
- read data: 40800000(aka. 4.000000)
- #Kernel: (float)0x40400000 fetched from __iomem 0xf0ab9060.
- #Kernel: Read data successfully.
- read data: 40400000(aka. 3.000000)
- #Kernel: (float)0x40800000 fetched from __iomem 0xf0ab9070.
- #Kernel: Read data successfully.
- read data: 40800000(aka. 4.000000)
- #Kernel: (float)0x40a00000 fetched from __iomem 0xf0ab9080.
- #Kernel: Read data successfully.
- read data: 40a00000(aka. 5.000000)
- Closing the char device...
复制代码 |
|