CN107315699A - A kind of TF cards - Google Patents

A kind of TF cards Download PDF

Info

Publication number
CN107315699A
CN107315699A CN201710437665.2A CN201710437665A CN107315699A CN 107315699 A CN107315699 A CN 107315699A CN 201710437665 A CN201710437665 A CN 201710437665A CN 107315699 A CN107315699 A CN 107315699A
Authority
CN
China
Prior art keywords
function
cards
command
order
list item
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.)
Granted
Application number
CN201710437665.2A
Other languages
Chinese (zh)
Other versions
CN107315699B (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.)
Ramaxel Technology Shenzhen Co Ltd
Original Assignee
Ramaxel Technology Shenzhen Co Ltd
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 Ramaxel Technology Shenzhen Co Ltd filed Critical Ramaxel Technology Shenzhen Co Ltd
Priority to CN201710437665.2A priority Critical patent/CN107315699B/en
Publication of CN107315699A publication Critical patent/CN107315699A/en
Application granted granted Critical
Publication of CN107315699B publication Critical patent/CN107315699B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7201Logical to physical mapping or translation of blocks or pages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of TF cards, it is characterised in that divides at least partially that location space is as expanding function order in the logical address space of TF cards, and expanding function order accesses TF cards according to the form of normal read write command;Increase remaps module in TF cards, for analyzing whether normal read write command is expanded function order, if it is according to expanding function command triggers TF card operation commands set in advance;If otherwise accessing TF card data spaces according to order request.In the case of increasing Mapping modules and two data channel, not only compatible various functions specified in original agreement, while improving the security of data access, further increase the convenience of addition New function.

Description

A kind of TF cards
Technical field
The present invention relates to storage device field, more particularly to a kind of TF cards.
Background technology
Current TF cards Host is conducted interviews using LBA to the data of TF cards, and LBA is one-dimensional linear growth;It is such There is following Railway Project in access mode:1st, LBA is 32bit and the corresponding data units of LBA are 512bytes, then meaning 2T data can be accessed by Host maximums, but not have the TF cards of such Large Copacity in actual applications, so result in phase When a part of LBA is invalid, when Host removes to attempt to access this LBA, Card will return to mistake;2nd, the data on Card are It is expected that, i.e., identical LBA read-writes must be identical data, and this make it that data are stolen on BUS becomes simple.
Simultaneously when TF cards need expanding function, newly-increased order is generally required;But due to Command limited length, because The number of this order has the upper limit, then, different in face of different clients require only by increasing order firmware can be caused to answer Miscellaneous degree rises, and is difficult quick exploitation and the management of firmware version.
The content of the invention
For disadvantages described above, present invention aims at the expanded function for the TF cards for how easily realizing expansion standard life Order.
A kind of TF cards are proposed in order to solve the problem above present invention, it is characterised in that in the logical address space of TF cards Location space is as expanding function order at least partially for division, and expanding function order is accessed according to the form of normal read write command TF cards;Increase remaps module in TF cards, for analyzing whether normal read write command is expanded function order, if it is presses According to expanding function command triggers TF card operation commands set in advance;If otherwise accessing TF card data according to order request Space.
Described TF cards, it is characterised in that described remap at least includes one using nonvolatile storage storage in module Policy Table, the Policy Table carries out Configuration Online or prestoring by main frame, and the Policy Table at least includes extension work( The information that can be ordered.
Described TF cards, it is characterised in that described to remap whether module analyzes normal read write command by analysis state machine For expanded function order, it is specially:By analysis state machine by the logical address of incoming normal read write command in strategy Table carries out lookup matching, corresponding expanded function order is identified if matching, and the expanded function order is sent to The functional processing module Function of TF cards.
Described TF cards, it is characterised in that the controller Controller of TF cards receives the instruction of main frame, by instruction The command function for meeting TF card standard agreements directly issues and is given to functional processing module Function, it would be possible to include expanded function The instruction of order, which is issued to, to be remapped in module Mapping.
Described TF cards, it is characterised in that the controller Controller is to be realized or real by hardware by depositing software It is existing;Parameter transmission is carried out by register group or FIFO when being realized by hardware.
Described TF cards, it is characterised in that the analysis state machine at least includes:Idle condition Idle, dispatch state Dispatch, switching state Switch, configuration status Configure and processing state Process.
Described TF cards, it is characterised in that the Policy Table at least includes:Command index Command, initial logical address Start LBA, end logical address EndLBA, expanded function command index Function, switching command Switch Command.
In the case that the present invention is by increasing Mapping modules and two data channel, not only compatible original agreement Specified in various functions, while improve the security of data access, further increase the convenience of addition New function.
Brief description of the drawings
Fig. 1 is composition and data path schematic diagram inside TF cards;
Fig. 2 is the composition schematic diagram of Mapping modules;
Fig. 3 is the composition schematic diagram of analysis state machine.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is composition and data path schematic diagram, wherein Controller inside TF cards:Handle TF card external bus protocols Inter-related task, response main frame Host sends order;Receive and dispatch Host solicited messages;Translate Host orders;Number is received and dispatched by SD Bus According to.Function:For realizing function and user's request defined in agreement, including meet TF card standards command function and Expanding function order.The Mapping newly increased:Realize Command+LBA and user data space, system space, self-defined work( Mapping between energy, user's request.NandFlash:For storing user data.SystemSpace:Internal system space, is used In storage system related data.
TF cards include 5 data paths:Channel 1, Channel 2, Channel 3, Channel 4 and Channel 5.Wherein:Channel 1:Order and data channel after Controller translations.This passage is compatibility standard TF cards association Occupation mode basic LBA defined in view (also referred to as SD agreements).Channel 2:Order after Controller translations And data channel, this passage is the order data passage of the read-write non-user data defined in agreement.Channel 3: The order data passage for transferring to Function modules to be handled is needed after Mapping.Channel 4:Needed after Mapping Access NandFlash order data passage.Channel 5:Function modules need to access SystemSpace command number According to passage.
Fig. 2 is the composition schematic diagram of Mapping modules;Fig. 3 is the composition schematic diagram of analysis state machine.
Wherein order and logical address Commands&LBA is after Controller Receiving Hosts are instructed and parsed The LBA information of Command information and correlation.Command Index command indexs are without departing from SD agreement prescribed limits, but about Can be with self-defining function in the case of setting;LBA range such as SD protocol definitions.This module can use software to realize can also Realized using hardware:For hard-wired mode register can be used to carry out data transfer, FIFO can also be used to carry out Transmission.
Strategy Table Policy Tables:Wherein at least is deposited a default policy Default strategy strategy and used Configured in solution sketch form;When can not be found in Policy Table correspondence list item when according to the regulation progress of SD agreements at Reason.This table should use non-volatile memory medium to realize, such as norflash, nandflash, tcam (ternary content Addressable memory are a kind of three-state content addressing memories) etc..Policy Table includes but is not limited to following content:Order Index Command, starting LBA Start LBA, end LBA End LBA, feature index Function, switching command Switch Command。
Core-Logic logic analysis modules are the modules of Mapping modules.This module is used to analyze Commands&LBA With the relation between Strategy Table, and Functions&data and processing are exported and for being interacted with Nand Flash Operation&data information.This module needs to realize but be not limited to following function:Analysis state machine, tactful table index is patrolled Volume, tactful ruling logic.
Analysis state machine is specifically including but not limited to idle condition Idle, dispatch state Dispatch, switching state Switch, configuration status Configure and processing state Process.
Idle:
Entry condition:It is electric on TF cards,
Built-in function:Poll is used for the module for transmitting the Commands&LBA of Controller parsings,
Exit criteria:The Commands&LBA of Controller parsings is obtained, into Dispatch states;
Dispatch:
Entry condition:Idle Zhuan Tai &&Commands&LBA information,
Built-in function:Regulative strategy table index lookup logic corresponding strategies list item, regulative strategy ruling logic selection is used Tactful list item,
Exit criteria:Without list item matching, need to carry out function switching into Configure states, or matching list item, enter Enter Switch states, or matching list item switches without function, into Process states;
Switch:
Entry condition:Dispatch Zhuan Tais &Function is numbered,
Built-in function:Numbered and ordered according to Function and carry data, related soft or hard module is configured,
Exit criteria:Receive the Command orders defined in tactful list item;
Process:
Entry condition:List item is matched without function to switch,
Built-in function:Data are carried according to order and correspondence list item representation function carries out associative operation,
Exit criteria:Operation is completed.Policy Table's index logic is according to the difference of Policy Table's storage medium, and realization is included but not It is limited to following manner:
1. Policy Table's storage medium is NorFlash or NandFlash, then need partly or entirely to copy contents in table Enter in internal memory, carry out retrieval using software mode or hardware mode afterwards
2. the storage medium of Policy Table is TCAM, TCAM can be carried out content matching lookup in itself, be software without volume The exploitation of algorithm.
The realization of tactful ruling logic includes but is not limited to following manner:
1st, matched using lookup first.The list item that ruling logic is always obtained using searching for the first time carries out respective handling.
2nd, using latest configuration list item.Ruling logic always carries out respective handling using the list item of latest configuration.
3rd, usage history list item.Ruling logic needs to record ruling results one or many in the past, and in lookup result Compare, selection performance conventional in the past carries out respective handling.
Functions&data:If it is remaining to carry out that the result after Core-Logic parsings demonstrates the need for Function modules Lower processing, Core-Logic organizes Functions&data information to be sent to Function modules.
Above disclosed is only an embodiment of the present invention, can not limit the interest field of sheet with this certainly, One of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to the claims in the present invention institute The equivalent variations of work, still fall within the scope that the present invention is covered.

Claims (8)

1. a kind of TF cards, it is characterised in that divided in the logical address space of TF cards at least partially location space as expansion Command function, expanding function order accesses TF cards according to the form of normal read write command;Increase remaps module in TF cards, uses Whether it is expanded function order in analyzing normal read write command, if it is according to expanding function command triggers TF set in advance Card operation command;If otherwise accessing TF card data spaces according to order request.
2. TF cards according to claim 1, it is characterised in that described to remap that at least to include a use in module non-easily The Policy Table of memory storage is lost, the Policy Table carries out Configuration Online by main frame or prestored, and the Policy Table is extremely Include the information of expanded function order less.
3. TF cards according to claim 2, it is characterised in that the module that remaps analyzes normal by analysis state machine Whether read write command is expanded function order, is specially:By analysis state machine by incoming normal read write command logically Location information carries out lookup matching in Policy Table, identifies corresponding expanded function order if matching, and by the extension work( The functional processing module Function for being sent to TF cards can be ordered.
4. TF cards according to claim 3, it is characterised in that the controller Controller of TF cards receives the finger of main frame Order, the command function that TF card standard agreements are met in instruction is directly issued and is given to functional processing module Function, it would be possible to Instruction comprising expanded function order, which is issued to, to be remapped in module Mapping.
5. TF cards according to claim 4, it is characterised in that the controller Controller is to be realized by depositing software Or realized by hardware;Parameter transmission is carried out by register group or FIFO when being realized by hardware.
6. the TF cards according to claim 1 to 5 any one, it is characterised in that the analysis state machine at least includes:It is empty Not busy state I dle, dispatch state Dispatch, switching state Switch, configuration status Configure and processing state Process。
7. TF cards according to claim 6, it is characterised in that the Policy Table at least includes:Command index Command, rises Beginning logical address Start LBA, end logical address End LBA, expanded function command index Function, switching command Switch Command。
8. TF cards according to claim 7, it is characterised in that each state of the analysis state machine is defined as follows:
Idle:
Entry condition:It is electric on TF cards,
Built-in function:Poll is used for the module for transmitting the Commands&LBA of Controller parsings,
Exit criteria:The Commands&LBA of Controller parsings is obtained, into Dispatch states;
Dispatch:
Entry condition:Idle Zhuan Tai &&Commands&LBA information,
Built-in function:Regulative strategy table index lookup logic corresponding strategies list item, regulative strategy ruling logic selection uses strategy List item,
Exit criteria:Without list item matching, need to carry out function switching into Configure states, or matching list item, enter Switch states, or matching list item switch without function, into Process states;Switch:
Entry condition:Dispatch Zhuan Tais &Function is numbered,
Built-in function:Numbered and ordered according to Function and carry data, related soft or hard module is configured,
Exit criteria:Receive the Command orders defined in tactful list item;
Process:
Entry condition:List item is matched without function to switch,
Built-in function:Data are carried according to order and correspondence list item representation function carries out associative operation,
Exit criteria:Operation is completed.
CN201710437665.2A 2017-06-12 2017-06-12 TF card Expired - Fee Related CN107315699B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710437665.2A CN107315699B (en) 2017-06-12 2017-06-12 TF card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710437665.2A CN107315699B (en) 2017-06-12 2017-06-12 TF card

Publications (2)

Publication Number Publication Date
CN107315699A true CN107315699A (en) 2017-11-03
CN107315699B CN107315699B (en) 2021-04-23

Family

ID=60182220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710437665.2A Expired - Fee Related CN107315699B (en) 2017-06-12 2017-06-12 TF card

Country Status (1)

Country Link
CN (1) CN107315699B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106949A1 (en) * 2004-11-12 2006-05-18 Emulex Design & Manufacturing Corporation Legacy-compatible extended command input-output control block
CN101326483A (en) * 2005-12-08 2008-12-17 桑迪士克股份有限公司 Media card with command pass through mechanism
US20090182919A1 (en) * 2005-12-08 2009-07-16 Robert Chin-Tse Chang Media Card Command Pass Through Methods
CN101882058A (en) * 2010-05-26 2010-11-10 孟智平 Method for virtually dividing storage device into a plurality of devices
CN102207912A (en) * 2010-07-07 2011-10-05 无锡中科龙泽信息科技有限公司 Flash memory equipment for realizing partition function on equipment side and access method of flash memory equipment
CN103064641A (en) * 2013-02-05 2013-04-24 威盛电子股份有限公司 Non-volatile storage device and operating method thereof
CN104951412A (en) * 2015-06-06 2015-09-30 华为技术有限公司 Storage device capable of being accessed through memory bus
CN205302306U (en) * 2015-12-31 2016-06-08 北京兆易创新科技股份有限公司 Embedded system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106949A1 (en) * 2004-11-12 2006-05-18 Emulex Design & Manufacturing Corporation Legacy-compatible extended command input-output control block
CN101326483A (en) * 2005-12-08 2008-12-17 桑迪士克股份有限公司 Media card with command pass through mechanism
US20090182919A1 (en) * 2005-12-08 2009-07-16 Robert Chin-Tse Chang Media Card Command Pass Through Methods
CN101882058A (en) * 2010-05-26 2010-11-10 孟智平 Method for virtually dividing storage device into a plurality of devices
CN102207912A (en) * 2010-07-07 2011-10-05 无锡中科龙泽信息科技有限公司 Flash memory equipment for realizing partition function on equipment side and access method of flash memory equipment
CN103064641A (en) * 2013-02-05 2013-04-24 威盛电子股份有限公司 Non-volatile storage device and operating method thereof
CN104951412A (en) * 2015-06-06 2015-09-30 华为技术有限公司 Storage device capable of being accessed through memory bus
CN205302306U (en) * 2015-12-31 2016-06-08 北京兆易创新科技股份有限公司 Embedded system

Also Published As

Publication number Publication date
CN107315699B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN100487632C (en) Dual media storage device
KR100816761B1 (en) Memory card system including nand flash memory and sram/nor flash memory and data storage method thereof
CN105740163A (en) Nand Flash bad block management method
CN102819496A (en) Address translation method of flash FTL (Flash Translation Layer)
CN106708423A (en) Multimode storage management system
CN103282887A (en) Controller and method for performing background operations
CN101789019B (en) Method for controlling removable disk under Windows
US20110161561A1 (en) Virtualization of chip enables
US8914587B2 (en) Multi-threaded memory operation using block write interruption after a number or threshold of pages have been written in order to service another request
CN102246151A (en) Memory device and controlling method of the same
KR20130034450A (en) Storage device and driving method thereof
US20110055430A1 (en) Method for establishing a communication channel between a host device and a memory device, associated memory device and controller thereof, and associated host device and host device application
CN101729262A (en) Configuration method of non-webmaster type switchboard and non-webmaster type switchboard
CN109240939A (en) A kind of method of quick processing solid state hard disk TRIM
CN114746834A (en) Partition append command scheduling based on partition status
CN106598885B (en) A kind of working method of configurable multiport general data bridge system
CN109213423A (en) Concurrent I/O command is handled without lock based on address barrier
CN101082852B (en) Control apparatus and control method used for memory
CN105955919A (en) Implementation method of reading-writing NANDFlash by multiple MCUs based on FPGA (Field Programmable Gate Array)
CN117608856A (en) Memory expansion method, system, terminal and storage medium for NVMe (network video Me) acceleration card
EP3552121A1 (en) Opportunistic use of streams for storing data on a solid state device
CN107315699A (en) A kind of TF cards
CN109871337A (en) A kind of SSD storaging medium switching method and its system
CN110347614A (en) Memory space mapping algorithm, buffer status machine, storage device, storage medium
CN110515861A (en) Handle the storage device and method thereof of flash command

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210423