- 博客(22)
- 资源 (23)
- 收藏
- 关注
转载 std::string用法总结
string类的构造函数:string(const char *s); //用c字符串s初始化string(int n,char c); //用n个字符c初始化string类的字符操作:const char &operator[](int n)const;const char &at(int n)const;char &operator[](int n);
2015-09-28 11:01:50
855
转载 c++ string总结
1.string的初始化原博客地址:http://blog.youkuaiyun.com/allovexuwenqiang/article/details/4277555string: string的若干初始化方法2008年12月12日 星期五 11:12c++字符串(string)若干初始化的方法:string test1; //空串string test2 = "内容
2015-09-16 16:10:36
798
原创 PCIe数据峰值带宽和有效带宽计算
最近对于PCIe的带宽概念和计算有些模糊,网上查资料大部分都是一个模子出来的,通过下面这个公式计算:并行总线带宽(MB/s) = 并行总线时钟频率(MHz) * 并行总线位宽(bit/8 = B) * 每时钟传输几组数据(cycle)特别是后面计算起来不是很容易懂,后来查资料请教后,得出如下理解【个人拙见,欢迎留言质疑】:首先需要理清一些概念:1、对于PCIe 而言总线频率
2015-08-05 15:40:26
22993
1
转载 运行程序出现的黑框立即消失解决方法
原文地址:http://blog.youkuaiyun.com/kobesdu/article/details/89447001.在程序最后加 system("PAUSE"); 要注意包含头文件#include"stdlib.h" //system需要调用这个2. 程序末尾加函数getchar();getchar()是等待用户输入字符的函数,如果
2015-07-27 17:23:38
9158
转载 OpenCV移植
主要借鉴了大牛rainysky的博客,地址为:http://www.eefocus.com/sj229335457/blog/13-06/295352_ad954.html1.cmake下载安装 我的Linux主机是Ubuntu发行版,直接用apt-get的方式进行cmake的下载安装。 sudo apt-get install cmake sudo cmake-curses
2015-07-20 16:49:04
474
原创 搭建Xilinx交叉编译环境
本人的Linux是 Ubuntu 12.04 LTS1.更新源 为方便使用,可以首先更新linux系统的源。更新源的方法有很多,在此不细说。 备份sources.list文件:cp /etc/apt/sources.list etc-backup/etc-apt-source.list 打开sources.list:sudo gedit /etc/apt/sourc
2015-07-20 16:00:56
6808
原创 VS2013+OpenCV2.4.9配置
首先是OpenCV软件的下载和安装,下载的话,官方网站可以下载得到,在此不必多说。软件安装与普通软件无异,记住自己的安装路径,后面要用到。这里假设安装路径为:D:\Program Files\opencv。 接下来是配置。OpenCV的配置分为两部:Windows系统的环境变量配置和VS的配置。一、Windows系统的环境变量配置 如下图所示,右键“计算机”
2015-07-20 10:53:54
5448
原创 【解决问题】Error (138079): Current license file does not support partial reconfiguration
在FPGA中使用Partial Reconfiguration特性来编译OpenCL源码时。出现 Error (138079): Current license file does not support partial reconfiguratio 错误原因及解决方案:The Altera OpenCL SDK license was generated without th
2014-12-16 15:45:39
4537
原创 【解决问题】Error (171016): Can't place node "" -- illegal location assignment
在quartus分配引脚以后编译出现如下问题:Error (171016): Can't place node "" -- illegal location assignment
2014-11-03 09:23:12
8969
1
原创 【实用方法】ModelSim中添加Altera仿真库
在modelsim仿真Quertus 生成的Altera IP时,往往需要用到其中的
2014-09-28 11:29:06
14335
1
原创 【设计分享】Vmware虚拟机下,linux驱动及应用层实例
1、新建驱动文件 driver.c#include #include #include MODULE_LICENSE("GPL");#define MAJOR_NUM 100#define EFALUT 1static ssize_t my_read(struct file * filp,char * buf, ssize_t size,loff_t * off);stat
2014-09-24 17:26:10
547
转载 【解决问题】加载驱动模块时Device or resource busy的解决方法
在编译好memdev驱动模块后,通过insmod加载模块时发现以下错误提示: #insmod memdev.koinsmod: error inserting 'memdev.ko': -1 Device or resource busy
2014-09-24 14:15:31
5771
转载 【实用方法】CentOS Linux 升级内核
To configure and build the kernel use: cd /usr/src/linux-3.N make O=/home/name/build/kernel menuconfig make O=/home/name/build/kernel sudo make O=/home/name/build/kernel modules_instal
2014-09-24 12:44:40
460
原创 【设计分享】linux硬件驱动实例及编译模块加载
#include /* printk() */#include /* __init __exit */static int __init hello_init(void) /*模块加载函数,通过insmod命令加载模块时,被自动执行*/{ printk(KERN_INFO " Hello World enter\n"); r
2014-09-17 14:31:28
826
原创 【基础学习】Avalon-ST接口协议
Avalon-ST接口是一种单向点对点的高速接口,主要针对的是高速数据流的传输,减少数据流处理中的瓶颈。
2014-09-10 12:01:44
11070
SystemC经典教程(课件代码完整版第二部分)-参考代码
2015-02-05
SystemC经典教程(课件代码完整版第一部分)-课件
2015-02-05
xilinx的fpga+pcie数据采集卡,包括linux及windows下的驱动以及测试程序.
2014-10-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人