提出一种用真双口RAM操作地址首末相连实现环形缓存,用滑动窗口对输入环形缓存的时序数据进行分段的数据处理系统。通过采用突发模式将实时数据写入环形缓存中,减少环形缓存写入时重复输入RAM操作地址产生的时序消耗,相比单字节模式速率提高49.9%。通过在环形缓存上预留1 MB缓存区域,使系统在写入环形缓存数据速率在12~20 Mb/s范围内不恒定情况下仍能正常工作,提高系统适用性。将其部署在FPGA上,验证结果表明,系统能够满足电子系统实时数据分段计算要求。
Abstract
In the paper,a data processing system is proposed that uses true dual-port RAM operation addresses to connect end-to-end to realize a ring buffer,and uses a sliding window to segment the time series data input to the ring buffer.By using burst mode to write real-time data into the ring cache,the timing consumption caused by repeated input of RAM operation addresses when the ring cache is written is reduced,and the rate is increased by 49.9% compared to the single-byte mode.By reserving a 1 MB buffer area on the ring buffer,the system can still work normally when the data rate of writing to the ring buffer is not constant within the range of 12~20 Mb/s,and the system applicability is improved.The verification of deployment on FPGA shows that the system meets the real-time data segmentation calculation requirements of the electronic system.
关键词
环形缓存 /
突发模式 /
滑动窗口 /
FPGA /
数据流抽取
Key words
ring buffer /
burst mode /
sliding window /
FPGA /
data stream extraction
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 李爱国,覃征.在线分割时间序列数据[J].软件学报,2004,15(11):9.
[2] 王亚军,李建文,吉方.基于环形缓冲区的实时系统负载平衡技术[J].计算机应用与软件,2005,2(4):3839.
[3] 杨泽林,李先发.基于双指针环形缓冲区的数据采集系统设计[J].仪表技术与传感器,2016(11):3.
[4] 姚章俊,陈蜀宇,卢尧.一种高性能环形缓冲区的研究与实现[J].计算机工程,2012,38(8):228231.
[5] 詹英,吴春明,王宝军.一种与缓冲区紧耦合的环形循环滑动窗口的数据流抽取算法[J].电子学报,2011,39(4):5.
[6] 韩明峰.环形缓冲区读写操作的分析与实现[J].单片机与嵌入式系统应用,2003,3(12):7475.
[7] 焦义文,王元钦,马宏,等.基于优先级调度的高速大容量FIFO缓存设计[J].装备指挥技术学院学报,2011,22(2):5.
[8] 田腾,石茂林,宋学官,等.基于滑动窗口的时间序列异常检测方法[J].仪表技术与传感器,2021(7):5.
[9] 栗磊,周云霞,张国强.一种基于可变滑动窗口的数据流分段聚类算法[J].科学技术与工程,2014(9):5.
[10] 庞征斌,徐金波,董亚卓,等.面向大尺寸滑动窗口应用的并行计算模型[J].国防科技大学学报,2011,33(2):5.
[11] 李鸿松,武锦,李泽宏,等.虚拟示波器硬件设计[J].电子与封装,2021,21(9):6.
[12] 李震.一种基于双口RAM的环形数据缓存系统[J].计算机技术与发展,2010(1):5.
[13] 薛雷,李长远,杜敏.基于环形存储结构的非分段式FFT算法[J].电子测量技术,2010(12):4.
[14] 罗阳锦,张升伟.基于FPGA的多通道高速数字谱仪的关键算法的设计与实现[J].电子学报,2020,48(5):8.
[15] 李军,孙君,余云河,等.基于滑动窗口的接入新方案[J].电子学报,2021,49(2):6.