Structure, method and medium for realizing processor self-adaptive SATA and NVME M.2

文档序号:923750 发布日期:2021-03-02 浏览:2次 中文

阅读说明:本技术 实现处理器自适应sata和nvme m.2的结构、方法及介质 (Structure, method and medium for realizing processor self-adaptive SATA and NVME M.2 ) 是由 王世鹏 李岩 于 2020-11-26 设计创作,主要内容包括:本发明公开的实现处理器自适应SATA和NVME M.2的结构,包括处理器,其中,所述处理器通过第一PCIE通道连接PCIE转SATA桥,所述PCIE转SATA桥通过SATA总线连接通道选择单元的第一端口,所述处理器通过X2的第二PCIE通道和X2的第三PCIE通道连接所述通道选择单元的第二端口,所述通道选择单元的第三端口选择连接第一端口或者第二端口;所述通道选择单元的第三端口电性连接M.2连接器;所述M.2连接器的PEDET键电性连接所述通道选择单元的SEL端口。本发明通过PCIE转SATA桥实现不支持SATA的处理器连接SATA M.2硬盘;且通过所述通道选择单元实现根据SATA M.2硬盘和NVME M.2硬盘发送不同的信号进行通道选择以实现SATA M.2硬盘和NVME M.2硬盘的自适应,使得硬盘配置更加灵活,且避免因差错盘而造成损失。(The structure for realizing the self-adaption SATA and NVME M.2 of the processor comprises the processor, wherein the processor is connected with a PCIE-to-SATA bridge through a first PCIE channel, the PCIE-to-SATA bridge is connected with a first port of a channel selection unit through an SATA bus, the processor is connected with a second port of the channel selection unit through a second PCIE channel of X2 and a third PCIE channel of X2, and a third port of the channel selection unit is selectively connected with the first port or the second port; the third port of the channel selection unit is electrically connected with the M.2 connector; and the PEDET key of the M.2 connector is electrically connected with the SEL port of the channel selection unit. The invention realizes that the processor which does not support SATA is connected with the SATA M.2 hard disk through the PCIE-SATA bridge; and the channel selection unit is used for realizing channel selection according to different signals sent by the SATA M.2 hard disk and the NVME M.2 hard disk so as to realize self-adaptation of the SATA M.2 hard disk and the NVME M.2 hard disk, so that the hard disk configuration is more flexible, and the loss caused by error disk is avoided.)

1. An architecture for implementing processor-adaptive SATA and NVME M.2, comprising a processor (1) in which,

the processor (1) is connected with the PCIE-to-SATA bridge (2) through a first PCIE channel, the PCIE-to-SATA bridge (2) is connected with a first port of the channel selection unit (3) through an SATA bus, the processor (1) is connected with a second port of the channel selection unit through a second PCIE channel of X2 and a third PCIE channel of X2, and a third port of the channel selection unit (3) is selectively connected with the first port or the second port;

the third port of the channel selection unit (3) is electrically connected with the M.2 connector (4);

the PEDET key of the M.2 connector (4) is electrically connected with the SEL port of the channel selection unit (3).

2. The architecture of claim 1, wherein the PCIE-to-SATA bridge (2) is electrically connected to a storage unit (5) through an SPI bus, and the storage unit (5) stores a startup configuration file of the PCIE-to-SATA bridge.

3. The architecture for implementing processor-adaptive SATA and NVME m.2 as set forth in claim 1, wherein a SATA m.2 hard disk provides a first signal to a PEDET key of said m.2 connector (4) and a NVME m.2 hard disk provides a second signal to a PEDET key of said m.2 connector (4).

4. The architecture for implementing processor-adaptive SATA and NVME M.2 of claim 3 wherein said channel select unit (3) reads said SEL port signal and controls said first port to connect to said third port or said second port to connect to said second port in response to said SEL port signal.

5. The architecture of claim 4 for implementing processor adaptive SATA and NVME M.2 in which the first, second and third ports each include TXP, TXN, RXP, RXN.

6. The architecture for implementing processor-adaptive SATA and NVME M.2 according to any one of claims 1 to 5, wherein a control module and a channel selection logic module are configured in the channel selection unit (3), the control module is electrically connected to the channel selection logic module, and the control module is electrically connected to the power supply unit (6).

7. The architecture for implementing processor-adaptive SATA and NVME m.2 according to claim 6, wherein said power supply unit (6) controls power-up of said PCIE-to-SATA bridge according to a control signal of said control module.

8. A control method for realizing processor adaptive SATA and NVME M.2 is applied to the structure for realizing processor adaptive SATA and NVME M.2, and is characterized by comprising the following steps:

the control module acquires a signal of the SEL port, and responds to the signal to control the first port to be connected with a third port or the second port to be connected with the third port;

generating a corresponding control signal in response to the signal, and transmitting the control signal to a power supply unit;

and the power supply unit responds to the control signal to control the power-on of the PCIE-SATA bridge.

9. The control method of claim 8, wherein when powering on, the power supply unit powers on the processor and the channel selection unit first, the control module of the channel selection unit sends the control signal, and the power supply unit responds to the control signal to control whether the PCIE-to-SATA bridge is powered on.

10. A medium for implementing processor-adaptive SATA and NVME m.2, wherein at least one instruction is stored, and the execution of the instruction implements a control method for implementing processor-adaptive SATA and NVME m.2 according to any one of claims 8 and 9.

Technical Field

The invention relates to the technical field of connection of a processor and a hard disk, in particular to a structure, a method and a medium for realizing self-adaption SATA and NVME M.2 of the processor.

Background

With the increasingly intense competition in China and America, in order to reduce or even get rid of the dependence on chips of American companies in China, China now pays more and more attention to the development of domestic chips, and in the aspect of processors, some domestic processors reach the leading level in the industry and are widely applied to various fields.

In the existing practical situation, compared with some foreign chips, some domestic chips are not integrated with SATA controllers, and when the chips are connected with devices such as a hard disk, the conversion is performed through PCIE resources of the chips. In addition, most of the NVME m.2 in the market at present adopt a PCIE X2 physical channel, and the SATA m.2 adopts a PCIE X1 physical channel, but in an actual production process, in order to better satisfy a user, a chip is generally required to support both SATA connection and NVME connection. The prior art often designs the connection board card respectively aiming at SATA and NVME, which can not meet the requirement of flexible configuration of users, and once the users mistaken the disk, the main board is easy to cause problems because of incompatibility. Most of M.2 of general NVME is a physical channel of PCIE X2, and the existing processor usually adopts X1 when connecting NVME, so that the running speed of NVME M.2 is greatly reduced, and the requirement of a user on quick response of a host cannot be met.

Disclosure of Invention

To solve the above problems, the present invention provides an architecture for implementing processor-adaptive SATA and NVME m.2, comprising a processor, wherein,

the processor is connected with a PCIE-to-SATA bridge through a first PCIE channel, the PCIE-to-SATA bridge is connected with a first port of a channel selection unit through an SATA bus, the processor is connected with a second port of the channel selection unit through a second PCIE channel with a bandwidth of X2 and a third PCIE channel with a bandwidth of X2, and a third port of the channel selection unit is selectively connected with the first port or the second port;

the third port of the channel selection unit is electrically connected with the M.2 connector;

and the PEDET key of the M.2 connector is electrically connected with the SEL port of the channel selection unit.

Furthermore, the PCIE-to-SATA bridge is electrically connected to a storage unit through an SPI bus, and the storage unit stores a start configuration file of the PCIE-to-SATA bridge.

Further, the SATA m.2 hard disk provides a first signal to the PEDET key of the m.2 connector and the NVME m.2 hard disk provides a second signal to the PEDET key of the m.2 connector.

Further, the channel selection unit reads the SEL port signal and controls the first port to be connected to the third port or controls the second port to be connected to the second port in response to the SEL port signal.

Still further, the first port, second port, and third port each include TXP, TXN, RXP, RXN.

Furthermore, a control module and a channel selection logic module are configured in the channel selection unit, the control module is electrically connected with the channel selection logic module, and the control module is electrically connected with the power supply unit.

Furthermore, the power supply unit controls the power-on and power-off of the PCIE-to-SATA bridge according to the control signal of the control module.

The invention provides a control method for realizing processor self-adaption SATA and NVME M.2, which is applied to a structure for realizing processor self-adaption SATA and NVME M.2 and comprises the following steps:

the control module acquires a signal of the SEL port and responds to the signal to control the first port to be connected with the third port or the second port to be connected with the third port;

generating a corresponding control signal in response to the signal, and transmitting the control signal to a power supply unit;

and the power supply unit responds to the control signal to control the power-on of the PCIE-SATA bridge.

Furthermore, when the power supply unit is powered on, the power supply unit firstly powers on the processor and the channel selection unit, the control module of the channel selection unit sends the control signal, and the power supply unit responds to the control signal to control whether the PCIE-SATA bridge is powered on or not.

The invention also provides a medium for realizing the processor self-adaptive SATA and NVME M.2, which stores at least one instruction and executes the instruction to realize the control method for realizing the processor self-adaptive SATA and NVME M.2.

The structure and the method for realizing the self-adaption SATA and NVME M.2 of the processor have the following beneficial effects:

the invention provides a structure, a method and a medium for realizing processor self-adaption SATA and NVME M.2.for a processor which does not support SATA, the PCIE-to-SATA bridge is used for connecting the processor and a SATA M.2 hard disk, and the processor which does not support SATA can be connected with the SATA M.2 hard disk; according to different signals of the SATA M.2 hard disk and the NVME M.2 hard disk to the channel selection unit, the channel selection unit connects the M.2 connector with the PCIE-to-SATA bridge or the M.2 connector is connected with the processor through a PCIE X2 channel according to the signal selection, and the adaptive SATA M.2 hard disk and the NVME M.2 hard disk are achieved.

In addition, the channel selection unit generates a control signal which is sent to the power supply unit according to the signal, and the power supply unit controls whether the PCIE-to-SATA bridge is powered on or not according to the control signal; when the NVME M.2 hard disk is plugged, the PCIE-to-SATA bridge is not powered on, and when the SATA M.2 hard disk is plugged, the PCIE-to-SATA bridge is powered on, so that electric energy is saved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.

FIG. 1 is a diagram of an architecture for implementing processor-adaptive SATA and NVME M.2 in one embodiment of the invention;

FIG. 2 is a schematic diagram of the principle of a channel selection unit in one embodiment of the present invention;

FIG. 3 is a schematic diagram of the architecture for implementing processor-adaptive SATA and NVME M.2 in another embodiment of the invention;

FIG. 4 is a schematic diagram of a channel selection unit in another embodiment of the present invention;

FIG. 5 is a control module process flow diagram of the control method of the present invention implementing processor adaptive SATA and NVME M.2;

FIG. 6 is a power supply unit process flow diagram of the control method for implementing processor adaptive SATA and NVME M.2 of the present invention.

Reference numerals and meanings in the drawings:

1. the system comprises a processor, a PCIE-SATA bridge 2, a PCIE-SATA bridge 3, a channel selection unit, a M.2 connector 4, a storage unit 5, a power supply unit 6 and a power supply unit.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The invention is described with reference to the accompanying drawings, wherein fig. 1 is a schematic diagram of a structure for implementing processor adaptive SATA and NVME m.2 in an embodiment of the invention; FIG. 2 is a schematic diagram of the principle of a channel selection unit in one embodiment of the present invention; FIG. 3 is a schematic diagram of the architecture for implementing processor-adaptive SATA and NVME M.2 in another embodiment of the invention; FIG. 4 is a schematic diagram of a channel selection unit in another embodiment of the present invention; FIG. 5 is a control module process flow diagram of the control method of the present invention implementing processor adaptive SATA and NVME M.2; FIG. 6 is a power supply unit process flow diagram of the control method for implementing processor adaptive SATA and NVME M.2 of the present invention.

Example 1

Referring to fig. 1, the present invention provides an architecture for implementing processor-adaptive SATA and NVME m.2, including a processor 1, wherein,

the processor 1 is connected with a PCIE-to-SATA bridge 2 through a first PCIE channel, the PCIE-to-SATA bridge 2 is connected with a first port of the channel selection unit 3 through a SATA bus, the processor 1 is connected with a second port of the channel selection unit through a second PCIE channel of X2 and a third PCIE channel of X2, and a third port of the channel selection unit 3 is selectively connected with the first port or the second port;

the third port of the channel selection unit 3 is electrically connected with the m.2 connector 4;

the PEDET key of the m.2 connector 4 is electrically connected to the SEL port of the channel selection unit 3.

In a specific implementation process, a feasible model of the PCIE-to-SATA bridge 2 is ASM1061, the PCIE-to-SATA bridge 2 is electrically connected to a storage unit 5 through an SPI bus, the storage unit 5 includes but is not limited to a read-only memory, the storage unit 5 stores a start configuration file of the PCIE-to-SATA bridge, and the PCIE-to-SATA bridge 2 obtains contents of the start configuration file from the storage unit 5 to implement conversion between PCIE and SATA.

In a specific implementation process, the SATA m.2 hard disk provides a first signal to the PEDET key of the m.2 connector 4, and the NVME m.2 hard disk provides a second signal to the PEDET key of the m.2 connector 4. One possible way is that the SATA m.2 hard disk provides a low level signal to the PEDET key of the m.2 connector 4, and the NVME m.2 hard disk provides a high level signal to the PEDET key of the m.2 connector 4.

Further, the channel selection unit 3 may be a programmable logic chip, and specifically, a possible logic structure of the channel selection unit 3 is shown in fig. 2, and includes a logical or, where an output end of the logical or constitutes a third port; the two input ends of the logical OR are respectively connected with the output ends of the two logical AND; the two logic AND circuits respectively have an input end to form a first port and a second port; and one of the other two input ends of the two logic AND is directly connected with the SEL port, and the other input end of the two logic AND is connected with the SEL port through an inverter. The channel selection unit 3 reads the SEL port signal and controls the first port to be connected to the third port or the second port to be connected to the second port in response to the SEL port signal. In a specific implementation process, when the SEL port is a first signal (low-level signal), the logic and input logic "1" of the first port is provided after passing through the inverter, so that the first port is connected with the third port; when the SEL port is a second signal (high signal), a logic "1" is input to the logical AND providing the second port, such that the second port is connected to the third port.

In a specific implementation, the first port, the second port, and the third port each include TXP, TXN, RXP, RXN.

Example 2

Referring to fig. 3 and 4 in combination, the difference from the embodiment 1 is that a channel selection unit in the embodiment is used as a channel selection logic module in the embodiment 2, and a configuration control module is added to the channel selection unit 3 in the embodiment 2, the control module is electrically connected to the channel selection logic module, and the control module is electrically connected to a power supply unit 6. In a specific implementation process, the control module acquires a signal of the SEL port, and the control module provides a high level or low level signal to the channel selection logic module according to the signal of the SEL port so as to control the channel selection logic module.

In a specific implementation process, the control module generates a control signal according to a signal of the SEL port, the control module sends the control signal to the power supply unit 6, and the power supply unit 6 controls power-on and power-off of the PCIE-to-SATA bridge according to the control signal of the control module. Specifically, when the SEL port is the first signal (low level signal), the control module provides a low level signal to the channel selection logic module; when the SEL port is a second signal (high level signal), the control module provides a high level signal to the channel selection logic module. When the SEL port is a first signal (low level signal), the control module generates a control signal 1, the control module sends the control signal 1 to the power supply unit 6, and the power supply unit 6 controls the PCIE-to-SATA bridge 2 to be powered on; when the SEL port is a second signal (a high-level signal), the control module generates a control signal 2, the control module sends the control signal 2 to the power supply unit 6, and the power supply unit 6 controls the PCIE-to-SATA bridge 2 not to be powered on.

Referring to fig. 5, the present invention provides a control method for implementing processor adaptive SATA and NVME m.2, which is applied to the structure for implementing processor adaptive SATA and NVME m.2 in embodiment 2, and includes:

the control module acquires a signal of the SEL port and responds to the signal to control the first port to be connected with the third port or the second port to be connected with the third port; specifically, the first port is controlled to be connected with the third port if the signal is a first signal, and the second port is controlled to be connected with the third port if the signal is a second signal.

Generating a corresponding control signal in response to the signal, and transmitting the control signal to a power supply unit; specifically, when the signal is a first signal, a control signal 1 is generated, and when the signal is a second signal, a control signal 2 is generated.

The power supply unit responds to the control signal to control whether the PCIE-SATA bridge is powered on or not, specifically, when the control signal is a control signal 1, the power supply unit supplies power to the PCIE-SATA bridge, and when the control signal is a control signal 2, the power supply unit does not supply power to the PCIE-SATA bridge.

The invention also provides a medium for realizing the processor self-adaptive SATA and NVME M.2, which stores at least one instruction and executes the instruction to realize the control method for realizing the processor self-adaptive SATA and NVME M.2.

The invention provides a structure, a method and a medium for realizing processor self-adaption SATA and NVME M.2.for a processor which does not support SATA, the invention connects the processor and a SATA M.2 hard disk through a PCIE-to-SATA bridge 2, and realizes that the processor which does not support SATA is connected with the SATA M.2 hard disk; according to different signals of the SATA M.2 hard disk and the NVME M.2 hard disk to the channel selection unit 3, the channel selection unit 3 selects to connect the M.2 connector 4 with the PCIE-to-SATA bridge 2 according to the signals, or the M.2 connector 4 is connected with the processor 1 through a PCIE X2 channel, so that the SATA M.2 hard disk and the NVME M.2 hard disk can be self-adapted, the flexibility of hard disk configuration is improved, and the damage of a board card caused by the error of the hard disk is avoided. The NVME M.2 hard disk is connected through the PCIE channel of the X2, and the speed of the NVME M.2 hard disk is fully exerted.

In addition, the channel selection unit 3 generates a control signal to be sent to the power supply unit 6 according to the signal, and the power supply unit 6 controls whether the PCIE-to-SATA bridge 2 is powered on or not according to the control signal; when the NVME M.2 hard disk is plugged, the PCIE-to-SATA bridge 2 is not powered on, and when the SATA M.2 hard disk is plugged, the PCIE-to-SATA bridge 2 is powered on, so that electric energy is saved.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:转接盒及VR设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!