Pin selection circuit of storage device, storage device and chip

By introducing reference voltage supply modules and selection modules into the storage device, the compatibility problem of the pin selection of storage device under different package standards is solved, compatibility for pin definitions of different package standards is achieved, and cost and complexity is reduced. .

CN119068941APending Publication Date: 2024-12-03SHENZHEN LONGSYS ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310641630.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The pin selection schemes of existing storage devices are incompatible under different packaging standards, resulting in the need to add complex processes such as jumper resistors and stacked adapter boards, resulting in insufficient wiring space and limiting compatibility.

Method used

Provides a pin selection circuit for a storage device, including a reference voltage supply module and a selection module. The reference voltage supply module provides a reference voltage to the main control unit, causing the main control unit to send a control signal, and the selection module responds to select the main control unit and the storage. The pin connection relationship between units achieves compatibility with different packaging standards.

Benefits of technology

The compatibility of storage devices to different packaging standards is achieved, cost reduction and applicability is improved, and structure is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068941A_ABST
    Figure CN119068941A_ABST
Patent Text Reader

Abstract

The invention discloses a pin selection circuit of a storage device, the storage device and a chip, the pin selection circuit comprises a reference voltage providing module and a selection module, the reference voltage providing module is used for providing a reference voltage for a main control unit in the storage device, and the reference voltage is determined based on a packaging standard of a storage unit in the storage device; the selection module is connected with the reference voltage providing module, the main control unit and the storage unit, the selection module responds to a control signal sent by the main control unit based on the reference voltage, the pin connection relation between the main control unit and the storage unit is selected, and communication between the main control unit and the storage unit is achieved. Therefore, the current storage device can be compatible with pin definitions corresponding to different packaging standards, the structure is simple, the cost is reduced, and the applicability is wide.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a pin selection circuit of a storage device, a storage device and a chip. Background Art

[0002] In the application process of integrated circuits, with the advancement and development of technology, the packaging standard pin definitions of storage devices are not consistent in different protocols, resulting in incompatibility.

[0003] In actual operation, the researchers of this application found that if the current pin selection scheme of storage devices is to be commonly used in the market, it is necessary to add complex processes such as jumper resistors, stack-weld adapter boards, and modify PCBs. This is inconvenient to switch and also leads to insufficient wiring space, limiting the compatibility of different packaging standards with storage devices. Summary of the invention

[0004] The main technical problem solved by the present invention is to provide a pin selection circuit of a storage device, a storage device and a chip, which can make the storage device compatible with different packaging standards.

[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is: a pin selection circuit of a storage device is provided, comprising a reference voltage providing module and a selection module, wherein the reference voltage providing module is used to provide a reference voltage to a main control unit in the storage device, and the reference voltage is determined based on the packaging standard of the storage unit in the storage device; the selection module connects the reference voltage providing module, the main control unit and the storage unit, and the selection module selects the pin connection relationship between the main control unit and the storage unit in response to a control signal sent by the main control unit based on the reference voltage, so as to realize communication between the main control unit and the storage unit.

[0006] In one embodiment of the present application, the selection module includes: a control end, an input channel and at least two output channels, wherein the control end is connected to the main control unit for receiving the control signal; the input channel is connected to the functional pins of the main control unit; the first output channel is connected to the first functional pin area, the second output channel is connected to the second functional pin area, and is connected to the reference voltage providing module through at least one output channel; the functions of the corresponding pins of the first functional pin area and the second functional pin area under different packaging standards are different; the selection module selects the input channel and the first output channel to be turned on in response to the control end receiving the first control signal, so that the functional pins of the main control unit are connected to the pins of the storage unit; or, the selection module selects the input channel and the second output channel to be turned on in response to the control end receiving the second control signal, so that the functional pins of the main control unit are connected to the pins of the storage unit.

[0007] In an embodiment of the present application, the logic potentials of the first control signal and the second control signal are opposite.

[0008] In one embodiment of the present application, the selection module selects the input channel and the target output channel to be turned on in response to the control end receiving a third control signal so that the functional pin of the main control unit is connected to the pin of the storage unit; wherein the target output channel is connected to the reference voltage providing module; and the reference voltage providing module provides the reference voltage to the main control unit in response to a fourth control signal sent by the main control unit.

[0009] In one embodiment of the present application, the reference voltage providing module includes: a resistor and a field effect transistor; the field effect transistor is connected to the resistor through a drain, connected to the main control unit through a gate, connected to the target output channel through a source, and the field effect transistor is connected to the main control unit through the drain; wherein the field effect transistor is turned on in response to the fourth control signal, and provides a first reference voltage to the main control unit, thereby causing the main control unit to generate a first control signal; or, the field effect transistor is turned off in response to the fourth control signal, and provides a second reference voltage to the main control unit, thereby causing the main control unit to generate a second control signal.

[0010] In one embodiment of the present application, when the main control unit sends the first control signal or the second control signal to the control end, the main control unit sends a fifth control signal to the field effect transistor to turn off the field effect transistor.

[0011] In one embodiment of the present application, the reference voltage providing module also includes: a power supply unit, connected to the resistor, providing a first reference voltage to the main control unit through the resistor when the field effect tube is turned on, and providing a second reference voltage to the main control unit through the resistor when the field effect tube is turned off.

[0012] In an embodiment of the present application, the field effect transistor is an N-type field effect transistor.

[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide a storage device, comprising: a storage unit, a main control unit and a pin selection circuit; wherein the pin selection circuit is respectively coupled to the storage unit and the main control unit, and the pin selection circuit is the above-mentioned pin selection circuit.

[0014] In order to solve the above technical problem, another technical solution adopted by the present application is: to provide a chip, including the above pin selection circuit.

[0015] Different from the current technology, the pin selection circuit provided by the present application includes a reference voltage providing module and a selection module; wherein the reference voltage providing module is used to provide a reference voltage to the main control unit in the storage device, and the reference voltage is determined based on the packaging standard of the storage unit in the storage device; the selection module connects the reference voltage providing module, the main control unit and the storage unit, wherein the selection module selects the pin connection relationship between the main control unit and the storage unit in response to the control signal sent by the main control unit based on the reference voltage, and realizes the communication between the main control unit and the storage unit. That is, the technical solution of the present application can make the main control unit send a control signal to the selection module according to the reference voltage provided by the reference voltage providing module, and then make the selection module select the pin connection relationship between the main control unit and the storage unit in response to the control signal, that is, the current storage device can be compatible with the pin definitions corresponding to different packaging standards, and the structure is simple, the cost is reduced, and the applicability is wide. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0017] Figure 1 is a structural diagram of a first embodiment of a pin selection circuit of a storage device in the present application;

[0018] Figure 2 is a structural diagram of a second embodiment of a pin selection circuit of a storage device in the present application;

[0019] Figure 3 is a schematic diagram of the structure of an embodiment of a storage device in the present application;

[0020] Figure 4 It is a schematic diagram of the structure of a chip embodiment in this application.

[0021] In the accompanying drawings, 10-storage device, 100-pin selection circuit of storage device, 110-reference voltage providing module, VDDIO-power supply unit, R-resistor, Q-NMOS tube, 120-selection module, 200-main control unit, 300-storage unit, 20-chip. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0023] Reference to "embodiments" in an application means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0024] The steps in the embodiments of the present application do not necessarily have to be processed in the described order of steps. The steps can be selectively rearranged, or the steps in the embodiments can be deleted, or the steps in the embodiments can be added as needed. The step descriptions in the embodiments of the present application are only optional sequence combinations and do not represent all step sequence combinations in the embodiments of the present application. The order of steps in the embodiments cannot be considered as a limitation of the present application.

[0025] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0026] The current pin selection circuit, especially the pin selection circuit between storage devices and different packaging standard pin definitions, is generally achieved by adding jumper resistors, stack-welding conversion boards, revising PCBs, etc., which introduces a large number of resistors and difficult stack-welding. This is not only inconvenient to switch, but also leads to insufficient PCB wiring space, limiting the compatibility of different packaging standards with storage devices.

[0027] Therefore, a pin selection circuit of a storage device is provided, which enables the main control unit to send a control signal to the selection module based on the reference voltage provided by the reference voltage providing module, and then enables the selection module to select the pin connection relationship between the main control unit and the storage unit in response to the control signal, that is, the current storage device can be compatible with the pin definitions corresponding to different packaging standards.

[0028] See also Figure 1 , Figure 1 It is a structural diagram of the first embodiment of the pin selection circuit of the present application.

[0029] like Figure 1 As shown, the pin selection circuit 100 includes: a reference voltage providing module 110 and a selection module 120, wherein the reference voltage providing module 110 is used to provide a reference voltage to a main control unit in a storage device, and the reference voltage is determined based on a packaging standard of a storage unit in the storage device; the selection module 120 is respectively connected to the reference voltage providing module 110, the main control unit and the storage unit; the selection module 120 selects a pin connection relationship between the main control unit and the storage unit in response to a control signal sent by the main control unit based on the reference voltage, thereby realizing communication between the main control unit and the storage unit.

[0030] Among them, the reference voltage providing module 110 refers to a voltage providing module that can provide a reference voltage, and the reference voltage provided by the voltage providing module is determined based on the packaging standard of the storage unit in the storage device; the selection module 120 refers to a module that can select the pin connection relationship between the main control unit and the storage unit of the storage device.

[0031] Specifically, the reference voltage providing module 110 generates a reference voltage based on the packaging standard of the storage unit in the storage device, and the output end of the reference voltage providing module 110 is connected to the input end of the main control unit in the storage device, so that the reference voltage providing module 110 can provide a reference voltage to the main control unit in the storage device; the output end of the main control unit is connected to the input end of the selection module 120, and the output end of the selection module 120 is connected to the storage unit in the storage device and is connected to the reference voltage providing module 110; the main control unit generates a control signal based on the reference voltage and sends it to the selection module 120, so that the selection module 120 responds to the control signal and selects the pin connection relationship between the main control unit and the storage unit, thereby realizing communication between the main control unit and the storage unit.

[0032] In some embodiments, the main control unit may be a flash memory controller, such as a main control of an SSD, a main control of a USB flash drive, or other controller chips. It can be understood that the main control unit is the control unit of the storage device.

[0033] In the present embodiment, based on the current storage device, a pin selection circuit of a storage device is provided, including a reference voltage providing module and a selection module. The reference voltage providing module provides a reference voltage to the main control unit, so that the main control unit generates a control signal based on the reference voltage and transmits it to the selection module, and then the selection module selects the pin connection relationship between the main control unit and the storage unit in response to the control signal, thereby realizing communication between the main control unit and the storage unit, that is, realizing the pin connection relationship between the main control unit and the storage unit in the storage device under different packaging standards, so that the storage device can be compatible with the pin definitions corresponding to different packaging standards.

[0034] See also Figure 2 , Figure 2 It is a structural diagram of the second embodiment of the pin selection circuit in this application.

[0035] like Figure 2 As shown, the pin selection circuit includes a reference voltage providing module 110 and a selection module 120, and the selection module 120 includes a control terminal, an input channel and at least two output channels; wherein the selection module 120 is connected to the main control unit through the main control terminal, and is used to receive a control signal sent by the main control unit based on the reference voltage; the selection module 120 is connected to the functional pins of the main control unit through the input channel; the selection module 120 is connected to the first functional pin area through the first output channel, and is connected to the second functional pin area through the second output channel, and is connected to the reference voltage providing module through at least one output channel, and the functions of the corresponding pins of the first functional pin area and the second functional pin area are different under different packaging standards.

[0036] Among them, in the ONFI4.2 BGA132 standard package pin definition, L4 / L5 / G7 / G8 are defined as CE signals in the ONFI4.2 protocol, but are defined as VSSQ and DBI signals in the ONFI5 protocol, and the CE signal originally defined in the ONFI4.2 protocol is moved to H2 / H3 / K9 / K10 in the ONFI5.0 protocol. In addition, the pin definitions of BGA152 and BGA132 only add two rows of NU (Do not use) pins on the periphery, that is, based on different packaging standards, the pin functions of the same functional pin area are different, that is, the pin definition of the ONFI5.0 BGA132 standard package is inconsistent with the BGA132 / 152 standard package pin definition specified in protocols such as ONFI4.2 / ONFI3.0 / Toggle4.0 / Toggle3.0.

[0037] Specifically, when the main control unit receives the reference voltage and sends the first control signal, and the selection module 120 responds to the first control signal received by the control end, the selection module 120 selects the input channel and the first output channel of the selection module 120 to be turned on, so that the function pin of the main control unit in the storage device is connected to the pin of the storage unit through the first output channel, that is, the main control unit communicates with the storage unit through the first output channel. Alternatively, when the main control unit receives the reference voltage and sends the second control signal, and the selection module 120 responds to the second control signal received by the control end, the selection module 120 selects the input channel and the second output channel of the selection module 120 to be turned on, so that the function pin of the main control unit in the storage device is connected to the pin of the storage unit through the second output channel, that is, the main control unit communicates with the storage unit through the second output channel.

[0038] Among them, the logic potentials of the first control signal and the second control signal are opposite. For example, when the logic potential of the control signal is at a low level, the control signal is regarded as a first control signal, and the selection module 120 selects the input channel and the first output channel of the selection module 120 to be turned on, so that the functional pin of the main control unit in the storage device is connected to the pin of the storage unit through the first output channel; when the logic potential of the control signal is at a high level, the control signal is regarded as a second control signal, and the selection module 120 selects the input channel and the second output channel of the selection module 120 to be turned on, so that the functional pin of the main control unit in the storage device is connected to the pin of the storage unit through the second output channel.

[0039] Continue to refer Figure 2 The reference voltage providing module 110 includes a resistor R and a field effect transistor Q; the field effect transistor Q is connected to the resistor R through a drain, connected to a main control unit in a storage device through a gate, connected to a target output channel through a source, and connected to the main control unit through a drain.

[0040] In some embodiments, the field effect transistor is an N-type field effect transistor, such as an NMOS transistor.

[0041] In some embodiments, the selection module 120 may be one or more multiplexers, such as a 2-input 4-output multiplexer, a 4-input 8-output multiplexer, and the like.

[0042] In some embodiments, when the main control unit receives a reference voltage and sends a third control signal, and the selection module 120 responds to the third control signal received by the control end, the selection module 120 selects the input channel and the target output channel to be turned on, so that the functional pins of the main control unit in the storage device are connected to the pins of the storage unit through the target output channel.

[0043] The target output channel refers to the output channel of the selection module 120 connected to the reference voltage providing module.

[0044] In some embodiments, the reference voltage providing module 110 responds to a fourth control signal sent by the main control unit, so that the reference voltage providing module provides a reference voltage to the main control unit.

[0045] Among them, the field effect transistor Q is turned on in response to the fourth control signal, and a first reference voltage is provided to the main control unit from the connection point between the drain of the field effect transistor Q and the resistor R. The main control unit generates a first control signal based on the first reference voltage, and inputs the first control signal to the selection module 120 through the control end of the selection module 120 to control the selection module 120 to select the input channel and the first output channel of the selection module 120 to be turned on, so that the function pin of the main control unit in the storage device is connected to the pin of the storage unit through the first output channel, that is, the main control unit communicates with the storage unit through the first output channel.

[0046] Alternatively, the field effect transistor Q is turned off in response to the fourth control signal, and a second reference voltage is provided to the main control unit 200 from the connection point between the drain of the field effect transistor Q and the resistor R. The main control unit generates a second control signal based on the second reference voltage, and inputs the second control signal to the selection module 120 through the control end of the selection module 120 to control the selection module 120 to select the input channel and the second output channel of the selection module 120 to be turned on, so that the function pin of the main control unit in the storage device is connected to the pin of the storage unit through the second output channel, that is, the main control unit communicates with the storage unit through the second output channel.

[0047] In some embodiments, when the main control unit sends the first control signal or the second control signal to the control terminal of the selection module 120, the main control unit sends a fifth control signal to the field effect transistor Q to turn off the field effect transistor.

[0048] In some embodiments, there can be multiple field effect transistors Q, for example, two field effect transistors are used, the gates of the two field effect transistors are connected to the main control unit through the two first output terminals (GPIO_2) of the main control unit, the sources of the two field effect transistors are connected to the PIN_L4 pin and the PIN_G8 pin of the BGA132Flash, and the drains of the two field effect transistors are connected to the main control unit through the two input terminals (GPIO_1) of the main control unit.

[0049] Continue to refer Figure 2 The reference voltage providing module 110 also includes a power supply unit VDDIO, which is connected to a resistor R. When the field effect tube Q is turned on, the first reference voltage is provided to the main control unit through the resistor. When the field effect tube Q is turned off, the second reference voltage is provided to the main control unit through the resistor.

[0050] For example, taking NMOS tube Q1 as a field effect tube and a two-way multiplexer as the selection module 120, the functional pins of the main control unit include CE0 / CE1 / CE2 / CE3, the NMOS tube is connected to the input end (GPIO_1) of the main control unit through the drain, the NMOS tube is connected to the first output end (GPIO_2) of the main control unit through the gate, the main control unit is connected to the control end of the selection module 120 through the second output end (GPIO_3), the first output channel of the selection module 120 is CH0, the second output channel of the selection module 120 is CH1, and the storage unit is BGA132NAND for example.

[0051] Then, the NMOS tube Q1 is connected to the resistor R through the drain (D pole) to the power supply unit VDDIO, the power supply unit VDDIO provides a high level, is connected to the PIN_L4 or PIN_G8 of the storage unit through the source (S pole), and is connected to the first output end (GPIO_2) of the main control unit through the gate (G pole); the input channel of the selection module 120 is connected to the function pin (CE0 / CE1 / CE2 / CE3) of the main control unit, is connected to the first function pin area (PIN_H1 / PIN_K10 / PIN_H2 / PIN_K9) of the storage unit 300 through the first output channel (CH0), and is connected to the second function pin area (PIO_1 / PIO_2 / PIO_3) of the storage unit through the second output channel (CH1). IN_L4 / PIN_G8 / PIN_L5 / PIN_G7), and connected to the second output terminal (GPIO_3) of the main control unit through the control end. When GPIO_3 is at a high level, the selection module 120 responds to the control end receiving the second control signal sent by the main control unit, and the function pin (CE0 / CE1 / CE2 / CE3) of the main control unit is communicated with the second output channel (CH1) of the selection module 120; when GPIO_3 is at a low level, the selection module 120 responds to the control end receiving the first control signal sent by the main control unit, and the function pin (CE0 / CE1 / CE2 / CE3) of the main control unit is communicated with the first output channel (CH0) of the selection module 120.

[0052] The principle of the present application is as follows: when the pin selection circuit is powered on, the main control unit pulls up the levels of the first output terminal (GPIO_2) and the second output terminal (GPIO_3). At this time, the main control unit sends a third control signal to the selection module 120 through the control end of the selection module 120, so that the selection module 120 responds to the third control signal received by the control end and selects the input channel and the target output channel to be turned on. If the storage unit is the ONFI5.0 packaging standard, the PIN_L4 pin is VSSQ, that is, a low level, then the NMOS tube Q1 will be turned on because the threshold voltage Vgs(th) is met, that is, when the PIN_L4 pin is VSSQ, the main control unit sends a fourth control signal to the field effect tube, and the field effect tube is turned on in response to the fourth control signal, and the power supply unit sends a fourth control signal to the input of the main control unit through a resistor. The first reference voltage is provided to the terminal (GPIO_1) of the main control unit, so that the input terminal (GPIO_1) of the main control unit is at a low level, thereby causing the main control unit to generate a first control signal; if the storage unit is packaged in the ONFI4.2 standard or in the standard of other protocols, the PIN_L4 pin / PIN_G8 pin is a CE function pin and is in a high impedance state, causing the NMOS tube Q1 to be turned off, that is, when the PIN_L4 pin / PIN_G8 pin is a CE function pin and is in a high impedance state, the main control unit sends a fourth control signal to the field effect tube, and the field effect tube is turned off in response to the fourth control signal, and the power supply unit provides a second reference voltage to the input terminal (GPIO_1) of the main control unit through a resistor, thereby causing the input terminal (GPIO_1) of the main control unit to be at a high level, thereby causing the main control unit to generate a second control signal.

[0053] When the level of the main control unit input terminal (GPIO_1) is 1, that is, a high level, the first output terminal (GPIO_2) of the main control unit can output a high impedance state or a low level, and the main control unit sends a fifth control signal to the field effect tube to turn off the NMOS tube Q1, while the second output terminal (GPIO_3) of the main control unit maintains a high level. The selection module 120 responds to the control terminal receiving the second control signal sent by the main control unit, so that the function pin (CE0 / CE1 / CE2 / CE3) of the main control unit is connected to the second output channel (CH1) of the selection module 120, and the function pin of the main control unit is connected to the CE function pin of the storage unit of the ONFI4.2 packaging standard; if The level of the input terminal (GPIO_1) of the main control unit is 0, that is, a low level, then the first output terminal (GPIO_2) of the main control unit can output a high impedance state or a low level, and the main control unit sends a fifth control signal to the field effect tube to turn off the NMOS tube Q1, and the second output terminal (GPIO_3) of the main control unit is changed to output a low level. The selection module 120 responds to the control end receiving the first control signal sent by the main control unit, so that the function pin (CE0 / CE1 / CE2 / CE3) of the main control unit is connected to the first output channel (CH0) of the selection module 120, and the function pin of the main control unit is connected to the CE function pin of the storage unit of the ONFI5.0 packaging standard.

[0054] In this embodiment, the reference voltage provided by the reference voltage providing module is determined by the packaging standard of the storage unit in the storage device, and the main control unit generates a control signal to the selection module 120 based on the reference voltage, so that the selection module 120 selects the pin connection relationship between the main control unit and the storage unit in response to the control signal, thereby realizing communication between the main control unit and the storage unit, that is, realizing the pin connection relationship between the main control unit and the storage unit in the storage device under different packaging standards, so that the storage device can be compatible with the pin definitions corresponding to different packaging standards.

[0055] The above technical scheme provides a pin selection circuit of a storage device, including a reference voltage providing module and a selection module, wherein the reference voltage providing module is used to provide a reference voltage to a main control unit in the storage device, wherein the reference voltage is determined based on the packaging standard of the storage unit in the storage device; the selection module connects the reference voltage providing module, the main control unit and the storage unit, wherein the selection module selects the pin connection relationship between the main control unit and the storage unit in response to a control signal sent by the main control unit based on the reference voltage, thereby realizing communication between the main control unit and the storage unit; that is, the technical scheme of the present application can enable the main control unit to send a control signal to the selection module according to the reference voltage provided by the reference voltage providing module, and then enable the selection module to select the pin connection relationship between the main control unit and the storage unit in response to the control signal, that is, the current storage device can be compatible with the pin definitions corresponding to different packaging standards, and has a simple structure, reduced costs, and wide applicability.

[0056] See also Figure 3 , Figure 3 is a schematic diagram of the structure of an embodiment of a storage device in the present application, such as Figure 3 As shown, a storage device 10 is provided, including a storage unit 300, a main control unit 200 and a pin selection circuit 100, wherein the pin selection circuit is coupled to the storage unit 300 and the main control unit 200 respectively, and the pin selection circuit 100 is the above-mentioned pin selection circuit 100.

[0057] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a chip in an embodiment of the present application, such as Figure 4 As shown, a chip 20 is provided, comprising the pin selection circuit 100 mentioned above.

[0058] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the system implementation described above is only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0059] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0060] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0061] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0062] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A pin selection circuit of a storage device, characterized in that: include: A reference voltage providing module, used for providing a reference voltage to a main control unit in a storage device, wherein the reference voltage is determined based on a packaging standard of a storage unit in the storage device; A selection module is connected to the reference voltage providing module, the main control unit and the storage unit, wherein the selection module selects a pin connection relationship between the main control unit and the storage unit in response to a control signal sent by the main control unit based on the reference voltage, so as to realize communication between the main control unit and the storage unit.

2. The pin selection circuit according to claim 1, characterized in that: The selection module comprises: A control terminal, connected to the main control unit, and configured to receive the control signal; An input channel connected to the function pins of the main control unit; At least two output channels, wherein the first output channel is connected to the first functional pin area, the second output channel is connected to the second functional pin area, and the reference voltage providing module is connected through at least one output channel; the functions of the pins corresponding to the first functional pin area and the second functional pin area under different packaging standards are different; The selection module selects the input channel and the first output channel to be turned on in response to the control end receiving the first control signal, so that the function pin of the main control unit is connected to the pin of the storage unit; Alternatively, in response to the control end receiving a second control signal, the selection module selects the input channel and the second output channel to be turned on, so that the function pin of the main control unit is connected to the pin of the storage unit.

3. The pin selection circuit according to claim 2, characterized in that: The first control signal and the second control signal have opposite logic potentials.

4. The pin selection circuit according to claim 2, characterized in that: The selection module selects the input channel and the target output channel to be turned on in response to the control end receiving a third control signal, so that the functional pin of the main control unit is connected to the pin of the storage unit; wherein the target output channel is connected to the reference voltage providing module; and the reference voltage providing module provides the reference voltage to the main control unit in response to a fourth control signal sent by the main control unit.

5. The pin selection circuit according to claim 4, characterized in that: The reference voltage providing module comprises: resistance; A field effect transistor, wherein the field effect transistor is connected to the resistor via a drain, connected to the main control unit via a gate, connected to the target output channel via a source, and the field effect transistor is connected to the main control unit via the drain; The field effect transistor is turned on in response to the fourth control signal, and provides a first reference voltage to the main control unit, thereby causing the main control unit to generate a first control signal; Alternatively, the field effect transistor is turned off in response to the fourth control signal, and provides a second reference voltage to the main control unit, thereby causing the main control unit to generate a second control signal.

6. The pin selection circuit according to claim 5, characterized in that: When the main control unit sends the first control signal or the second control signal to the control end, the main control unit sends a fifth control signal to the field effect transistor to turn off the field effect transistor.

7. The pin selection circuit according to claim 5, characterized in that: The reference voltage providing module also includes: A power supply unit is connected to the resistor, and provides a first reference voltage to the main control unit through the resistor when the field effect tube is turned on, and provides a second reference voltage to the main control unit through the resistor when the field effect tube is turned off.

8. The pin selection circuit according to claim 5, characterized in that: The field effect tube is an N-type field effect tube.

9. A storage device, characterized in that: include: Storage unit; Main control unit; A pin selection circuit is coupled to the storage unit and the main control unit respectively, and the pin selection circuit is the pin selection circuit according to any one of claims 1 to 8.

10. A chip, characterized in that: The invention comprises a pin selection circuit as described in any one of claims 1 to 8.