ChinaUnix.net
相关文章推荐:

c语言实现fifo

摘要:采用一种新颖的异步fifo 设计方案,解决FPGA 多时钟系统中不同时钟域传输数据的问题。该fifo 实现方案比传统方式简单,工作速度频率高,如设计采用了Verilog HDL 硬件语言描述还具有良好的移植性。   采用FPGA 实现多时钟电路系统时,需要处理不同的钟域之间交换数据的问题,一般接口电路采用异步fifo ,因此在FPGA 中设计出高效、可靠的异步fifo 显得尤为重要。作者提出了读写地址增加一位比较的fifo 设计方案,既可以保证fifo...

by koiko - Linux文档专区 - 2009-08-20 19:31:21 阅读(1373) 回复(0)

相关讨论

本帖最后由 conke 于 2010-03-03 10:13 编辑 见uart_ioctl()函数

by conke - MaxWit & g-bios - 2010-02-25 06:16:21 阅读(1567) 回复(0)

/* fifo_cs.h */ #ifndef fifo_CS_H #define fifo_CS_H #include #include #include #include #include #include #include #define MAX 25 #define SERVER_fifo_NAME "Sfifo" #define CLIENT_fifo_NAME "C%d" struct linking { pid_t pid; char name[MAX]; }; #endif /* fifoc.h */ #include "fifo_cs.h" int main() { int serverfd,clientfd; pid_t clientpid; char client_name[30]; struct linking cli...

by coxly - Linux文档专区 - 2008-07-19 14:10:50 阅读(729) 回复(0)

讲讲原理,或指点一下相关的资料 THANKS

by FreeGnu - 内核/嵌入技术 - 2006-10-08 16:50:31 阅读(932) 回复(1)

讲讲原理,或指点一下相关的资料 THANKS

by FreeGnu - 内核源码 - 2006-10-08 16:50:31 阅读(1343) 回复(1)

在CSDN上两天了,没人指点,故转到本论坛上。 Problem Description: Write two separate programs for such a client-server model: the client reads a UNIX command from keyboard, writes it to the IPC channel, reads the command execution result and displays it on screen. The server reads the command from the IPC channel, executes it, and writes the execution result to the IPC channel. 我现在基本实现了客...

by linewer - Linux环境编程 - 2007-04-01 23:20:01 阅读(1912) 回复(3)

在linux下unix域协议是不是和fifo一样的内部实现??

by chunhui_true - Linux论坛 - 2004-09-02 11:18:47 阅读(450) 回复(0)

在linux下unix域协议是不是和fifo一样的内部实现??

by chunhui_true - Linux系统管理 - 2004-09-02 11:18:47 阅读(526) 回复(0)

把两个不同名字的fifo放在同一个进程中,作为两个线程时,设置为非阻塞,写端, 经常出现fifo open失败的情况。 这两个线程之间并不通过fifo通信,而且他们使用的也不是同一个fifo。 如果对一个fifo频繁操作,如关闭后马上又打开,程序也容易down掉!感觉很不稳定。 close(m_fileDes); int l_options = O_WRONLY | O_CREAT | O_TRUNC; m_fileDes=open(m_fileBasePath.c_str(), l_options, ...

by dutysmart - C/C++ - 2009-12-24 08:51:36 阅读(2404) 回复(8)

1. 特点 1) 有名,以fifo的文件形式存在于文件系统中; 2) 允许非亲缘进程通过fifo通信; 3) fifo严格遵循先进先出(first in first out); 4) 对管道及fifo的读总是从开始处返回数据,对它们的写则把数据添加到末尾; 5) 不支持诸如lseek()等文件定位操作。 2. 打开规则 1) 如果当前打开操作是为读而打开fifo时,若已经有相应进程为写而打开该fifo,则当前打开操作将成功返回;否则,可能阻塞直到有相应...

by hhwls_bin - Linux文档专区 - 2007-04-27 12:15:44 阅读(538) 回复(0)

Abstract Data Type for fifo Queues 模块名: queue 2> queue:new(). {[],[]} 3> A=queue:new(). {[],[]} 4> A. {[],[]} 5> queue:is_queue(A). true 6> queue:len(A). 0 7> queue:in("aaa",A). {["aaa"],[]} 8> queue:len(A). 0 9> queue:in("aaa",A). {["aaa"],[]} 10> Q2=queue:in("aaa",A). {["aaa"],[]} 11> queue:len(Q2). 1 12> queue:get(Q2). "aaa" 13> queue:get(Q2).

by shijiang1130 - Erlang - 2015-10-25 21:33:05 阅读(756) 回复(3)