The invention provides an operation method, device and system for accessing NAND Flash. In this method, the operation atom of the software application layer is defined as an instruction sequence in advance, the instruction template is predefined according to the sequence of instructions, and the instruction sequence template is constructed according to the instruction template. The instruction decoding module receives the instruction sequence and parse the instruction sequence, and invokes the instruction sequence template of the current NAND operation. The template parsing and reconfiguration of the invoked sequence of instructions is used to implement the hardware automatically to parse and send the sequence of instructions, then reduce the frequency of the software instruction, and improve the speed of accessing the NAND Flash memory. Because of the definition of the instruction template, it can reduce the repetition of repeated type instructions of the software, and send instructions under the hardware automatic parsing template. This not only reduces the management of the operation instruction set of the software, but also improves the access speed of the NAND, and improves the performance of the NAND Flash operation. One
【技术实现步骤摘要】
一种NANDFlash访问操作方法、装置及系统
本专利技术涉及访问操作
,尤其涉及一种NANDFlash访问操作方法、装置及系统。
技术介绍
NANDFlash存储器为Flash存储器中的一种非易失性存储器,其在断电时仍旧能够保存所存储的信息。NANDFlash存储器具有存储密度高、改写速度远高于硬盘等的优点,适用于大量数据的存储,在业界得到了越来越广泛的应用。NANDFlash存储器在使用时,需要特殊的系统接口以及复杂的Flash管理,因而应用NANDFlash存储器较为困难。为便于NANDFlash存储器的管理和操作,通常需要一个硬件控制器--NANDFlash控制器(英文名称:NANDFlashController)作为系统接口,以便于将系统对NANDFlash存储器的操作转译为NANDFlash存储器的接口定义,进而firmware(中文名称:固件)用户通过NANDFlash控制器能够实现对NANDFlash存储器的灵活管理。NANDFlash存储器的生产厂家众多,因而接口类型定义复杂,由此存在多样化的接口时序要求。若每一接口都需要在软件应用层定义,则提升了系统处理的复杂度。如附图1所示的NANDFlash典型的pageread操作结构图。由附图1可知,pageread操作包括命令、地址锁存,从NAND存储阵列读出数据到其数据寄存器,以及数据寄存器输出等,这一系列的操作都分别对应着特定的NAND接口时序,这导致系统处理的复杂度。为简化复杂度,软件应用层通常定义要执行的NANDFlash操作类型,而复杂的接口协议实现则由物理层硬件完成。即根据N ...
【技术保护点】
1.一种NAND Flash访问操作方法,其特征在于,包括:
【技术特征摘要】
1.一种NANDFlash访问操作方法,其特征在于,包括:预定义多个由指令模板构建的指令序列模板,所述指令模板包括指令类型和固化指令参数;接收应用层软件下发的指令序列,并对所述指令序列解析,以从所述指令序列模板中调用与所述指令序列相对应的指令序列模板;对调用的所述指令序列模板解析和重构,生成子指令;将所述子指令发送到NAND接口。2.根据权利要求1所示的NANDFlash访问操作方法,其特征在于,接收应用层软件下发的指令序列前,将所述指令序列模板初始化于芯片内嵌内存中。3.根据权利要求1所示的NANDFlash访问操作方法,其特征在于,对所述指令序列解析,以从所述指令序列模板中调用与所述指令序列相对应的指令序列模板包括:对接收的所述指令序列解析,得到所述指令序列中的指令序列模板起始地址;根据所述指令序列模板起始地址从预定义的所述指令序列模板中调用与所述指令序列模板起始地址相同的指令序列模板。4.根据权利要求1所示的NANDFlash访问操作方法,其特征在于,对调用的所述指令序列模板解析和重构包括:对调用的所述指令序列模板中的所述指令模板逐一解析,并逐一构建为操作NAND的子命令。5.根据权利要求1所示的NANDFlash访问操作方法,其特征在于,预定义多个包含指令模板的指令序列模板包括:根...
【专利技术属性】
技术研发人员:汪再金,彭鹏,姜黎,
申请(专利权)人:湖南国科微电子股份有限公司,
类型:发明
国别省市:湖南,43
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。