资源简介
基于Vivado HLS在zedboard中的Sobel滤波算法实现 代码
代码片段和文件信息
// ==============================================================
// File generated by AutoESL - High-Level Synthesis System (C C++ SystemC)
// Version: 2012.1
// Copyright (C) 2012 Xilinx Inc. All rights reserved.
//
// ==============================================================
/***************************** Include Files *********************************/
#include “xsobel_filter.h“
/************************** Function Implementation *************************/
int XSobel_filter_Initialize(XSobel_filter *InstancePtr XSobel_filter_Config *ConfigPtr) {
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(ConfigPtr != NULL);
InstancePtr->Control_bus_baseAddress = ConfigPtr->Control_bus_baseAddress;
InstancePtr->IsReady = XIL_COMPONENT_IS_READY;
return XST_SUCCESS;
}
void XSobel_filter_Start(XSobel_filter *InstancePtr) {
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
XSobel_filter_WriteReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_AP_CTRL 1);
}
u32 XSobel_filter_IsDone(XSobel_filter *InstancePtr) {
u32 Data;
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
Data = XSobel_filter_ReadReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_AP_CTRL);
return (Data >> 1) & 0x1;
}
u32 XSobel_filter_IsIdle(XSobel_filter *InstancePtr) {
u32 Data;
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
Data = XSobel_filter_ReadReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_AP_CTRL);
return (Data >> 2) & 0x1;
}
void XSobel_filter_SetRows(XSobel_filter *InstancePtr u32 Data) {
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
XSobel_filter_WriteReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_ROWS_DATA Data);
}
u32 XSobel_filter_GetRows(XSobel_filter *InstancePtr) {
u32 Data;
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
Data = XSobel_filter_ReadReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_ROWS_DATA);
return Data;
}
void XSobel_filter_SetCols(XSobel_filter *InstancePtr u32 Data) {
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
XSobel_filter_WriteReg(InstancePtr->Control_bus_baseAddress XSOBEL_FILTER_CONTROL_BUS_ADDR_COLS_DATA Data);
}
u32 XSobel_filter_GetCols(XSobel_filter *InstancePtr) {
u32 Data;
Xil_AssertNonvoid(InstancePtr != NULL);
Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
Data = XSobel_filter_ReadReg(InstancePtr->Control_bus_baseAddress XSOB
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-12-21 19:33 upload\
目录 0 2013-01-04 04:24 upload\ba
目录 0 2012-12-21 19:31 upload\ba
目录 0 2012-12-21 20:24 upload\ba
文件 8791 2012-11-29 22:52 upload\ba
目录 0 2012-12-21 19:30 upload\ba
文件 0 2012-11-27 17:19 upload\ba
文件 59101 2012-11-27 17:19 upload\ba
文件 418 2012-11-29 22:11 upload\ba
目录 0 2012-12-21 19:30 upload\ba
文件 13832 2012-12-21 20:22 upload\ba
文件 29123 2012-12-21 20:22 upload\ba
文件 10832 2012-11-27 17:32 upload\ba
文件 1625 2012-11-29 17:37 upload\ba
目录 0 2012-12-21 19:30 upload\ba
文件 39 2012-11-27 17:19 upload\ba
文件 0 2012-11-27 17:19 upload\ba
文件 2794 2012-11-27 17:19 upload\ba
文件 8573 2012-12-21 20:23 upload\ba
文件 13978 2012-12-21 20:23 upload\ba
目录 0 2012-12-21 19:30 upload\ba
目录 0 2012-12-21 19:30 upload\ba
目录 0 2012-12-21 19:30 upload\ba
目录 0 2012-12-21 19:30 upload\ba
目录 0 2012-12-21 19:30 upload\ba
文件 38276 2012-11-29 22:11 upload\ba
文件 165929 2012-11-29 22:11 upload\ba
文件 3979 2012-11-29 22:11 upload\ba
文件 35663 2012-11-29 22:11 upload\ba
文件 6063 2012-11-29 22:11 upload\ba
文件 35652 2012-11-29 22:11 upload\ba
............此处省略3061个文件信息
相关资源
- AXI DMA测试Vivado工程,含XSDK FSBL Proje
- zynq/zedboard/xlinx 学习例程及笔记
- ZedBoard的AXI DMA收发独立双线程linux应用
- Ubuntu和Zedboard都可实现的opencv人脸识别
- zedboard串口驱动
- zedboard OLED IP
- Zedboard ov7725板端Linux下tcp视频发送
- zedboard移植opencv+qt的人脸检测
- Linux下QT tcp接收Zedboard发送的RGB888视频
- zedboard的usb视频显示
- Zedboard官网开发板brd文件
- ZedBoard_RevC.1_Altium_CONFIDENTIAL.rar
- 基于ZedBoard的AXI DMA测试代码
- zedboard_RevC_v1
- zedboard 无桌面版linaro系统
评论
共有 条评论