毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc

上传人:仙人指路1688 文档编号:2392280 上传时间:2023-02-17 格式:DOC 页数:8 大小:204.50KB
返回 下载 相关 举报
毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc_第1页
第1页 / 共8页
毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc_第2页
第2页 / 共8页
毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc_第3页
第3页 / 共8页
毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc_第4页
第4页 / 共8页
毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc》由会员分享,可在线阅读,更多相关《毕业论文(设计)基于FPGA 的高速大容量FLASH 存储.doc(8页珍藏版)》请在三一办公上搜索。

1、基于FPGA的高速大容量FLASH存储作者:麻海霞 马铁华Design of a FLASH Storage System with High Speed and Large Capacity by means of FPGA Abstract:The research uses the RS-422 level transmission serial data in this text, System implementation of a storage board would make serial data transfers parallel data stored into FLA

2、SH of high speed and large capacity with FPGA is introduced, and field programmable gate array (FPGA) is the control core of the storage array. Not only carefully has analyzed the RS-422 level when the concrete use needs today attention question, but also new methods are applied to deal with externa

3、l high speed input data, By using of the storage board, high speed real time data can be successfully stored with high density lower speed FLASH chips. Keyword:RS-422, FPGA , high speed, large capacity, FLASH摘要:本文研究 RS-422电平传输串行数据,通过 FPGA把串行数据转化为并行数据存储到高速大容量的 FLASH的存储系统的具体设计,FPGA(现场可编程门阵列)为存储阵列的核心。不

4、仅分析了 RS-422电平在具体使用时需要注意的问题,而且针对外部高速数据的输入,在数据存储部分引入新的方法,能够更加快速的实现 FLASH存储器对高速实时数据的可靠存储。关键字:RS-422、FPGA、高速、大容量、FLASH 1、 引言数字电路应用越来越广泛,传统通用的数字集成芯片已经难以满足系统的功能要求,随着系统复杂程度的提高,所需通用集成电路的数量呈爆炸性增值,使得电路的体积膨大,可靠性难以保证 1。因而出现了现场可编程门阵列 (FPGA)和复杂可编程逻辑器件 (CPLD)。在我国 20世纪 90年代以前,测试系统采用磁带记录,效率和安全保障性不高;随之出现的是遥测技术,但在传输数据

5、的过程中会出现误差;接着是静态存储器,它读、写方便,但是存储的数据会因为断电而丢失,所以,不利于数据长时间保存;目前,闪存的问世,NOR和 NAND是现在市场上两种主要的非易失闪存技术,它有存储容量大、体积小、可靠性高等优点,测试系统会逐步向这个方向发展。2、 设计思想2.1核心芯片选择(1)接受芯片选择 MAX491此芯片为 RS-422/485扩展芯片,为 DIP14封装。MAX491有两个控制端,如果两个控制端由微处理器的一个 I/O口控制,则总线,两线制,半双工工作。如果两个控制端单独控制,则总线为 RS-422总线,四线制,全双工工作。 MAX491采用+5V电源供电,当供电电流仅有

6、 500uA时,传输速率却能达到 2.5Mbits/s。它的内部有一个传输线驱动器和一个传输线接收器,因此可以采用全双工工作。(2)FPGA采用Spartan-II系列Xc2s100 Spartan-II系列Xc2s100有着丰富的触发器和 LUT(Look-Up-Table),非常适合复杂时序逻辑的设计。FLASH采用SAMSUNG公司的 NANDFLASH芯片K9F8G08,接口宽度 8位。每个芯片含8192个数据块,一个块分为64页,每页大小为 (2K+64)Bytes,其中64Bytes为空闲区,存储容量为8Gbit。它以页为单位进行读写,以块为单位擦除、命令、数据、地址共用同一总线,

7、具有硬件数据保护功能。2.2 MAX491设计时需要注意的问题(1)RS-422传输线上匹配的一些说明:理论上,在每个接收数据信号的中点进行采样时,只要反射信号在开始采样时衰减到足够低就可以不考虑匹配。但这在实际上难以掌握,美国 MAXIM公司有篇文章提到一条经验性的原则可以用来判断在什么样的数据速率和电缆长度时需要进行匹配:当信号的转换时间(上升或下降时间)超过电信号沿总线单向传输所需时间的 3倍以上时就可以不加匹配。 一般终端匹配采用终接电阻方法,RS-422在总线电缆的远端并接电阻,终接电阻一般在 RS-422网络中取 100,这种匹配方法简单有效,但有一个缺点,匹配电阻要消耗较大功率,

8、对于功耗限制比较严格的系统不太适合; 另外一种比较省电的匹配方式是 RC匹配;还有一种采用二极管的匹配方法。(2)RS-422的接地问题 RS-422传输网络的接地是很重要的,因为接地系统不合理会影响整个网络的稳定性,尤其是在工作环境比较恶劣和传输距离较远的情况下,对于接地的要求更为严格。 RS-422尽管采用差分平衡传输方式,但对整个 RS-422网络,必须有一条低阻的信号地。一条低阻的信号地将两个接口的工作地连接起来,使共模干扰电压 VGPD被短路。这条信号地可以是额外的一条线(非屏蔽双绞线),或者是屏蔽双绞线的屏蔽层。这是最通常的接地方法。(3)RS-422的网络失效保护 RS-422标

9、准都规定了接收器门限为 200mV。这样规定能够提供比较高的噪声抑制能力,当接收器 A电平比B电平高+200mV以上时,输出为正逻辑,反之,则输出为负逻辑。但由于第三态的存在,即在主机在发端发完一个信息数据后,将总线置于第三态,这带来了一个问题:接收器输出状态不确定。如果接收机的输出为 0V,网络中从机将把其解释为一个新的启动位,并试图读取后续字节,由于永远不会有停止位,产生一个帧错误结果,不再有设备请求总线,网络陷于瘫痪状态。除上述所述的总线空闲会造成两线电压差低于 200mV的情况外,开路或短路时也会出现这种情况。故应采取一定的措施避免接收器处于不确定状态。(4)RS-422的瞬态保护由于

10、传输线对高频信号而言就是相当于电感,因此对于高频瞬态干扰,接地线实际等同于开路。这样的瞬态干扰虽然持续时间短暂,但可能会有成百上千伏的电压。实际应用环境下还是存在高频瞬态干扰的可能。一般在切换大功率感性负载如电机、变压器、继电器等或闪电过程中都会产生幅度很高的瞬态干扰,如果不加以适当防护就会损坏 RS-422通信接口,对于这种瞬态干扰可以采用隔离或旁路的方法加以防护。方法有隔离保护方法和旁路保护方法。 2.3 FPGA内部编程设计采用MAX491串行接收实时数据,并通过 Xc2s100串行数据转换为并行数据,并控制存储到FLASH中,在这个过程中,最关键的是对 Spartan-II系列Xc2s

11、100内部编程,内部模块包括异步串行通信模块和控制FLASH存储、读数和擦除模块2。 发送器每隔 16个 CLK16时钟周期输出 1位,次序遵循(1)异步串行通信模块3(如图2) UART 发送模块(如图 2中的 send) 1位起始位、 8位数据位(假定数据位为 8位)、1位校验位(可选)、 1位停止位; 何时通过 UART发送数据由 CPU控制,也就是说 CPU要接受数据必须判断当前是否可写,如果不判这个条件,接受的数据会出错。 数据的发送是由微处理器控制,微处理器给出信号,发送模块根据此信号将并行数据 din7.0通过移位寄存器转换为串行数据至串行数据输出端 Txd。 UART 接收模块

12、(如图2中的receive) 1变为逻辑 0可以视为一个数据帧的开始。串行数据帧和接收时钟是异步的,发送来的数据由逻辑 接收器先要捕捉起始位,确定 rxd输入由 1到0,逻辑 0需要8个CLK16时钟周期,才是正常的起始位,然后在每隔 16个CLK16时钟周期采样接收数据(也可以为其它数),将串行数据 din通过移位寄存器发送串行数据至并行数据输出端 dout7.0,放入存储器件。在数据发送过程中用输出信号 fifowr作为标志信号,当一帧数据发送完毕时,fifowr信号为0,通知CPU在下个时钟装入新数据。(2) FLASH存储、读数和擦除模块(如图 3) FLASH在写数据、读数据和擦除时

13、 4,编写控制FLASH的程序,要按照如下规则: 页编程:器件的编程以页为单位,但在一个页编程周期中允许对部分页(一个或连续的多个字节)编程。一个页编程周期由串行数据加载阶段和紧随的编程阶段组成。在数据加载阶段,数据被加载到数据寄存器中 ;在编程阶段,已加载的数据写入实际的存储单元,编程典型时间为200s。 页读:器件在上电时,就被初始化为读模式,此时可以不写 00h命令,直接写入地址和30h命令即可。有两种类型的读,分别是随机读和顺序页读。由于设计存储时是基于整个页操作,所以读命令使用顺序页读。命令打入后经过最多20s的时间,数据则会从选择的页传到数据寄存器中。 块擦除:器件的擦除操作是以块

14、为单位的。块地址加载由擦除建立命令 60h启动,然后输入确认命令D0h,执行内部擦除过程。这一先建立再执行的两步命令时序,确保了存储内容不会由外部的干扰而意外擦除,擦除时间典型值为1.5ms。3、系统调试电路通过模拟接受一组实时串行数据,经过 FPGA串行数据转换为并行数据,并且存储到 FLASH;再与主机通信读回存储在 FLASH中的数据 5。它已经可以稳定的工作在 180Mbytes/s的存储速度,满足了所需的机载实验要求。 USB芯片工作在从方式 (Slave FIFO模式),由FPGA控制芯片的读写,同步传输数据。实测中通过 USB回放数据的速度为 15Mbytes/s。4、结论本文设

15、计了基于 FPGA和FLASH存储测试系统,使 FPGA与FLASH各自的优点得到了有效的发挥:本文作者创新点: RS-422电平传输串行数据,通过 FPGA把串行数据转化为并行数据存储到高速大容量的 FLASH的存储系统的具体设计和实施,在保证系统工作性能的情况下简化了系统设计,并验证了系统设计方案的正确性和可行性,为进一步工程化实现打下了良好的基础,具有一定的工程应用价值。5、参考文献 1.李超,王虹现 ,邢孟道.高速大容量 FLASH存储系统设计 .火控雷达技术;2007.3:83-88 2.董健 ,蒋建伟等 .CPLD与单片机在超压存储测试系统中的应用 .测试技术学报 ; 2005.1

16、9-1:44-47 3.绉杰,杨建宁 .基于FPGA的UART控制器的设计和实现.微计算机信息;2005.8-2: 111-113 4.杨光辉.基于CPLD的Flash读取控制的设计与实现.微计算机信息 ;2005.12-2:127-129 5.李春光 ,赵月等 .嵌入式微处理器与 FLASH闪存的接口设计实现 .微计算机信息 ; 2006.7-2:154-157 Editors note: Judson Jones is a meteorologist, journalist and photographer. He has freelanced with CNN for four year

17、s, covering severe weather from tornadoes to typhoons. Follow him on Twitter: jnjonesjr (CNN) - I will always wonder what it was like to huddle around a shortwave radio and through the crackling static from space hear the faint beeps of the worlds first satellite - Sputnik. I also missed watching Ne

18、il Armstrong step foot on the moon and the first space shuttle take off for the stars. Those events were way before my time.As a kid, I was fascinated with what goes on in the sky, and when NASA pulled the plug on the shuttle program I was heartbroken. Yet the privatized space race has renewed my ch

19、ildhood dreams to reach for the stars.As a meteorologist, Ive still seen many important weather and space events, but right now, if you were sitting next to me, youd hear my foot tapping rapidly under my desk. Im anxious for the next one: a space capsule hanging from a crane in the New Mexico desert

20、.Its like the set for a George Lucas movie floating to the edge of space.You and I will have the chance to watch a man take a leap into an unimaginable free fall from the edge of space - live.The (lack of) air up there Watch man jump from 96,000 feet Tuesday, I sat at work glued to the live stream o

21、f the Red Bull Stratos Mission. I watched the balloons positioned at different altitudes in the sky to test the winds, knowing that if they would just line up in a vertical straight line we would be go for launch.I feel this mission was created for me because I am also a journalist and a photographe

22、r, but above all I live for taking a leap of faith - the feeling of pushing the envelope into uncharted territory.The guy who is going to do this, Felix Baumgartner, must have that same feeling, at a level I will never reach. However, it did not stop me from feeling his pain when a gust of swirling

23、wind kicked up and twisted the partially filled balloon that would take him to the upper end of our atmosphere. As soon as the 40-acre balloon, with skin no thicker than a dry cleaning bag, scraped the ground I knew it was over.How claustrophobia almost grounded supersonic skydiverWith each twist, y

24、ou could see the wrinkles of disappointment on the face of the current record holder and capcom (capsule communications), Col. Joe Kittinger. He hung his head low in mission control as he told Baumgartner the disappointing news: Mission aborted.The supersonic descent could happen as early as Sunday.

25、The weather plays an important role in this mission. Starting at the ground, conditions have to be very calm - winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) w

26、here our day-to-day weather lives. It will climb higher than the tip of Mount Everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising altitude of commercial airliners (5.6 miles/9.17 kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),

27、he can expect a lot of turbulence.The balloon will slowly drift to the edge of space at 120,000 feet (22.7 miles/36.53 kilometers). Here, Fearless Felix will unclip. He will roll back the door.Then, I would assume, he will slowly step out onto something resembling an Olympic diving platform.Below, t

28、he Earth becomes the concrete bottom of a swimming pool that he wants to land on, but not too hard. Still, hell be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end.Skydiver preps for the big jumpWhen he

29、 jumps, he is expected to reach the speed of sound - 690 mph (1,110 kph) - in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him completely.If he goes too fast or spins out of con

30、trol, he has a stabilization parachute that can be deployed to slow him down. His team hopes its not needed. Instead, he plans to deploy his 270-square-foot (25-square-meter) main chute at an altitude of around 5,000 feet (1,524 meters).In order to deploy this chute successfully, he will have to slo

31、w to 172 mph (277 kph). He will have a reserve parachute that will open automatically if he loses consciousness at mach speeds.Even if everything goes as planned, it wont. Baumgartner still will free fall at a speed that would cause you and me to pass out, and no parachute is guaranteed to work high

32、er than 25,000 feet (7,620 meters).It might not be the moon, but Kittinger free fell from 102,800 feet in 1960 - at the dawn of an infamous space race that captured the hearts of many. Baumgartner will attempt to break that record, a feat that boggles the mind. This is one of those monumental moments I will always remember, because there is no way Id miss this.

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号