CN108647278B - A file management method and system - Google Patents

A file management method and system Download PDF

Info

Publication number
CN108647278B
CN108647278B CN201810415462.8A CN201810415462A CN108647278B CN 108647278 B CN108647278 B CN 108647278B CN 201810415462 A CN201810415462 A CN 201810415462A CN 108647278 B CN108647278 B CN 108647278B
Authority
CN
China
Prior art keywords
file
storage unit
address
area
date information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810415462.8A
Other languages
Chinese (zh)
Other versions
CN108647278A (en
Inventor
焦新泉
赵冬青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
North University of China
Original Assignee
North University of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by North University of China filed Critical North University of China
Priority to CN201810415462.8A priority Critical patent/CN108647278B/en
Publication of CN108647278A publication Critical patent/CN108647278A/en
Application granted granted Critical
Publication of CN108647278B publication Critical patent/CN108647278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

本发明公开了一种文件管理方法及系统,该系统包括:上位机、FPGA、授时模块和数据存储模块,数据存储模块包括ROM存储单元和FLASH存储单元;ROM存储单元存储单元分为配置区和地址区,FLASH存储单元分为数据区和空闲区,配置区用于存储数据存储模块的配置信息,地址区用于存储用户文件的起始块地址、用户文件占用块数;数据区用于存储用户文件;空闲区用于存储日期信息;授时模块用于向所述FPGA提供日期信息。本发明通过获取文件日期信息,得到文件日期信息列表,在文件日期信息列表中读取用户文件存储的起始块地址,根据该日期信息对应的起始块地址和用户文件占用块数即可确定出所需用户文件的存储位置,从而实现上位机对用户数据的可视化选择性读取。

Figure 201810415462

The invention discloses a file management method and system. The system includes a host computer, an FPGA, a timing module and a data storage module. The data storage module includes a ROM storage unit and a FLASH storage unit; the ROM storage unit storage unit is divided into a configuration area and a data storage module. The address area, the FLASH storage unit is divided into a data area and a free area, the configuration area is used to store the configuration information of the data storage module, the address area is used to store the starting block address of the user file and the number of blocks occupied by the user file; the data area is used to store User file; free area is used to store date information; timing module is used to provide date information to the FPGA. The present invention obtains the file date information list by acquiring the file date information, reads the starting block address stored in the user file in the file date information list, and determines the starting block address corresponding to the date information and the number of blocks occupied by the user file. The storage location of the required user files can be obtained, so as to realize the visual selective reading of the user data by the host computer.

Figure 201810415462

Description

File management method and system
Technical Field
The present invention relates to the field of file management technologies, and in particular, to a file management method and system.
Background
With the rapid development of modern science and technology, the storage and reading of large-capacity data have been widely applied in many fields such as aerospace, survey, medical treatment and the like. In practical environments, people always want to better study the relation between data through a large amount of data, or find problems in time through comparison of data so as to avoid possible problems, and further provide direct experience in future design practice. Therefore, the research of mass storage has never been completed.
In scientific research and industrial production, more and more dynamic information needs to be processed, and more data needs to be researched, and accordingly, higher requirements are put on the storage capacity and storage speed of a memory, and the reading speed and reading mode of the memory. In this case, a document processing system having a direct relationship with the reading speed is of particular importance.
In the application field of data collection and storage, file systems are roughly divided into file management systems based on operating systems and file management systems without operating systems according to the resource environment of the systems. The file management system without the operating system is suitable for storage equipment with relatively simple functions and strong specificity. The file management has strong flexibility, and the functions of the file management can be modified correspondingly according to different application environments, so that the aim of realizing the optimal performance with the minimum cost is fulfilled.
Today, file management methods for memory are changing day by day. Generally speaking, however, most of the existing file management methods reserve a plurality of blocks in the NAND FLASH data area, and use these blocks to store index information of files, where the index information generally includes specific information of some user files, such as total number of files, size of files, update time of files, and first and last addresses of file storage, and timely updates these information. And finally, reading the index information list through the upper computer to realize visual reading of the user data. However, in the file management method, a certain amount of memory needs to be additionally provided to store the index information, and the file in the index area needs to be updated every time data is stored, so that the updating manner is complicated, the program design is complicated, and moreover, the operations of erasing, writing and the like are frequently performed on the block reserved for storing the file information, so that the loss of the block storage space of the part cannot be well balanced.
Disclosure of Invention
In view of the shortcomings of the prior art, an object of the present invention is to provide a simple and effective file management method capable of effectively managing large-capacity data.
A method of file management, the method comprising:
the method comprises the steps that an FPGA receives a writing date information request sent by an upper computer, obtains the initial block address of the storage from an address area of a ROM storage unit according to the writing date information request, obtains date information from a time service module, and writes the obtained date information into an idle area of a FLASH storage unit;
the FPGA receives a user file writing request sent by an upper computer, acquires the initial block address of the storage from the address area of the ROM storage unit according to the user file writing request, and writes user files into the data area of the FLASH storage unit in sequence according to the acquired initial block address;
the FPGA receives a file reading date information request sent by an upper computer, and reads file date information from an idle area of a FLASH storage unit according to the file reading date information request;
the upper computer analyzes and arranges the read file date information to obtain a file date information list;
and the upper computer finds the date information and the initial block address of the required user file from the file information list and reads the user file from the data area of the FLASH storage unit according to the date information and the initial block address of the found user file.
As a further improvement of the invention, before receiving a file writing date information request sent by an upper computer for the first time, the FPGA writes the first address information of the FLASH memory cell into the address area of the ROM memory cell;
after writing the user file into the data area of the FLASH storage unit in sequence at the Nth time (N is an integer greater than or equal to 1), the FPGA updates the address of the address area of the ROM storage unit to the initial block address of the (N + 1) th time data storage.
As a further improvement of the present invention, the method further comprises: and writing the configuration information of the ROM storage unit and the FLASH storage unit into a configuration area of the ROM storage unit.
As a further improvement of the invention, the configuration information at least comprises the capacities of the ROM storage unit and the FLASH storage unit, the capacity of the configuration area, the initial address of the configuration area, the capacity of the address area, the initial address of the address area, the capacity of the data area, the initial address of the data area, the number of bytes of a complete frame structure, a frame structure table and a sampling control rate.
As a further improvement of the present invention, writing the user file data into the data area of the FLASH memory unit in sequence according to the obtained starting block address specifically includes:
when writing a block, judging whether the storage space of the next block is empty, if so, erasing the data of the next block, and writing the user file into the data area of the FLASH storage unit in sequence, otherwise, directly writing the user file data into the data area of the FLASH storage unit in sequence.
As a further improvement of the invention, when a recording stopping command or sudden power failure sent by an upper computer is received, the power supply module provides electric energy to completely write the user files cached in the data area of the FLASH storage unit and update the address information in the address area of the ROM storage unit, wherein the address information comprises the initial block address and the number of blocks occupied by the user files.
As a further improvement of the present invention, the reading the user file from the data area of the FLASH memory unit according to the date information and the start block address of the found user file specifically includes: when a block is read, judging whether the block is the last block, if so, stopping reading after the block is read; otherwise, after reading the block, continuing to read the next block.
It is a second object of the present invention to provide a file management system which is simple and effective and can efficiently manage large-capacity data.
A file management system, the system comprising: the method comprises the following steps: the system comprises an upper computer, an FPGA, a time service module and a data storage module, wherein the data storage module comprises a ROM storage unit and a FLASH storage unit;
the storage unit of the ROM is divided into a configuration area and an address area, the FLASH storage unit is divided into a data area and an idle area, the configuration area is used for storing configuration information of the data storage module, and the address area is used for storing a starting block address of a user file and the number of blocks occupied by the user file; the data area is used for storing user files; the free area is used for storing date information;
the upper computer is used for sending a date writing information request to the FPGA;
the FPGA is used for receiving the writing date information request, acquiring the initial block address of the current storage from the address area according to the writing date information request, acquiring date information from the time service module, and writing the acquired date information into the corresponding page of the idle area;
the time service module is used for providing date information;
the upper computer is also used for sending a user file writing request to the FPGA;
the FPGA is also used for receiving a user file writing request, acquiring the initial block address of the storage from the address area according to the user file writing request, and writing user files into the data area in sequence according to the acquired initial block address;
the upper computer is also used for sending a file reading date information request to the FPGA;
the FPGA is also used for receiving the file reading date information request and reading date information from the idle area according to the file reading date information request;
the upper computer is also used for analyzing and sorting the read date information to obtain a file date information list;
the upper computer is also used for finding the date information and the starting block address of the required user file from the file date information list and reading the user file from the data area according to the date information and the starting block address of the found user file.
As a further improvement of the present invention, the FPGA is further configured to:
before a file writing date information request sent by an upper computer is received for the first time, writing the first address information of the FLASH storage unit into an address area of the ROM storage unit;
after writing the user file into the data area of the FLASH memory unit in sequence the Nth time (N is an integer greater than or equal to 1), the address of the address area of the ROM memory unit is updated to the initial block address of the data storage of the (N + 1) th time.
As a further improvement of the present invention, the system further comprises: and the power supply module is used for providing electric energy to write the user files cached in the data area of the FLASH storage unit and update the address information in the address area of the ROM storage unit when a recording stopping command or sudden power failure sent by the upper computer is received.
The invention has the beneficial effects that:
the invention stores user files by using a FLASH data area, stores file date information by using a FLASH idle area, stores configuration information by using a ROM configuration area, stores the initial block address of the user files by using a ROM address area, obtains a user file information list by obtaining the file date information of the idle area, reads the initial block address stored by the user files in the file information list, and can determine the storage position of the required user files according to the initial address corresponding to the date information, thereby realizing the visual selective reading of the user data by an upper computer.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical means of the present invention more clearly understood, the present invention may be implemented in accordance with the content of the description, and in order to make the above and other objects, features, and advantages of the present invention more clearly understood, the following preferred embodiments are described in detail with reference to the accompanying drawings.
Drawings
FIG. 1 is a schematic diagram of a file management method in an embodiment of the invention;
fig. 2 is a schematic structural diagram of a FLASH memory unit in the embodiment of the present invention.
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
As shown in fig. 1, in the embodiment of the present invention, the method includes the following steps:
step S110, the FPGA receives a writing date information request sent by an upper computer, acquires the initial block address of the current storage from the address area of the ROM storage unit according to the writing date information request, acquires date information from the time service module, and writes the acquired date information into the idle area of the FLASH storage unit;
wherein the date information is stored in each page of each block corresponding to the user data. Writing the obtained date address into the idle area as the idle area corresponding to the obtained initial block address; the time service module is a GPS time service module, the format of the date information is year, month, day, hour, minute and second milliseconds, 11 bits are occupied every year, 4 bits are occupied every month, 5 bits are occupied every day, 5 bits are occupied every hour, 6 bits are occupied every minute, 6 bits are occupied every second, 6 bits are occupied every millisecond, and 43 bits are occupied every page of the free area, namely, six bytes are occupied at most.
Preferably, before the step S110 is executed for the first time, the method further includes the following steps:
writing the configuration information of the ROM storage unit and the FLASH storage unit into a configuration area of the ROM storage unit;
specifically, the configuration information includes capacities of the ROM storage unit and the FLASH storage unit, a configuration area capacity, a configuration area start address, an address area capacity, an address area start address, a data area capacity, a data area start address, a number of bytes of a complete frame structure, a frame structure table, and the like.
Preferably, before the step S110 is executed for the first time, the method further includes the following steps:
and the FPGA writes the first address information of the FLASH storage unit into the address area of the ROM storage unit.
The acquired file information list contains the start block address of the user file storage, and the free area does not store the start address of the user file, so that the first address information of the data storage is required to be written back to the file list at the beginning.
Step S120, the FPGA receives a user file writing request sent by an upper computer, obtains the initial block address of the storage from the address area of the ROM storage unit according to the user file writing request, and writes user files into the data area of the FLASH storage unit according to the obtained initial block address in sequence;
preferably, after each user file writing, if the block storage space is not fully written, the next data storage after power failure is directly written from the next block.
After the user files are sequentially written into the data area of the FLASH storage unit for the Nth time (N is an integer which is more than or equal to 1), the address of the address area of the ROM storage unit is updated to the initial block address of the data storage for the (N + 1) th time by the FPGA.
The writing of the user file data into the data area of the FLASH memory unit in sequence according to the obtained starting block address specifically includes: when writing a block, judging whether the storage space of the next block is empty, if so, erasing the data of the next block, and writing the user file into the data area of the FLASH storage unit in sequence, otherwise, directly writing the user file data into the data area of the FLASH storage unit in sequence.
Step S130, the FPGA receives a file reading date information request sent by an upper computer, and reads file date information from an idle area of a FLASH storage unit according to the file reading date information request;
step S140, the upper computer analyzes and arranges the read file date information to obtain a file date information list;
the file date information list is composed of the starting time and the ending time of writing the user file, the first address of storing the data and the like.
And step S150, the upper computer finds the date information and the initial block address of the required user file from the file information list, and reads the user file from the data area of the FLASH storage unit according to the date information and the initial block address of the found user file.
Reading the user file from the data area of the FLASH storage unit according to the date information and the starting block address of the found user file, which specifically comprises the following steps: when a block is read, judging whether the block is the last block, if so, stopping reading after the block is read; otherwise, after reading the block, continuing to read the next block.
Preferably, the method further comprises the steps of:
when a recording stopping command or sudden power failure sent by the upper computer is received, the power supply module provides electric energy to completely write the user files cached in the data area of the FLASH storage unit and update the address information in the address area of the ROM storage unit. The address information includes a start block address.
Preferably, the FLASH memory unit is NAND FLASH mass storage.
The present invention also includes a file management system, comprising: the device comprises an upper computer, an FPGA, a time service module and a data storage module, wherein the data storage module comprises a ROM storage unit and a FLASH storage unit.
The ROM storage unit is divided into a configuration area and an address area, the configuration area is used for storing configuration information of the data storage module, and the address area is used for storing a starting block address of a user file and the number of blocks occupied by the user file;
as shown in fig. 2, the FLASH memory unit includes a plurality of blocks, each block includes a plurality of pages, each page includes a data area for storing user files and a free area for storing date information.
The upper computer is used for sending a date writing information request to the FPGA; the time service module is used for providing date information;
the FPGA is used for receiving the writing date information request, acquiring the initial block address of the current storage from the address area according to the writing date information request, acquiring date information from the time service module, and writing the acquired date information into the corresponding page of the idle area;
wherein the date information is stored in each page of each block corresponding to the user data. Writing the obtained date address into the idle area as the idle area corresponding to the obtained initial block address; the time service module is a GPS time service module, the format of the date information is year, month, day, hour, minute and second milliseconds, 11 bits are occupied every year, 4 bits are occupied every month, 5 bits are occupied every day, 5 bits are occupied every hour, 6 bits are occupied every minute, 6 bits are occupied every second, 6 bits are occupied every millisecond, and 43 bits are occupied every page of the free area, namely, six bytes are occupied at most.
The upper computer is also used for sending a user file writing request to the FPGA;
the FPGA is also used for receiving a user file writing request, acquiring the initial block address of the storage from the address area according to the user file writing request, and writing the user files into the data area according to the acquired initial block address in sequence;
the writing of the user file data into the data area in sequence according to the obtained starting block address specifically includes: when writing a block, judging whether the storage space of the next block is empty, if so, erasing the data of the next block, and writing the user file into the data area of the FLASH storage unit in sequence, otherwise, directly writing the user file data into the data area of the FLASH storage unit in sequence.
Preferably, after each user file writing, if the block storage space is not fully written, the next data storage after power failure is directly written from the next block.
The upper computer is also used for sending a file reading date information request to the FPGA;
the FPGA is also used for receiving the file reading date information request and reading date information from the idle area according to the file reading date information request;
the upper computer is also used for analyzing and sorting the read date information to obtain a file date information list;
the file date information list is composed of the starting time and the ending time of writing the user file, the first address of storing the data and the like.
The upper computer is also used for finding the date information and the starting block address of the required user file from the file date information list and reading the user file from the data area according to the date information and the starting block address of the found user file.
Reading the user file from the data area of the FLASH storage unit according to the date information and the starting block address of the found user file, which specifically comprises the following steps: when a block is read, judging whether the block is the last block, if so, stopping reading after the block is read; otherwise, after reading the block, continuing to read the next block.
Preferably, the FPGA is further configured to:
before a write date information request sent by an upper computer is received for the first time, the first address information of the FLASH storage unit is written into an address area of the ROM storage unit.
The acquired file information list contains the start block address of the user file storage, and the free area does not store the start address of the user file, so that the first address information of the data storage is required to be written back to the file list at the beginning.
After writing the user file into the data area of the FLASH storage unit in sequence at the Nth time (N is an integer greater than or equal to 1), the FPGA updates the address of the address area of the ROM storage unit to the initial block address of the (N + 1) th time data storage.
Preferably, the system further comprises a power module, wherein the power module is used for providing electric energy to complete writing of the user file cached in the data area of the FLASH memory unit and update the address information in the address area of the ROM memory unit when a recording stopping command or sudden power failure sent by the upper computer is received.
Preferably, the FLASH memory unit is NAND FLASH mass storage.
The invention has the beneficial effects that:
the invention stores user files by using a FLASH data area, stores file date information by using a FLASH idle area, stores configuration information by using a ROM configuration area, stores the initial block address of the user files by using a ROM address area, obtains a user file information list by obtaining the file date information of the idle area, reads the initial block address stored by the user files in the file information list, and can determine the storage position of the required user files according to the initial address corresponding to the date information and the number of blocks occupied by the user files, thereby realizing the visual selective reading of the user data by an upper computer.
The above embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (8)

1.一种文件管理方法,其特征在于,包括:1. a file management method, is characterized in that, comprises: FPGA接收上位机发送的写日期信息请求,根据所述写日期信息请求从ROM存储单元的地址区获取本次存储的起始块地址,从授时模块获取日期信息,并将获取的日期信息写入FLASH存储单元的空闲区;The FPGA receives the write date information request sent by the host computer, obtains the starting block address of the current storage from the address area of the ROM storage unit according to the write date information request, obtains the date information from the timing module, and writes the obtained date information into Free area of FLASH storage unit; 所述FPGA接收上位机发送的写用户文件请求,根据所述写用户文件请求从所述ROM存储单元的地址区获取本次存储的起始块地址,并根据获取的起始块地址将用户文件按顺序写入FLASH存储单元的数据区;The FPGA receives the user file write request sent by the host computer, obtains the starting block address stored this time from the address area of the ROM storage unit according to the user file writing request, and writes the user file according to the obtained starting block address. Write the data area of the FLASH storage unit in sequence; 所述FPGA接收上位机发送的读文件日期信息请求,根据所述读文件日期信息请求从FLASH存储单元的空闲区读取文件日期信息;The FPGA receives the read file date information request sent by the host computer, and reads the file date information from the free area of the FLASH storage unit according to the read file date information request; 所述上位机对读取的文件日期信息进行分析整理,得到文件日期信息列表;The host computer analyzes and arranges the read file date information to obtain a file date information list; 所述上位机从所述文件日期信息列表中找到所需用户文件的日期信息和起始块地址,并根据找到的用户文件的日期信息和起始块地址从所述FLASH存储单元的数据区读取用户文件;Described host computer finds the date information and starting block address of required user file from described file date information list, and reads from the data area of described FLASH storage unit according to the date information of found user file and starting block address Get user files; 还包括:在首次接收上位机发送的写文件日期信息请求之前,FPGA将FLASH存储单元的首地址信息写入ROM存储单元的地址区;Also include: before receiving the write file date information request sent by the host computer for the first time, the FPGA writes the first address information of the FLASH storage unit into the address area of the ROM storage unit; 在第N次将用户文件按顺序写入FLASH存储单元的数据区之后,N为大于等于1的整数,FPGA将ROM存储单元的地址区的地址更新为第N+1次数据存储的起始块地址。After writing the user files into the data area of the FLASH storage unit in sequence for the Nth time, N is an integer greater than or equal to 1, and the FPGA updates the address of the address area of the ROM storage unit to the starting block of the N+1th data storage. address. 2.如权利要求1所述的文件管理方法,其特征在于,还包括:将ROM存储单元和FLASH存储单元的配置信息写入ROM存储单元的配置区。2. The file management method according to claim 1, further comprising: writing the configuration information of the ROM storage unit and the FLASH storage unit into the configuration area of the ROM storage unit. 3.如权利要求2所述的文件管理方法,其特征在于,所述配置信息至少包括ROM存储单元和FLASH存储单元的容量、配置区容量、配置区起始地址、地址区容量、地址区起始地址、数据区容量、数据区起始地址、一个完整帧结构字节数、帧结构表、采样控制速率。3. file management method as claimed in claim 2 is characterized in that, described configuration information comprises the capacity of ROM storage unit and FLASH storage unit at least, configuration area capacity, configuration area start address, address area capacity, address area start address. Start address, data area capacity, data area start address, number of bytes of a complete frame structure, frame structure table, sampling control rate. 4.如权利要求1所述的文件管理方法,其特征在于,所述并根据获取的起始块地址将用户文件数据按顺序写入FLASH存储单元的数据区,具体包括:4. file management method as claimed in claim 1, is characterized in that, described and according to the starting block address of acquisition the data area of user file data is written in FLASH storage unit in sequence, specifically comprises: 当写一个块时,判断下个块的存储空间是否为空,若是,则直接将用户文件数据按顺序写入FLASH存储单元的数据区,否则,擦除下个块的数据后,将用户文件按顺序写入FLASH存储单元的数据区。When writing a block, judge whether the storage space of the next block is empty, if so, directly write the user file data into the data area of the FLASH storage unit in sequence, otherwise, after erasing the data of the next block, the user file Write to the data area of the FLASH storage unit in sequence. 5.如权利要求1所述的文件管理方法,其特征在于,还包括:当收到上位机发送的停止记录命令或突然掉电时,电源模块提供电能将FLASH存储单元的数据区中缓存的用户文件写完并更新ROM存储单元的地址区中的地址信息,所述地址信息包括起始块地址、用户文件占用块数。5. file management method as claimed in claim 1, is characterized in that, also comprises: when receiving the stop recording order that host computer sends or when power is cut off suddenly, power module provides electric energy to cache the data in the data area of FLASH storage unit. After the user file is written, the address information in the address area of the ROM storage unit is updated, and the address information includes the starting block address and the number of blocks occupied by the user file. 6.如权利要求1所述的文件管理方法,其特征在于,所述并根据找到的用户文件的日期信息和起始块地址从所述FLASH存储单元的数据区读取用户文件,具体包括:当读一个块时,判断其是否为最后一块,若是,则在读完该块后停止读取;否则,在读完该块后,继续读取下一块。6. file management method as claimed in claim 1, is characterized in that, described and read user file from the data area of described FLASH storage unit according to the date information and the starting block address of the user file that finds, specifically comprises: When reading a block, judge whether it is the last block, if so, stop reading after reading the block; otherwise, continue reading the next block after reading the block. 7.一种文件管理系统,其特征在于,包括:上位机、FPGA、授时模块和数据存储模块,所述数据存储模块包括ROM存储单元和FLASH存储单元;7. a file management system, is characterized in that, comprises: host computer, FPGA, timing module and data storage module, and described data storage module comprises ROM storage unit and FLASH storage unit; 所述ROM存储单元存储单元分为配置区和地址区,所述FLASH存储单元分为数据区和空闲区,所述配置区用于存储所述数据存储模块的配置信息,所述地址区用于存储用户文件的起始块地址、用户文件占用块数;所述数据区用于存储用户文件;所述空闲区用于存储日期信息;Described ROM storage unit storage unit is divided into configuration area and address area, described FLASH storage unit is divided into data area and idle area, and described configuration area is used for storing the configuration information of described data storage module, and described address area is used for Store the starting block address of the user file and the number of blocks occupied by the user file; the data area is used to store the user file; the free area is used to store date information; 所述上位机用于向所述FPGA发送写日期信息请求;The host computer is used to send a write date information request to the FPGA; 所述FPGA用于接收所述写日期信息请求,根据所述写日期信息请求从所述地址区获取本次存储的起始块地址,从授时模块获取日期信息,并将获取的日期信息写入所述空闲区的对应页中;The FPGA is used to receive the write date information request, obtain the starting block address stored this time from the address area according to the write date information request, obtain the date information from the timing module, and write the obtained date information into in the corresponding page of the free area; 所述授时模块用于向所述FPGA提供日期信息;The timing module is used to provide date information to the FPGA; 所述上位机还用于向所述FPGA发送写用户文件请求;The host computer is also used to send a write user file request to the FPGA; 所述FPGA还用于接收写用户文件请求,根据所述写用户文件请求从所述地址区获取本次存储的起始块地址,并根据获取的起始块地址将用户文件按顺序写入所述数据区;The FPGA is further configured to receive a user file write request, obtain the starting block address stored this time from the address area according to the user file writing request, and sequentially write the user file to all addresses according to the obtained starting block address. the data area; 所述上位机还用于向所述FPGA发送读文件日期信息请求;The host computer is also used to send a file reading date information request to the FPGA; 所述FPGA还用于接收所述读文件日期信息请求,根据所述读文件日期信息请求从所述空闲区读取日期信息;The FPGA is further configured to receive the read file date information request, and read the date information from the free area according to the read file date information request; 所述上位机还用于对读取的日期信息进行分析整理,得到文件日期信息列表;The host computer is also used to analyze and sort out the read date information to obtain a file date information list; 所述上位机还用于从所述文件日期信息列表找到所需用户文件的日期信息和起始块地址,根据找到的用户文件的日期信息和起始块地址从所述数据区读取用户文件;The host computer is also used to find the date information and the starting block address of the required user file from the file date information list, and read the user file from the data area according to the date information and the starting block address of the found user file. ; 所述FPGA还用于:The FPGA is also used to: 在首次接收上位机发送的写文件日期信息请求之前,将FLASH存储单元的首地址信息写入ROM存储单元的地址区;Before receiving the write file date information request sent by the host computer for the first time, the first address information of the FLASH storage unit is written into the address area of the ROM storage unit; 在第N次将用户文件按顺序写入FLASH存储单元的数据区之后,N为大于等于1的整数,将ROM存储单元的地址区的地址更新为第N+1次数据存储的起始块地址。After the user files are sequentially written into the data area of the FLASH storage unit for the Nth time, N is an integer greater than or equal to 1, and the address of the address area of the ROM storage unit is updated to the starting block address of the N+1th data storage. . 8.如权利要求7所述的文件管理系统,其特征在于,还包括:电源模块,用于当收到上位机发送的停止记录命令或突然掉电时,提供电能将FLASH存储单元的数据区中缓存的用户文件写完并更新ROM存储单元的地址区中的地址信息。8. file management system as claimed in claim 7, is characterized in that, also comprises: power supply module, is used for when receiving the stop recording order that host computer sends or when suddenly power off, provides electric energy to the data area of FLASH storage unit The user file cached in the ROM is written and the address information in the address area of the ROM storage unit is updated.
CN201810415462.8A 2018-05-03 2018-05-03 A file management method and system Active CN108647278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810415462.8A CN108647278B (en) 2018-05-03 2018-05-03 A file management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810415462.8A CN108647278B (en) 2018-05-03 2018-05-03 A file management method and system

Publications (2)

Publication Number Publication Date
CN108647278A CN108647278A (en) 2018-10-12
CN108647278B true CN108647278B (en) 2021-07-02

Family

ID=63748756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810415462.8A Active CN108647278B (en) 2018-05-03 2018-05-03 A file management method and system

Country Status (1)

Country Link
CN (1) CN108647278B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061683B (en) * 2019-12-30 2023-03-21 成都定为电子技术有限公司 Method and device for storing and operating data stream at high speed
CN111159114A (en) * 2019-12-30 2020-05-15 中国科学院寒区旱区环境与工程研究所 File storage method and device and server
CN113342272B (en) * 2021-06-07 2023-02-10 深圳数联天下智能科技有限公司 Sitting posture data storage method, sitting posture data display method, intelligent cushion and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632765A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 A kind of flash memory file system management method
WO2008026466A1 (en) * 2006-08-31 2008-03-06 Sharp Kabushiki Kaisha File system
CN101644996A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Storage method of index data and storage control device
CN107239526A (en) * 2017-05-27 2017-10-10 河南思维轨道交通技术研究院有限公司 File system implementation method, scrap cleaning method, operating position localization method
CN107391030A (en) * 2017-06-26 2017-11-24 广州日滨科技发展有限公司 Date storage method, device, computer-readable recording medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632765A (en) * 2004-12-31 2005-06-29 大唐微电子技术有限公司 A kind of flash memory file system management method
WO2008026466A1 (en) * 2006-08-31 2008-03-06 Sharp Kabushiki Kaisha File system
CN101644996A (en) * 2009-09-25 2010-02-10 杭州华三通信技术有限公司 Storage method of index data and storage control device
CN107239526A (en) * 2017-05-27 2017-10-10 河南思维轨道交通技术研究院有限公司 File system implementation method, scrap cleaning method, operating position localization method
CN107391030A (en) * 2017-06-26 2017-11-24 广州日滨科技发展有限公司 Date storage method, device, computer-readable recording medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于FPGA的高速大容量FLASH存储;麻海霞 等;《微计算机信息》;20080915;144,145,151 *

Also Published As

Publication number Publication date
CN108647278A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN103294710B (en) A kind of data access method and device
US20180357234A1 (en) Memory efficient persistent key-value store for non-volatile memories
US20080195833A1 (en) Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit
US9262313B2 (en) Provisioning in heterogenic volume of multiple tiers
CN108664577B (en) A file management method and system based on FLASH free area
US9116904B2 (en) File system operation on multi-tiered volume
CN107220348B (en) Data collection method based on Flume and Alluxio
US20140279966A1 (en) Volume having tiers of different storage traits
CN108647278B (en) A file management method and system
US8914571B2 (en) Scheduler for memory
CN111796759B (en) Computer-readable storage medium and method for reading fragment data on multiple planes
CN106681660B (en) IO scheduling method and IO scheduling device
CN109189724B (en) Method and device for improving audio and video data storage efficiency of video monitoring system
US10073851B2 (en) Fast new file creation cache
CN107430546B (en) File updating method and storage device
CN108829345B (en) Data processing method of log file and terminal equipment
CN112596949B (en) High-efficiency SSD (solid State disk) deleted data recovery method and system
EP2381354A2 (en) Data recording device
US8918621B1 (en) Block address isolation for file systems
US9858204B2 (en) Cache device, cache system, and cache method
CN108664578B (en) File circulating storage method and system
CN102270179B (en) For the data Storage and Processing method based on sheet unit and the system thereof of CAD system
CN115934002B (en) Solid state disk access method, solid state disk, storage system and cloud server
CN108958657B (en) A data storage method, storage device and storage system
CN110764695A (en) Storage method and system based on high-speed acquisition

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant