A bus interface circuit with variable chip identifier and implementation method thereof

By using the VIO detection module and the MIPI module to exchange power signals and data signals in the bus interface circuit of the RF front-end chip, changing the default identifier of the chip, solving the problem of difficult identification of the RF front-end chip in multi-chip application scenarios, improving the problem of improving the The flexibility and scalability of the system are reduced, reducing design complexity and cost.

CN118467431BActive Publication Date: 2024-11-08VANCHIP TIANJIN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410919191.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-08
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

In multi-chip application scenarios, RF front-end chips require independent identifiers for system management and operation, but the prior art requires additional hardware support or complex software configurations, which increase design complexity and affect performance and reliability.

Method used

By introducing a VIO detection module and a MIPI module into the bus interface circuit, the VIO_SEL signal is generated by the exchange of power signals and data signals, the exchange between the power signals and data signals is triggered, and the USID_SEL signal is generated, thereby changing the default identifier of the chip.

Benefits of technology

It realizes flexibility and scalability of different products and subordinate identifiers while keeping the RF front-end chip module area small, reducing design complexity and cost, and meeting the needs of independent addressing and control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467431B_ABST
    Figure CN118467431B_ABST
Patent Text Reader

Abstract

The present invention discloses a bus interface circuit with a variable chip identifier and an implementation method thereof. The bus interface circuit includes a master RF front-end chip and a slave RF front-end chip, wherein the slave RF front-end chip includes a VIO detection module and a MIPI module; wherein the VIO detection module and the master RF front-end chip are connected and exchanged with each other for power signals and data signals, and the VIO detection module generates a corresponding VIO_SEL signal according to the power signal and the data signal, and inputs the VIO_SEL signal into the MIPI module; when the chip default identifier needs to be changed, the VIO_SEL signal is used to trigger the exchange between the power signal and the data signal, and the VIO_SEL signal generates a USID_SEL signal, which is input into the MIPI module; the MIPI module generates different chip default identifiers in response to the USID_SEL signal. By using the present invention, the RF front-end chip can flexibly change its default product identifier and subordinate identifier through software or firmware configuration without adding additional hardware pins.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a bus interface circuit capable of changing a default identifier of a chip, and also relates to a corresponding implementation method, belonging to the technical field of digital buses. Background Art

[0002] With the rapid development of wireless communication technology, RF front-end chips are becoming more and more widely used in smartphones and mobile devices. RF front-end chips usually include key components such as power amplifiers, low-noise amplifiers, filters, and antenna switches, which work together to ensure the effective transmission and reception of wireless signals. However, due to the high requirements of mobile devices for miniaturization and integration, RF front-end chips face the problem of limited number of pads in design. Pads are the key interface between the internal and external circuits of the chip. The limited number means that it is becoming increasingly difficult to achieve more functions and connections in a limited space.

[0003] In multi-chip application scenarios, such as multiple-input multiple-output (MIMO) systems, multiple RF front-end chips may need to be connected on the same bus. Each chip needs to have independent control and identification so that the system can be accurately managed and operated. This requires each chip to have a unique identifier, including a product identifier (PID) and a slave identifier (USID). PID is usually assigned during product design to distinguish between products of different models or series; while USID is a unique identifier at the bus level to distinguish between different slave devices on the same bus. In the prior art, methods to achieve this unique identification often require additional hardware support or complex software configuration, which not only increases the complexity of the design, but may also affect the performance and reliability of the system.

[0004] To solve this problem, the industry has proposed some solutions. For example, some systems use complex pin configuration and initialization processes to distinguish different RF front-end chips. In the Chinese invention patent with authorization announcement number CN103226536B, a system and method for bus interface is disclosed. It provides a mechanism for changing the address of the bus interface circuit when the input end identity is interchanged, but its configuration method is relatively complex and lacks flexibility. Summary of the invention

[0005] The primary technical problem to be solved by the present invention is to provide a bus interface circuit capable of changing a chip default identifier.

[0006] Another technical problem to be solved by the present invention is to provide a method for implementing the change of the chip default identifier by using the bus interface circuit.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] According to a first aspect of an embodiment of the present invention, there is provided a bus interface circuit with a variable chip identifier, comprising a master radio frequency front-end chip and a slave radio frequency front-end chip; wherein,

[0009] The slave RF front-end chip includes a VIO detection module and a MIPI module; wherein the VIO detection module and the master RF front-end chip perform positive connection and exchange of power signals and data signals, and the VIO detection module generates a corresponding VIO_SEL signal according to the power signal and the data signal, and inputs the signal into the MIPI module;

[0010] When the chip default identifier needs to be changed, the VIO_SEL signal is used to trigger the exchange between the power signal and the data signal, and the USID_SEL signal is generated by the VIO_SEL signal and input into the MIPI module; the MIPI module generates a different chip default identifier in response to the USID_SEL signal.

[0011] Preferably, the VIO detection module generates the VIO_SEL signal using a VIO_SEL signal generating circuit therein;

[0012] The VIO_SEL signal generating circuit includes two transistors; wherein the drain of each transistor is respectively connected to one of the power signal and the data signal; the gate is grounded through a pull-down resistor on one hand, and is connected to the USID_SEL signal on the other hand; and the sources are connected in parallel to output the VIO_SEL signal.

[0013] Preferably, in an initial state, the gate of the transistor is pulled to a low level through a pull-down resistor; when the voltage of the power signal or the data signal exceeds the threshold voltage of the transistor, the corresponding transistor is turned on to generate a corresponding VIO_SEL signal, thereby allowing the power signal or the data signal to be identified and responded to.

[0014] Preferably, the VIO detection module generates the USID_SEL signal using the USID_SEL signal generating circuit therein;

[0015] The USID_SEL signal generating circuit includes two D flip-flops and two AND gate circuits; wherein the VIO_SEL signal generates a POR signal through a power-on reset circuit, triggering the D flip-flop, resulting in a state change of a clear signal; the clear signal generates a corresponding USID_SEL signal through a logic AND operation.

[0016] Preferably, the USID_SEL signal includes a first signal USID1 and a second signal USID2; wherein the first signal USID1 is generated by a logic AND operation of a clear signal A_LATCH of the first D flip-flop and an inverted clear signal B_LATCHN of the second D flip-flop, and the second signal USID2 is generated by a logic AND operation of a clear signal B_LATCH of the second D flip-flop and an inverted clear signal A_LATCHN of the first D flip-flop.

[0017] Preferably, the D flip-flop is replaced by a latch, an SR flip-flop or a JK flip-flop.

[0018] Preferably, for the RF front-end chip that requires a readback function, when a write operation is performed on the MIPI bus, the Sdata_i signal is processed by a shaping circuit and transmitted to the slave RF front-end chip, and the Sdata_oen signal is set high as a write enable; when a write operation is performed on the MIPI bus, the Sdata_oen signal is set low, the path of the Sdata_i signal is closed, and the output path of the Sdata_o signal is activated to allow the slave RF front-end chip to send data directly to the master RF front-end chip through the readback circuit.

[0019] Preferably, for the RF front-end chip that does not require the readback function, the Sdata_o signal line and the Sdata_oen signal control logic are omitted, and Sdata_i is used as a unidirectional input signal and is directly output to the RF front-end chip.

[0020] According to a second aspect of an embodiment of the present invention, there is provided a method for implementing changing a chip default identifier by using the above bus interface circuit, comprising the following steps:

[0021] (1) The system starts, and the power signal and data signal are initialized to low level;

[0022] (2) The VIO detection module starts to monitor the power signal and the data signal input externally, and generates a corresponding VIO_SEL signal;

[0023] (3) If the chip default identifier needs to be changed, the VIO_SEL signal is used to trigger the exchange between the power signal and the data signal; wherein the VIO_SEL signal generates a POR signal through a power-on reset circuit, triggers a D flip-flop, and generates a USID_SEL signal;

[0024] (4) The MIPI module generates different chip default identifiers in response to different combinations of the USID_SEL signal.

[0025] Preferably, in step (3), the USID_SEL signal is dynamically generated by a D flip-flop and an AND gate circuit according to the VIO_SEL signal, the POR signal and its inverted signal PORN, and is divided into a first signal USID1 and a second signal USID2.

[0026] Preferably, in step (4), the MIPI module generates corresponding product identifiers and subordinate identifiers in response to different combinations of the first signal USID1 and the second signal USID2.

[0027] Compared with the prior art, the bus interface circuit and implementation method provided in the embodiment of the present invention can realize different product identifiers and subordinate identifiers for the same product while maintaining a small module area of ​​the RF front-end chip by exchanging power signals and data signals, thereby significantly improving the flexibility and scalability of the RF front-end system. In addition, the present invention also reduces the design complexity, shortens the design and testing period, and reduces costs. Utilizing the present invention, the RF front-end chip can change its default product identifier and subordinate identifier through flexible configuration on software or firmware, effectively meeting the needs of independent addressing and control of the RF front-end chip in multi-chip application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the bus architecture specified by the MIPI protocol;

[0029] Figure 2 A simplified diagram of the architecture of a bus interface circuit with a variable chip identifier provided by the present invention;

[0030] Figure 3 A detailed interface diagram of a bus interface circuit with a variable chip identifier provided by the present invention;

[0031] Figure 4 A schematic diagram of a VIO_SEL signal generating circuit in an embodiment of the present invention;

[0032] Figure 5 This is a schematic diagram of a USID_SEL signal generating circuit in an embodiment of the present invention;

[0033] Figure 6 A schematic diagram of a Sdata_Driver circuit in an embodiment of the present invention;

[0034] Figure 7 A schematic diagram of the logical relationship determination area of ​​the VIO signal and the Sdata signal;

[0035] Figure 8 A flow chart of a method for implementing the present invention of changing a chip default identifier by using the above bus interface circuit;

[0036] Fig. 9 The present invention is a schematic diagram of an electronic device using the bus interface circuit with a variable chip identifier provided by the present invention. DETAILED DESCRIPTION

[0037] The technical content of the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0038] Figure 1 The bus architecture specified by the MIPI protocol is shown. In this architecture, a radio frequency integrated circuit (RF IC) 100 and multiple front-end modules (FEM) 110 are included. Among them, the RF IC 100 is the center of the entire RF front-end system, responsible for processing the main transceiver tasks of wireless signals. Inside the RF IC 100, a master RF front-end chip as a Master (the master chip in the master-slave architecture) is integrated, which is responsible for generating control instructions and sending these instructions through the bus architecture. The bus architecture includes a clock signal line and a data line, which are the bridges for communication between the RF IC and the front-end module. The RF IC 100 provides a clock signal (Sclk) through the Sclk line to ensure data synchronization; and sends a data signal (Sdata) through the Sdata line to transmit specific control instructions. In addition, VIO is a power signal, and the RF IC 100 provides power to each front-end module 110 through it.

[0039] The front-end module 110 that works in conjunction with it integrates a slave RF front-end chip as a Slave (a slave chip in a master-slave architecture) to receive control instructions from the Master. Each front-end module 110 has a unique ID information, namely a slave identifier (USID), which allows the RF integrated circuit 100 to identify and control the corresponding front-end module through a specific USID. In this way, even if multiple front-end modules are connected to the same bus, the Master can independently address and control them through their respective USIDs.

[0040] exist Figure 1In the bus architecture shown, the communication between the RF integrated circuit 100 and the front-end module 110 is completed through control instructions, which include the configuration and control of each component in the front-end module, such as adjusting the working state of the power amplifier, switching the antenna switch, or changing the frequency of the filter. In this way, complex RF signal paths can be flexibly managed to meet the requirements of modern mobile communications for high performance and high efficiency. In addition, since each RF front-end chip as a Slave in the front-end module 110 has a different USID, the main RF front-end chip as the Master can accurately control each front-end module and realize fine management of the RF front-end network. However, the chip identifiers (including but not limited to PID, USID, etc.) in the MIPI protocol are fixed by default, which is not conducive to flexible use in multi-chip application scenarios.

[0041] To this end, the embodiment of the present invention innovatively exchanges the power signal and the data signal to change the default chip identifier, thereby meeting the needs of MIPI devices in some special scenarios. Compared with remaking a MIPI device with completely identical functions except for the chip identifier, the present invention can reduce the design and testing time and cost by half. Figures 2 to 7 The illustrated embodiment is described in detail.

[0042] Figure 2 A simplified diagram of the architecture of a bus interface circuit with a variable chip identifier provided by an embodiment of the present invention. Figure 2 It can be seen that the architecture of the bus interface circuit is similar to the bus architecture specified by the MIPI protocol. The main difference is that the power signal and data signal are positively connected and exchanged between the master RF front-end chip and each slave RF front-end chip only through the power signal line (VIO) and the data line (Sdata). Positive connection here means that the power signal VIO and the data signal Sdata are transmitted through their respective lines. Swap means swapping the lines of the two signals so that the line that was supposed to transmit the power signal VIO now transmits the data signal Sdata, and the line that originally transmitted the data signal Sdata now transmits the VIO signal. By exchanging these two signals, the configuration and control of each slave RF front-end chip can be realized, such as changing the default identifier (such as PID and USID) of the slave RF front-end chip.

[0043] Figure 3 The interface details of the bus interface circuit with a variable chip identifier provided by the embodiment of the present invention. In each slave RF front-end chip 121, a VIO detection module 111 and a MIPI module 112 are included. The connection between them and the master RF front-end chip 120 is as follows Figure 3As shown. Among them, the main task of the VIO detection module 111 is to monitor the external input VIO signal and Sdata signal. It has a detection function, can identify the VIO signal and Sdata signal, and generate a discrimination signal USID_SEL based on these signals and its own logical operation results. The USID_SEL signal is a control signal, which is then sent to the MIPI module 112 to instruct it to take corresponding actions.

[0044] According to the MIPI protocol, after the VIO signal is powered on, it takes at least 120 nanoseconds to start sending control instructions. During this time window, the Sclk signal and the Sdata signal remain in a low level state. The VIO detection module 111 uses this feature to determine which signal is powered on first, thereby identifying the VIO signal. Once the VIO signal is determined, the VIO detection module 111 can correctly process the subsequent Sdata signal to ensure that the data is received and processed by the MIPI module 112 at the correct timing.

[0045] The function of the MIPI module 112 is not limited to implementing the MIPI protocol and various functions that meet product requirements. It can also change its own ID information according to the USID_SEL signal received from the VIO detection module 111. This includes modifying the product identifier (PID) and the slave identifier (USID), so that the slave RF front-end chip can respond to specific instructions from the master RF front-end chip to achieve more flexible configuration and control. In addition, the VIO detection module 111 is also responsible for passing the Sdata signal output by the MIPI module 112 to the master RF front-end chip 120 through the internal selection path. In this way, the master RF front-end chip can send appropriate control instructions according to the status and requirements of the slave RF front-end chip to complete the precise management of the RF front-end device. The entire process ensures the coordinated communication between the master RF front-end chip and the slave RF front-end chip, meeting the requirements of the RF front-end module for efficient and flexible control.

[0046] Figure 4 FIG. 1 is a schematic diagram of a VIO_SEL signal generating circuit of the VIO detection module 111 in an embodiment of the present invention. Figure 4As shown, the VIO_SEL signal generating circuit includes: two PMOS transistors, marked as MPO and MP1, and two pull-down resistors R0 and R1, both of which have a resistance of 51KΩ. The drains of the two transistors are connected to signal A and signal B respectively; the gates are grounded through pull-down resistors R0 and R1 on the one hand, and receive output signals USID1 and USID2 on the other hand; the sources are connected in parallel to output the VIO_SEL signal to the outside. In one embodiment of the present invention, signal A represents a VIO signal received from the outside, and signal B represents an Sdata signal received from the outside, but it is not limited thereto, and signal A represents an Sdata signal received from the outside, while signal B represents a VIO signal received from the outside.

[0047] The VIO_SEL signal generation circuit is responsible for identifying the power signal VIO and the data signal Sdata, and generating the control signal USID_SEL accordingly. The USID_SEL signal includes two state bits, USID1 and USID2. The circuit uses logic-controlled transistors MPO and MP1 to distinguish between signal A (VIO signal) and signal B (Sdata signal), and determines their respective representative identities by comparing their voltage levels. Once the VIO signal is determined, the corresponding transistor (such as MPO) will be turned on, allowing current to flow, affecting the state of USID1 and USID2. In the initial state, the gate of the transistor is pulled to a low level through resistors R0 and R1 to ensure that the transistor is turned off. When the voltage of signal A or B exceeds the threshold voltage of the transistor, the corresponding transistor will be turned on. This will change the level state of USID1 or USID2, allowing the VIO signal and Sdata signal to be identified and responded to.

[0048] Figure 5 The schematic diagram of the USID_SEL signal generation circuit in the VIO detection module 111 is shown in FIG. The core of the circuit is two D flip-flops (DFF_A and DFF_B), which are triggered by clock signals (CP and CPN) and two reset signals (A_LATCH and B_LATCH). In addition, the circuit also includes two inverters (PORN and A_LATCHN / B_LATCHN) to provide the required inverted signals. VSS and VSS_DIG in the circuit represent analog ground and digital ground, respectively, to ensure stable operation of the circuit and correct signal reference.

[0049] In the initial state, the USID_SEL signals (USID1 and USID2) are in a high impedance state, which means they are not activated yet. The initial voltages of signal A and signal B are 0 volts, which represent the VIO signal and Sdata signal from the main RF front-end chip 120.

[0050] When signal A (representing the VIO signal) starts to rise to 1.8V, the VIO_SEL signal also rises. The VIO_SEL signal generates a rising edge trigger signal through a power-on reset (POR) circuit. This rising edge triggers the D flip-flop, causing the A_LATCH and B_LATCH states to change. Specifically, when VIO_SEL rises to the threshold voltage of the MOS tube in the D flip-flop, DFF_A and DFF_B are triggered, A_LATCH becomes high, B_LATCH becomes low, and vice versa.

[0051] The state of A_LATCH and B_LATCH determines the value of USID1 and USID2. USID1 is generated by A_LATCH and B_LATCHN through a logical AND operation, while USID2 is generated by B_LATCH and A_LATCHN. This means that if A_LATCH is high and B_LATCHN (i.e., the inverse of B_LATCH) is also high, USID1 will be high; if B_LATCH is low and A_LATCHN (i.e., the inverse of A_LATCH) is also low, USID2 will be low.

[0052] In addition, the circuit includes two pull-down resistors R0 and R1 (51KΩ), which provide an initial low level for the gates of transistors MP0 and MP1, ensuring that the transistors are in the off state when there is no signal. The conduction state of transistors MP0 and MP1 determines the final voltage of the VIO_SEL signal, making it consistent with signal A.

[0053] It should be noted that the D flip-flop in the above circuit can also be replaced by a latch, SR flip-flop, or JK flip-flop. In some cases, this helps reduce circuit complexity and cost. USID1 and USID2 can be combined into a single USID signal. This simplification can reduce the number of circuit components required while maintaining the necessary functionality.

[0054] In summary, Figure 5 The circuit design in achieves accurate identification and response to the VIO signal and the Sdata signal through sophisticated logic control and signal processing, thereby generating a USID_SEL signal that controls the behavior of the MIPI module 112.

[0055] Figure 6 1 is a schematic diagram of the Sdata_Driver circuit in an embodiment of the present invention. The circuit enables the main RF front-end chip 120 to flexibly control the flow of data signals and send data to the correct path according to the state of the MIPI module 112 and the selection of the USID_SEL signal.

[0056] The Sdata_Driver circuit is responsible for selectively routing the Sdata_o signal according to the USID_SEL signal. In this circuit, the VIO_SEL signal is used to control the routing of the data signal, and the sdata_oen signal is used as an enable signal to control the output of the data. Specifically, the circuit receives the Sdata_o signal from the MIPI module 112, which is generated in response to the control instruction of the main RF front-end chip 120. The Sdata_i in the circuit is the result of the logic AND operation of signals A and B, which represents the data signal input to the MIPI module 112. When the MIPI module 112 outputs the Sdata_o signal according to the USID_SEL signal, it will simultaneously output a low-level sdata_oen signal to the Sdata_Driver circuit.

[0057] The core of the Sdata_Driver circuit is a multiplexer (or selector), which determines whether to output Sdata_o to signal A or signal B based on the combination of the USID_SEL signal and the sdata_oen signal. If sdata_oen is low, it indicates that the MIPI module 112 is ready to send data, and the Sdata_Driver will select the output path based on the state of the USID_SEL signal. If the USID_SEL signal indicates output to signal A, Sdata_o will be routed to signal A; if the USID_SEL signal indicates output to signal B, Sdata_o will be routed to signal B.

[0058] In addition, the Sdata_Driver circuit also includes a VSS_DIG ground line, which provides a common reference level for the bus interface circuit. The VIO_SEL signal can also be used as an additional control signal to ensure proper routing between power signals and data signals.

[0059] Optionally, in one embodiment of the present invention, for the RF front-end chip that requires a readback function, it is necessary to ensure bidirectional transmission and flexibility of data. Therefore, the design of the Sdata signal allows bidirectional data transmission. When the MIPI bus performs a write operation, Sdata_i is used as a data input signal, which is processed by a shaping circuit and transmitted to the slave RF front-end chip as a Slave. At the same time, the Sdata_oen signal is set high as a write enable to ensure that the data can be received by the slave RF front-end chip. Relatively speaking, when performing a read operation, the Sdata_oen signal is set low, the path of the Sdata_i signal is closed, and the output path of the Sdata_o signal is activated, allowing the slave RF front-end chip to send data directly to the master RF front-end chip as a Master through a readback circuit. This mechanism requires the Sdata_Driver circuit to dynamically route the Sdata_o signal to the correct path based on the Sdata_oen and USID_SEL signals.

[0060] In another embodiment of the present invention, for RF front-end chips that do not require a readback function, a relatively simplified technical solution can be adopted. In this solution, the portion of the Sdata_Driver circuit related to the Sdata_o signal output is omitted, including omitting the Sdata_o signal line and the Sdata_oen signal control logic. In this way, the Sdata_i signal no longer requires the enablement of the Sdata_oen signal, but is directly output to the slave RF front-end chip as a Slave as a continuous unidirectional input signal. This solution simplifies the circuits and signal lines required for readback, which not only simplifies the circuit design, but also reduces costs. However, the above solution is only applicable to application scenarios that only require unidirectional data transmission. For products that require bidirectional data transmission, the complete Sdata signal transmission mechanism must be retained.

[0061] Figure 7 The logic relationship determination area of ​​the VIO signal and the Sdata signal is displayed, which is used to determine which of signal A and signal B is the VIO signal and which is the Sdata signal.

[0062] In the initial state, the voltages of both signals A and B are 0 volts. When signal A (representing the VIO signal) starts to slowly rise to the 1.8V voltage domain, the VIO_SEL signal also rises. The rise of the VIO_SEL signal triggers a power-on reset (POR) circuit, which generates a POR signal, which indicates that the system is powered on and ready to start operation.

[0063] The rise of the VIO_SEL signal is also associated with two key logic signals: A_LATCH and B_LATCH. A_LATCH captures the state of signal A, while B_LATCH captures the state of signal B. These two signals, along with their inverted signals (A_LATCHN and B_LATCHN), are used to generate the two USID_SEL signals: USID1 and USID2. These signals then control the state of transistors MP0 and MP1, which in turn affects the final voltage of the VIO_SEL signal.

[0064] Specifically, when the VIO_SEL signal rises to the threshold voltage of the MOS tube in the D flip-flop, the D flip-flops DFF_A and DFF_B are triggered. This causes the A_LATCH signal to become high and the B_LATCH signal to become low, or vice versa, depending on the relative time of signals A and B. Then, USID1 is generated by the A_LATCH signal and the B_LATCHN signal through a logical AND operation, while USID2 is generated by the B_LATCH signal and the A_LATCHN signal. If the A_LATCH signal is high and the B_LATCHN signal is also high, USID1 will be high; if the B_LATCH signal is low and the A_LATCHN signal is also low, USID2 will be low.

[0065] The body diode of transistor MP0 is turned on when signal A rises, so that the VIO_SEL signal is consistent with the voltage of signal A. As the VIO_SEL signal rises, the gate-to-source voltage (|VGS|) of MP0 increases, causing transistor MP0 to further turn on. At the same time, transistor MP1 is turned off because |VGS| is 0 volts, so the state of signal B (representing the Sdata signal) does not affect the output of the VIO_SEL signal.

[0066] Finally, the VIO_SEL signal ensures that the VIO signal and the Sdata signal can be correctly identified and processed, and provides necessary signal status information for subsequent MIPI module 112 operations.

[0067] Based on the above bus interface circuit, the embodiment of the present invention further provides a method for implementing the above bus interface circuit to change the default identifier of a chip. Figure 8 As shown, the implementation method at least includes the following steps:

[0068] (1) When the system starts, the power signal VIO and the data signal Sdata are initialized to low level;

[0069] (2) The VIO detection module 111 starts to monitor the external input VIO signal and Sdata signal and generates a corresponding VIO_SEL signal;

[0070] Specifically, once the VIO signal starts to rise, the VIO detection module 111 identifies the VIO signal and generates a corresponding VIO_SEL signal.

[0071] (3) If the chip default identifier (such as PID and USID) needs to be changed, the VIO_SEL signal is used to trigger the exchange operation so that the line that originally transmitted the VIO signal now transmits the Sdata signal, and vice versa; wherein the VIO_SEL signal generates a rising edge trigger signal through the POR circuit, which triggers the D flip-flop to generate the USID_SEL signal;

[0072] (4) The MIPI module 112 generates different chip default identifiers in response to different combinations of the USID_SEL signal.

[0073] Once the USID_SEL signal is stable, the master RF front-end chip and each slave RF front-end chip will operate according to the new configuration. At this time, the default identifier of the chip has been changed.

[0074] Next, combine Figures 2 to 7 The interaction process between the main RF front-end chip 120, the VIO detection module 111 and the MIPI module 112 is shown in detail to explain the specific steps of the above implementation method:

[0075] First, the main RF front-end chip 120 outputs the VIO signal and the Sdata signal. Here, it is assumed that signal A represents the VIO signal and signal B represents the Sdata signal, and both are initially 0 volts. The VIO_SEL signal is controlled by the A signal. When the A signal rises to 1.8V, the VIO_SEL signal also rises. The VIO_SEL signal generates a POR signal through a power-on reset (POR) circuit. Figure 4 In the example, two transistors MP0 and MP1 receive a low level through pull-down resistors R0 and R1. When the VIO signal (signal A) rises, transistor MP0 is turned on, and the voltage of the VIO_SEL signal rises to be consistent with signal A. At this time, the USID_SEL signal is dynamically generated by the D flip-flop and the AND gate circuit according to the VIO_SEL signal, the POR signal and its inverted signal PORN, and is divided into two signals USID1 and USID2. These signals control the on / off state of transistors MP0 and MP1, and ultimately make the VIO_SEL voltage consistent with signal A.

[0076] Secondly, signal A and signal B generate Sdata_i signal through logic AND operation, which is then sent to MIPI module 112. MIPI module 112 responds to the corresponding read instruction according to USID_SEL signal, and generates Sdata_o signal to output to Sdata_Driver circuit. Sdata_Driver circuit decides to output Sdata_o signal to signal A or signal B according to USID_SEL signal and sdata_oen signal. When VIO is high, Sdata signal generates Sdata_i signal through shaping circuit so that MIPI module 112 can correctly identify and respond.

[0077] As the VIO signal (signal A) rises to 1.8V, the VIO_SEL signal also rises to the threshold voltage of the MOS tube in the D flip-flop, triggering DFF_A and DFF_B. This results in the generation of USID1 and USID2 signals, which are consistent with the VIO_SEL signal and ground respectively. USID1 is generated by A_LATCH and B_LATCHN through a logical AND operation, while USID2 is generated by B_LATCH and A_LATCHN. As long as signal A remains powered on, the POR signal will remain high, thereby stabilizing the USID_SEL signal.

[0078] Then, the MIPI module 112 generates different PIDs and USIDs according to different combinations of the USID_SEL signal. Figure 7 As shown, when USID1 is 0 and USID2 is 1, MIPI module 112 responds with a set of PID and USID; vice versa. For example, if PID is composed of a 6-bit basic code and two bits of USID1 and USID2, different PID and USID can be obtained according to different states of USID1 and USID2.

[0079] In one embodiment of the present invention, it is assumed that the PID consists of a 6-bit basic code and a 2-bit USID status bit. In the initial state, both USID1 and USID2 are inactive. At this time, if USID1 becomes 0 and USID2 becomes 1, the MIPI module 112 will respond to this specific USID combination. For example, if the basic code is 100011, then combined with USID1=0 and USID2=1, the final PID may be expressed as 8'b100011, and the USID may be expressed as 4'b00 (assuming that the first two bits of the USID are fixed). If the states of USID1 and USID2 are interchanged, that is, USID1 becomes 1 and USID2 becomes 0, the MIPI module 112 will recognize a different combination and respond to another set of PID and USID. In this case, the basic code 100011 combined with USID1=1 and USID2=0, the final PID may become 8'b100111, and the USID may become 4'b01.

[0080] In another application scenario, if more detailed distinction is needed between multiple RF front-end chips, more coding bits may be used. For example, if the PID consists of 8-bit codes, 6 of which are basic codes and the remaining 2 are USID status bits. When USID1 and USID2 are both 1, combined with the basic code 101010, the PID may be expressed as 8'b1010101 and the USID may be expressed as 4'b11, which is suitable for RF front-end chips with specific configurations. Different PID codes may be required to distinguish RF front-end chips with different hardware versions. Assuming the basic code is 110100, when USID1 is 0 and USID2 is 1, PID 8'b1101000 and USID 4'b01 can be assigned to one hardware version; and when USID1 is 1 and USID2 is 0, PID 8'b1101100 and USID 4'b10 can be assigned to another hardware version.

[0081] The working principle of the bus interface circuit with a variable chip identifier and its implementation method provided by the present invention is described in detail above. Based on the above-mentioned bus interface circuit with a variable chip identifier, an embodiment of the present invention further provides an electronic device, which includes the above-mentioned bus interface circuit with a variable chip identifier. As an important component of the radio frequency communication component, the bus interface circuit is used to implement communication control in the transmission and / or reception related components. The electronic device mentioned here refers to a computer device that can be used in a mobile environment and supports multiple communication formats such as GSM, EDGE, CDMA, TD_SCDMA, WCDMA, TDD_LTE, FDD_LTE, NR, etc., including mobile phones, laptops, tablet computers, car computers, etc. In addition, the technical solution provided by the present invention is also applicable to other occasions where bus interface circuits are applied, such as communication base stations, smart connected vehicles, etc.

[0082] like Fig. 9 As shown, the electronic device includes at least a processor, a memory and a communication component, and may further include a sensor component, a power component, a multimedia component and an input / output interface according to actual needs. Among them, the memory, communication component, sensor component, power component, multimedia component and input / output interface are all connected to the processor. The memory may be a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, etc., and the processor may be a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a digital signal processing (DSP) chip, etc. Other communication components, sensor components, power components, multimedia components, etc. can all be implemented using general components, which will not be described in detail here.

[0083] It should be noted that the various technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the various technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0084] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0085] The above is a detailed description of the bus interface circuit with a variable chip identifier and its implementation method provided by the present invention. For those skilled in the art, any obvious changes made to it without departing from the essence of the present invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal responsibilities.

Claims

1. A bus interface circuit with a variable chip identifier, comprising a master radio frequency front-end chip and a slave radio frequency front-end chip, Features: The slave RF front-end chip includes a VIO detection module and a MIPI module, and the VIO detection module includes a VIO_SEL signal generation circuit and a USID_SEL signal generation circuit; The VIO_SEL signal generating circuit includes two transistors; wherein the drain of each transistor is respectively connected to one of the power signal and the data signal; the gate is connected to the ground through a pull-down resistor on one hand, and is connected to the USID_SEL signal on the other hand; the source electrodes are connected in parallel to output the VIO_SEL signal, which is input to the MIPI module; The USID_SEL signal generating circuit includes two D flip-flops; wherein the D terminals of the D flip-flops are respectively connected to one of the power signal and the data signal; the VIO_SEL signal generates a POR signal through a power-on reset circuit and inputs the POR signal to the CP terminal of the D flip-flop; the D flip-flop is triggered to generate a USID_SEL signal and inputs the USID_SEL signal to the MIPI module; The VIO detection module and the main RF front-end chip perform positive connection and exchange of the power signal and the data signal, wherein the positive connection means that the power signal and the data signal are transmitted through their respective lines, and the exchange means that the lines of the power signal and the data signal are interchanged; When the chip default identifier needs to be changed, the VIO_SEL signal is used to trigger the exchange between the power signal and the data signal; the VIO detection module monitors the externally input power signal and the data signal to generate a corresponding VIO_SEL signal; and the MIPI module generates a different chip default identifier in response to the USID_SEL signal.

2. The bus interface circuit according to claim 1, Features: In the initial state, the gate of the transistor is pulled to a low level through a pull-down resistor; when the voltage of the power signal or the data signal exceeds the threshold voltage of the transistor, the corresponding transistor is turned on to generate the VIO_SEL signal, thereby allowing the power signal or the data signal to be identified and responded to.

3. The bus interface circuit according to claim 1, Features: The USID_SEL signal generating circuit further includes two AND gate circuits; the D flip-flop outputs a clear signal, and the clear signal generates a corresponding USID_SEL signal through a logic AND operation.

4. The bus interface circuit as claimed in claim 3, Features: The USID_SEL signal includes a first signal (USID1) and a second signal (USID2); wherein the first signal (USID1) is generated by a logic AND operation of a clear signal (A_LATCH) of a first D flip-flop and an inverted clear signal (B_LATCHN) of a second D flip-flop, and the second signal (USID2) is generated by a logic AND operation of a clear signal (B_LATCH) of a second D flip-flop and an inverted clear signal (A_LATCHN) of the first D flip-flop.

5. The bus interface circuit as claimed in claim 3, Features: The D flip-flop is replaced by a latch, an SR flip-flop or a JK flip-flop.

6. The bus interface circuit according to claim 1, Features: For RF front-end chips that require a readback function, when a write operation is performed on the MIPI bus, the Sdata_i signal is processed by the shaping circuit and transmitted to the slave RF front-end chip, and the Sdata_oen signal is set high as a write enable; when a write operation is performed on the MIPI bus, the Sdata_oen signal is set low, the path of the Sdata_i signal is closed, and the output path of the Sdata_o signal is activated to allow the slave RF front-end chip to send data directly to the master RF front-end chip through the readback circuit.

7. The bus interface circuit according to claim 1, Features: For RF front-end chips that do not require a readback function, the Sdata_o signal line and Sdata_oen signal control logic are omitted, and Sdata_i is used as a unidirectional input signal and is directly output to the RF front-end chip.

8. A method for changing a chip default identifier by using the bus interface circuit according to any one of claims 1 to 7, Features The steps include: (1) The system starts, and the power signal and data signal are initialized to a low level; (2) The VIO detection module starts to monitor the power signal and the data signal input externally, and generates a corresponding VIO_SEL signal; (3) If the chip default identifier needs to be changed, the VIO_SEL signal is used to trigger the exchange between the power signal and the data signal; wherein the VIO_SEL signal generates a POR signal through a power-on reset circuit, triggers a D flip-flop, and generates a USID_SEL signal; (4) The MIPI module generates different chip default identifiers in response to different combinations of the USID_SEL signal.

9. The implementation method as claimed in claim 8, Features: In the step (3), the USID_SEL signal is dynamically generated by a D flip-flop and an AND gate circuit according to the VIO_SEL signal, the POR signal and its inverted signal PORN, and is divided into a first signal (USID1) and a second signal (USID2).

10. The implementation method according to claim 9, Features: In the step (4), the MIPI module generates corresponding product identifiers and subordinate identifiers in response to different combinations of the first signal (USID1) and the second signal (USID2).

11. An electronic device, Features A bus interface circuit with a variable chip identifier comprising any one of claims 1 to 7.