CIRCUIT, MIXER AND ELECTRONIC DEVICE

DE602019073095T2Active Publication Date: 2025-07-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
DE602019073095
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-04-30
Publication Date
2025-07-23
Estimated Expiration
2039-04-30

AI Technical Summary

Technical Problem

Existing mixers in electronic communications systems suffer from poor linearity, particularly due to inconsistent gate parasitic capacitances of MOS transistors, which are not effectively suppressed, leading to interference and reduced performance.

Method used

The proposed switch circuit and mixer designs utilize symmetrical arrangements of MOS transistors with equal gate lead lengths and parasitic capacitances, ensuring consistent gate parasitic capacitances by aligning and connecting transistors in a symmetrical layout, reducing lead lengths, and using separate deep N-wells for transistor groups to improve isolation.

Benefits of technology

This approach enhances the linearity of the mixer by ensuring consistent parasitic capacitances and reduced interference, thereby improving signal processing efficiency and reducing costs.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] This application relates to the field of electronic technologies, and in particular, to a switch circuit, a mixer, and an electronic device.BACKGROUND

[0002] In an electronic communications system, a mixer is a core circuit responsible for a spectrum shift function in a transceiver, and is widely used in a microwave wireless communications system, a radar system, and a measurement system. Technical indicators of the mixer mainly include an intermediate frequency / radio frequency band, a frequency conversion gain, a noise factor, linearity, isolation between ports, a port standing wave ratio, power consumption, and the like.

[0003] The mixer is located at a position with relatively high radio frequency signal amplitude in a receiver, and many interfering signals are not effectively suppressed. Therefore, linearity is a very important (even the most important) indicator. An input second-order intercept point (IIP2) is one of important indicators for measuring linearity of the mixer. The IIP2 is a measure of linearity that quantizes second-order distortion generated by nonlinearity of circuits (for example, an amplifier and a mixer). Currently, linearity of the mixer is relatively poor, and a mixer with better linearity needs to be studied.

[0004] Further, US 2005 / 266821 A refers to a mixer including an input amplifier and a barrel shifter. The input amplifier has an input for receiving an input signal, and first through fourth output terminals respectively providing first through fourth current signals. The barrel shifter has first through fourth input terminals for respectively receiving the first through fourth current signals, first through fourth control terminals for respectively receiving first through fourth clock signals, and first through fourth output terminals for respectively providing positive and negative in-phase output signals and positive and negative quadrature output signals.

[0005] Further, US 5,060,298 A refers to a monolithic double balanced mixer with a high third order intercept point employing a local oscillator signal, which is applied to the input port of a first active distributed element balun. The balun has two outputs, which are applied via amplifiers to respective inputs of a double balanced resistive FET quad mixer. The double balanced resistive FET quad mixer employs four MESFETs arranged in a ring configuration. Two additional inputs to the quad mixer are obtained from a second balun, which is also of an active distributed element configuration and receives at the input the RF signal. The quad mixer operates to produce mixing of the LO and RF signals

[0006] at the outputs thereof. The outputs of the quad mixer are applied to a combiner which operates to combine the outputs of the quad mixer to produce at the combiner output an IF signal. The combiner can be a common gate combiner configuration with active loads or a distributed configuration employing FET devices in a distributed transmission line type of circuit.SUMMARY

[0007] The above mentioned problem is solved by the subject matter of the independent claims. Further implementation forms are provided in the dependent claims. Embodiments of this application provide a switch circuit, a mixer, and an electronic device, to improve linearity of components. According to a first aspect, an embodiment of this application provides a switch circuit. The switch circuit includes a first metal oxide semiconductor (MOS) transistor, a second MOS transistor, a third MOS transistor, and a fourth MOS transistor, both a gate of the first MOS transistor and a gate of the fourth MOS transistor are connected to a first port, and both a gate of the second MOS transistor and a gate of the third MOS transistor are connected to a second port; and a lead between the gate of the first MOS transistor and the first port, a lead between the gate of the second MOS transistor and the second port, a lead between the gate of the third MOS transistor and the second port, and a lead between the gate of the fourth MOS transistor and the first port all have an equal length.

[0008] In this embodiment of this application, traces of gates of all MOS transistors in the switch circuit have a same length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0009] In this embodiment, a first lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor passes through a first position, a second lead between the gate of the second MOS transistor and the gate of the third MOS transistor passes through a second position, and the first position and the second position are same positions at different layers in the switch circuit; and a lead from the gate of the first MOS transistor to the first position, a lead from the gate of the second MOS transistor to the second position, a lead from the gate of the third MOS transistor to the second position, and a lead from the gate of the fourth MOS transistor to the first position have an equal length.

[0010] In this embodiment, leads from the gates of all the MOS transistors in the switch circuit to same positions at different layers in the switch circuit have an equal length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0011] In this embodiment, the first MOS transistor and the third MOS transistor are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor and the fourth MOS transistor are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor and the second MOS transistor are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor and the fourth MOS transistor are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other.

[0012] In this embodiment, all the MOS transistors in the switch circuit are symmetrically arranged, so that parasitic capacitances of all the MOS transistors are compatible. This improves linearity of the mixer.

[0013] In this embodiment, one end of a third lead is connected to a third position of the first lead, and the other end of the third lead is connected to the first port; one end of a fourth lead is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second port; the third position and the fourth position are symmetrical along the first symmetry axis; and the switch circuit is symmetrical along the first symmetry axis.

[0014] In this embodiment, the third lead and the fourth lead are symmetrical along the first symmetry axis, so that the traces of the gates of all the MOS transistors may be symmetrical.

[0015] In an optional implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected to form the first lead, the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected to form the second lead, and both the first lead and the second lead are straight lines.

[0016] In this embodiment, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected, and the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected. This can effectively reduce lengths of leads. Therefore, costs are relatively low.

[0017] In an optional implementation, a part of the third lead is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the switch circuit.

[0018] In this implementation, the traces of the gates of all the MOS transistors are strictly symmetrical, so that gate parasitic capacitances of all the MOS transistors are consistent.

[0019] In an optional implementation, a first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

[0020] In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit. This can effectively reduce mutual impact between leads.

[0021] In an optional implementation, the third lead is located on one side of the first symmetry axis, and the fourth lead is located on the other side of the first symmetry axis; a first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, and a second part of the third lead is parallel to the first symmetry axis; and a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit, and a second part of the fourth lead is parallel to the first symmetry axis.

[0022] In this embodiment, the third lead and the fourth lead are not crossed but are directly connected to the first port and the second port respectively. In this way, routing is simple.

[0023] In this embodiment, the third position and the first position are same positions, and the fourth position and the second position are same positions.

[0024] According to a second aspect, an embodiment of this application provides another switch circuit. The switch circuit includes a first metal oxide semiconductor MOS transistor, a second MOS transistor, a third MOS transistor, and a fourth MOS transistor, both a gate of the first MOS transistor and a gate of the fourth MOS transistor are connected to a first port, and both a gate of the second MOS transistor and a gate of the third MOS transistor are connected to a second port; and both a lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor and a lead between the gate of the second MOS transistor and the gate of the third MOS transistor pass through same positions at different layers in the switch circuit.

[0025] In this embodiment of this application, both the lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor and the lead between the gate of the second MOS transistor and the gate of the third MOS transistor pass through same positions at different layers in the switch circuit. This can improve linearity of the switch circuit.

[0026] In an optional implementation, a lead between the gate of the first MOS transistor and the first port, a lead between the gate of the second MOS transistor and the second port, a lead between the gate of the third MOS transistor and the second port, and a lead between the gate of the fourth MOS transistor and the first port all have an equal length.

[0027] In this implementation, traces of gates of all MOS transistors in the switch circuit have a same length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0028] In an optional implementation, a first lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor passes through a first position, a second lead between the gate of the second MOS transistor and the gate of the third MOS transistor passes through a second position, and the first position and the second position are same positions at different layers in the switch circuit; and a lead from the gate of the first MOS transistor to the first position, a lead from the gate of the second MOS transistor to the second position, a lead from the gate of the third MOS transistor to the second position, and a lead from the gate of the fourth MOS transistor to the first position have an equal length.

[0029] In this implementation, leads from the gates of all the MOS transistors in the switch circuit to same positions at different layers in the switch circuit have an equal length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0030] In an optional implementation, the first MOS transistor and the third MOS transistor are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor and the fourth MOS transistor are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor and the second MOS transistor are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor and the fourth MOS transistor are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other.

[0031] In this implementation, all the MOS transistors in the switch circuit are symmetrically arranged, so that parasitic capacitances of all the MOS transistors are compatible. This improves linearity of a mixer.

[0032] In an optional implementation, one end of a third lead is connected to a third position of the first lead, and the other end of the third lead is connected to the first port; one end of a fourth lead is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second port; the third position and the fourth position are symmetrical along the first symmetry axis; and the switch circuit is symmetrical along the first symmetry axis.

[0033] In this implementation, the third lead and the fourth lead are symmetrical along the first symmetry axis, so that the traces of the gates of all the MOS transistors may be symmetrical.

[0034] In an optional implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected to form the first lead, the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected to form the second lead, and both the first lead and the second lead are straight lines.

[0035] In this implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected, and the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected. This can effectively reduce lengths of leads.

[0036] In an optional implementation, a part of the third lead is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the switch circuit.

[0037] In this implementation, the traces of the gates of all the MOS transistors are strictly symmetrical, so that gate parasitic capacitances of all the MOS transistors are consistent.

[0038] In an optional implementation, a first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

[0039] In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit. This can effectively reduce mutual impact between leads.

[0040] In an optional implementation, the third lead is located on one side of the first symmetry axis, and the fourth lead is located on the other side of the first symmetry axis; a first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, and a second part of the third lead is parallel to the first symmetry axis; and a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit, and a second part of the fourth lead is parallel to the first symmetry axis.

[0041] In this implementation, the third lead and the fourth lead are not crossed but are directly connected to the first port and the second port respectively. In this way, routing is simple.

[0042] In an optional implementation, the third position and the first position are same positions, and the fourth position and the second position are same positions.

[0043] According to a third aspect, an embodiment of this application provides a mixer. The mixer includes a first metal oxide semiconductor MOS transistor group; the first MOS transistor group includes a first MOS transistor, a second MOS transistor, a third MOS transistor, and a fourth MOS transistor, both a gate of the first MOS transistor and a gate of the fourth MOS transistor are connected to a first local oscillator port, and both a gate of the second MOS transistor and a gate of the third MOS transistor are connected to a second local oscillator port; and a lead between the gate of the first MOS transistor and the first local oscillator port, a lead between the gate of the second MOS transistor and the second local oscillator port, a lead between the gate of the third MOS transistor and the second local oscillator port, and a lead between the gate of the fourth MOS transistor and the first local oscillator port all have an equal length.

[0044] In this embodiment of this application, traces of gates of all MOS transistors in the mixer have a same length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0045] In an optional implementation, both the first local oscillator port and the second local oscillator port are local oscillator ports for receiving a drive voltage; both a source of the first MOS transistor and a source of the second MOS transistor are connected to a first input port, and both a source of the third MOS transistor and a source of the fourth MOS transistor are connected to a second input port; and both a drain of the first MOS transistor and a drain of the third MOS transistor are connected to a first output port, and both a drain of the second MOS transistor and a drain of the fourth MOS transistor are connected to a second output port.

[0046] In an optional implementation, a first lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor passes through a first position, a second lead between the gate of the second MOS transistor and the gate of the third MOS transistor passes through a second position, and the first position and the second position are same positions at different layers in the mixer; and a lead from the gate of the first MOS transistor to the first position, a lead from the gate of the second MOS transistor to the second position, a lead from the gate of the third MOS transistor to the second position, and a lead from the gate of the fourth MOS transistor to the first position have an equal length.

[0047] In this implementation, leads from the gates of all the MOS transistors in the mixer to same positions at different layers in the mixer have an equal length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0048] In an optional implementation, the first MOS transistor and the third MOS transistor are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor and the fourth MOS transistor are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor and the second MOS transistor are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor and the fourth MOS transistor are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other.

[0049] In this implementation, all the MOS transistors in the mixer are symmetrically arranged, so that parasitic capacitances of all the MOS transistors are compatible. This improves linearity of the mixer.

[0050] In an optional implementation, one end of a third lead is connected to a third position of the first lead, and the other end of the third lead is connected to the first local oscillator port; one end of a fourth lead is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second local oscillator port; the third position and the fourth position are symmetrical along the first symmetry axis; and the mixer is symmetrical along the first symmetry axis.

[0051] In this implementation, the third lead and the fourth lead are symmetrical along the first symmetry axis, so that the traces of the gates of all the MOS transistors may be symmetrical.

[0052] In an optional implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected to form the first lead, the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected to form the second lead, and both the first lead and the second lead are straight lines.

[0053] In this implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected, and the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected. This can effectively reduce lengths of leads.

[0054] In an optional implementation, a part of the third lead is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the mixer.

[0055] In this implementation, the traces of the gates of all the MOS transistors are strictly symmetrical, so that both gate resistances and gate parasitic capacitances of all the MOS transistors are consistent.

[0056] In an optional implementation, a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

[0057] In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer. This can effectively reduce mutual impact between leads.

[0058] In an optional implementation, the third lead is located on one side of the first symmetry axis, and the fourth lead is located on the other side of the first symmetry axis; a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and a second part of the third lead is parallel to the first symmetry axis; and a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, and a second part of the fourth lead is parallel to the first symmetry axis.

[0059] In this implementation, the third lead and the fourth lead are not crossed but are directly connected to the first local oscillator port and the second local oscillator port respectively. In this way, routing is simple.

[0060] In an optional implementation, the third position and the first position are same positions, and the fourth position and the second position are same positions.

[0061] In this implementation, it can be ensured that the traces of the gates of all the MOS transistors are strictly symmetrical.

[0062] In an optional implementation, both the first input port and the second input port are connected to a low noise amplifier, and both the first output port and the second output port are connected to a transimpedance amplifier.

[0063] According to a fourth aspect, an embodiment of this application provides another mixer. The mixer includes a first metal oxide semiconductor MOS transistor group and a second MOS transistor group; the first MOS transistor group includes a first MOS transistor, a second MOS transistor, a third MOS transistor, and a fourth MOS transistor, both a gate of the first MOS transistor and a gate of the fourth MOS transistor are connected to a first local oscillator port, and both a gate of the second MOS transistor and a gate of the third MOS transistor are connected to a second local oscillator port; and a lead between the gate of the first MOS transistor and the first local oscillator port, a lead between the gate of the second MOS transistor and the second local oscillator port, a lead between the gate of the third MOS transistor and the second local oscillator port, and a lead between the gate of the fourth MOS transistor and the first local oscillator port all have an equal length.

[0064] In this embodiment of this application, traces of gates of all MOS transistors in the mixer have a same length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0065] In an optional implementation, the first MOS transistor group and the second MOS transistor group are aligned left and right and are symmetrical along a reference symmetry axis.

[0066] In this implementation, the first MOS transistor group and the second MOS transistor group are symmetrically disposed, so that parasitic capacitances of the two MOS transistor groups may be consistent. This improves linearity of the mixer.

[0067] In an optional implementation, a first lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor passes through a first position, a second lead between the gate of the second MOS transistor and the gate of the third MOS transistor passes through a second position, and the first position and the second position are same positions at different layers in the mixer; and a lead from the gate of the first MOS transistor to the first position, a lead from the gate of the second MOS transistor to the second position, a lead from the gate of the third MOS transistor to the second position, and a lead from the gate of the fourth MOS transistor to the first position have an equal length.

[0068] In this implementation, leads from the gates of all the MOS transistors in the mixer to same positions at different layers in the mixer have an equal length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0069] In an optional implementation, the first MOS transistor and the third MOS transistor are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor and the fourth MOS transistor are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor and the second MOS transistor are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor and the fourth MOS transistor are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other.

[0070] In this implementation, all the MOS transistors in the mixer are symmetrically arranged, so that parasitic capacitances of all the MOS transistors are compatible. This improves linearity of the mixer.

[0071] In an optional implementation, one end of a third lead is connected to a third position of the first lead, and the other end of the third lead is connected to the first port; one end of a fourth lead is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second port; the third position and the fourth position are symmetrical along the first symmetry axis; and the mixer is symmetrical along the first symmetry axis.

[0072] In this implementation, the third lead and the fourth lead are symmetrical along the first symmetry axis, so that the traces of the gates of all the MOS transistors may be symmetrical.

[0073] In an optional implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected to form the first lead, the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected to form the second lead, and both the first lead and the second lead are straight lines.

[0074] In this implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected, and the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected. This can effectively reduce lengths of leads.

[0075] In an optional implementation, a part of the third lead is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the mixer.

[0076] In this implementation, the traces of the gates of all the MOS transistors are strictly symmetrical, so that both gate resistances and gate parasitic capacitances of all the MOS transistors are consistent.

[0077] In an optional implementation, a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

[0078] In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer. This can effectively reduce mutual impact between leads.

[0079] In an optional implementation, the third lead is located on one side of the first symmetry axis, and the fourth lead is located on the other side of the first symmetry axis; a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and a second part of the third lead is parallel to the first symmetry axis; and a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, and a second part of the fourth lead is parallel to the first symmetry axis.

[0080] In this implementation, the third lead and the fourth lead are not crossed but are directly connected to the first local oscillator port and the second local oscillator port respectively. In this way, routing is simple.

[0081] In an optional implementation, the third position and the first position are same positions, and the fourth position and the second position are same positions.

[0082] In this implementation, it can be ensured that the traces of the gates of all the MOS transistors are strictly symmetrical.

[0083] In an optional implementation, the first MOS transistor group and the second MOS transistor group are disposed on different deep N-wells.

[0084] In this implementation, isolation between the first MOS transistor group and the second MOS transistor group is relatively high.

[0085] In an optional implementation, both the first input port and the second input port are connected to a low noise amplifier, and both the first output port and the second output port are connected to a transimpedance amplifier.

[0086] According to a fifth aspect, an embodiment of this application provides still another mixer. The mixer includes a first metal oxide semiconductor MOS transistor group and a second MOS transistor group, where the first MOS transistor group and the second MOS transistor group are disposed on different deep N-wells.

[0087] Optionally, a circuit structure of the second MOS transistor group is the same as a circuit structure of the first MOS transistor group.

[0088] In this embodiment of this application, the two MOS transistor groups are disposed on different deep N-wells, so that isolation between the two MOS transistor groups can be improved.

[0089] In an optional implementation, the first MOS transistor group includes a first MOS transistor, a second MOS transistor, a third MOS transistor, and a fourth MOS transistor, both a gate of the first MOS transistor and a gate of the fourth MOS transistor are connected to a first port, and both a gate of the second MOS transistor and a gate of the third MOS transistor are connected to a second port; and a lead between the gate of the first MOS transistor and the first port, a lead between the gate of the second MOS transistor and the second port, a lead between the gate of the third MOS transistor and the second port, and a lead between the gate of the fourth MOS transistor and the first port all have an equal length.

[0090] In this implementation, traces of gates of all MOS transistors in the mixer have a same length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0091] In an optional implementation, the first MOS transistor group and the second MOS transistor group are aligned left and right and are symmetrical along a reference symmetry axis.

[0092] In this implementation, the first MOS transistor group and the second MOS transistor group are symmetrically disposed, so that parasitic capacitances of the two MOS transistor groups may be consistent. This improves linearity of the mixer.

[0093] In an optional implementation, a first lead between the gate of the first MOS transistor and the gate of the fourth MOS transistor passes through a first position, a second lead between the gate of the second MOS transistor and the gate of the third MOS transistor passes through a second position, and the first position and the second position are same positions at different layers in the mixer; and a lead from the gate of the first MOS transistor to the first position, a lead from the gate of the second MOS transistor to the second position, a lead from the gate of the third MOS transistor to the second position, and a lead from the gate of the fourth MOS transistor to the first position have an equal length.

[0094] In this implementation, leads from the gates of all the MOS transistors in the mixer to same positions at different layers in the mixer have an equal length, so that all the MOS transistors have a same gate parasitic capacitance. In this way, linearity is relatively high.

[0095] In an optional implementation, the first MOS transistor and the third MOS transistor are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor and the fourth MOS transistor are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor and the second MOS transistor are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor and the fourth MOS transistor are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other.

[0096] In this implementation, all the MOS transistors in the mixer are symmetrically arranged, so that parasitic capacitances of all the MOS transistors are compatible. This improves linearity of the mixer.

[0097] In an optional implementation, one end of a third lead is connected to a third position of the first lead, and the other end of the third lead is connected to the first port; one end of a fourth lead is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second port; the third position and the fourth position are symmetrical along the first symmetry axis; and the mixer is symmetrical along the first symmetry axis.

[0098] In this implementation, the third lead and the fourth lead are symmetrical along the first symmetry axis, so that the traces of the gates of all the MOS transistors may be symmetrical.

[0099] In an optional implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected to form the first lead, the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected to form the second lead, and both the first lead and the second lead are straight lines.

[0100] In this implementation, the gate of the first MOS transistor and the gate of the fourth MOS transistor are directly connected, and the gate of the second MOS transistor and the gate of the third MOS transistor are directly connected. This can effectively reduce lengths of leads.

[0101] In an optional implementation, a part of the third lead is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the mixer.

[0102] In this implementation, the traces of the gates of all the MOS transistors are strictly symmetrical, so that both gate resistances and gate parasitic capacitances of all the MOS transistors are consistent.

[0103] In an optional implementation, a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

[0104] In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer. This can effectively reduce mutual impact between leads.

[0105] In an optional implementation, the third lead is located on one side of the first symmetry axis, and the fourth lead is located on the other side of the first symmetry axis; a first part of the third lead and a part of the second lead are located in same positions at different layers in the mixer, and a second part of the third lead is parallel to the first symmetry axis; and a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the mixer, and a second part of the fourth lead is parallel to the first symmetry axis.

[0106] In this implementation, the third lead and the fourth lead are not crossed but are directly connected to the first port and the second port respectively. In this way, routing is simple.

[0107] In an optional implementation, the third position and the first position are same positions, and the fourth position and the second position are same positions.

[0108] In this implementation, it can be ensured that the traces of the gates of all the MOS transistors are strictly symmetrical.

[0109] In an optional implementation, both a first input port and a second input port are connected to a low noise amplifier, and both a first output port and a second output port are connected to a transimpedance amplifier.

[0110] According to a sixth aspect, an embodiment of this application provides an electronic device, where the electronic device includes the mixer according to any one of the third aspect to the fifth aspect and the optional implementations.

[0111] The electronic device may be a receiver, a transceiver, or a radio frequency chip in a terminal (for example, a mobile phone or a base station), or may be a terminal, or may be another device.DESCRIPTION OF DRAWINGS

[0112] FIG. 1 is a schematic diagram of a position of a mixer in a receiver; FIG. 2 is a diagram of a circuit principle of a mixer; FIG. 3 shows a layout structure of a conventional mixer; FIG. 4 shows a layout structure of one group of switch circuits in a mixer; FIG. 5 is a diagram of a circuit principle of a switch circuit; FIG. 6 shows a layout structure of a mixer according to an embodiment of this application; FIG. 7 shows a layout structure of a switch circuit according to an embodiment of this application; FIG. 8 shows another layout structure of a switch circuit according to an embodiment of this application; FIG. 9A shows a layout structure of a conventional mixer; and FIG. 9B shows a layout structure of a mixer according to an embodiment of this application. DESCRIPTION OF EMBODIMENTS

[0113] To make a person skilled in the art better understand the technical solutions in this application, the following clearly describes the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. It is clear that the described embodiments are merely a part but not all of the embodiments of this application.

[0114] In the embodiments of the specification, the claims, and the accompanying drawings of this application, the terms "first", "second", "third", and the like are intended to distinguish between similar objects, but do not necessarily indicate a specific order or sequence. Moreover, the terms "include", "have", and any other variant thereof are intended to cover a non-exclusive inclusion, for example, including a series of steps or units. Methods, systems, products, or devices are not necessarily limited to those explicitly listed steps or units, but may include other steps or units that are not explicitly listed or that are inherent to such processes, methods, products, or devices.

[0115] In an electronic communications system, a mixer (Mixer) is a core circuit responsible for a spectrum shift function in a transceiver, and is widely used in a microwave wireless communications system, a radar system, and a measurement system. A receiver basically includes components such as an amplifier, a filter, and a mixer. The components are used to amplify and filter an analog input signal, perform frequency shift or conversion for several times on the analog input signal that is amplified and filtered, then perform sampling by using an analog-to-digital converter (Analog-to-Digital Converter, ADC), and send a digital signal to a computer or digital signal processor for further processing. The mixer is located at a position with relatively high radio frequency signal amplitude in the receiver, and many interfering signals are not effectively suppressed. Therefore, linearity is a very important (even the most important) indicator of the mixer. FIG. 1 is a schematic diagram of a position of a mixer in a receiver. As shown in FIG. 1, 101 indicates a low noise amplifier, 102 indicates a mixer, and 103 indicates a transimpedance amplifier. The mixer 102 is located after the low noise amplifier 101, and the transimpedance amplifier 103 is located after the mixer 102. The low noise amplifier 101 performs low noise amplification processing on a received weak signal, to input a quadrature radio frequency signal to two input ends of the mixer 102. The mixer 102 mixes (that is, performs frequency shift on) the radio frequency signal at the input end of the mixer 102 and a local oscillator signal, to obtain an intermediate frequency signal. The transimpedance amplifier 103 converts the received intermediate frequency signal into a voltage signal. FIG. 1 shows merely an example provided in this application. The mixer may be used in a plurality of types of circuits. The position of the mixer is not limited in this application.

[0116] FIG. 2 is a diagram of a circuit principle of a mixer. As shown in FIG. 2, a dashed line box on the left indicates a first switch circuit, and a dashed line box on the right indicates a second switch circuit. The first switch circuit includes M1 to M4, where M1 to M4 all indicate metal oxide semiconductor (Metal Oxide Semiconductor, MOS) transistors. Both a gate of M1 and a gate of M4 are connected to an input port LOP1, and both a gate of M2 and a gate of M3 are connected to an input port LON1. Both a source of M1 and a source of M2 are connected to an input port RFIP, and both a source of M3 and a source of M4 are connected to an input port RFIN. Output ports of the first switch circuit are IFIP and IFIN. The second switch circuit includes M5 to M8, where M5 to M8 all indicate MOS transistors. Both a gate of M5 and a gate of M8 are connected to an input port LOP2, and both a gate of M6 and a gate of M7 are connected to an input port LON2. Both a source of M5 and a source of M6 are connected to the input port RFIP, and both a source of M7 and a source of M8 are connected to the input port RFIN. Output ports of the second switch circuit are IFQP and IFQN. The first switch circuit and the second switch circuit are connected in parallel, and are both driven by a quadrature local oscillator signal to output two intermediate frequency signals I and Q. The first switch circuit and the second switch circuit constitute a quadrature Gilbert mixer. A signal input into the input port LOP1 and a signal input into the input port LON1 are quadrature signals, and a signal input into the input port LOP2 and a signal input into the input port LON2 are quadrature signals. FIG. 2 shows merely an example of the diagram of the circuit principle of the mixer according to this application. Diagrams of circuit principles of different types of mixers are different, and the diagram of the circuit principle of the mixer is not limited in this application. It can be learned from FIG. 2 that the mixer includes two groups of switch circuits having a same structure. Both the gate of M1 and the gate of M4 are connected to the input port LOP1, and both the gate of M2 and the gate of M3 are connected to the input port LON1. Both the gate of M5 and the gate of M8 are connected to the input port LOP2, and both the gate of M6 and the gate of M7 are connected to the input port LON2. The two groups of switch circuits are both driven by a quadrature local oscillator signal. One group outputs the intermediate frequency signal I, and the other group outputs the intermediate frequency signal Q.

[0117] A layout structure of the mixer includes two symmetrically arranged groups of switching circuits. The gates of the four MOS transistors in each group of switching circuits each are connected to one lead. Two gate leads are connected to one output port of an LO, and the other two gate leads are connected to the other output port of the LO. FIG. 3 shows a layout structure of a conventional mixer. As shown in FIG. 3, M1 to M8 respectively correspond to M1 to M8 in FIG. 2. A layout structure on the left in FIG. 3 corresponds to the switch circuit in the dashed-line box on the left in FIG. 2. A layout structure on the right in FIG. 3 corresponds to the switch circuit in the dashed-line box on the right in FIG. 2. Both a gate of M1 and a gate of M4 are connected to an input port LOP1 of an LO, both a gate of M2 and a gate of M3 are connected to an output port LON1 of the LO, both a gate of M5 and a gate of M8 are connected to an output port LOP2 of the LO, and both a gate of M6 and a gate of M7 are connected to an output port LON2 of the LO. Both a drain of M1 and a drain of M3 are connected to an output port IFIP, both a drain of M2 and a drain of M4 are connected to an output port IFIN, both a drain of M5 and a drain of M7 are connected to an output port IFQP, and both a drain of M6 and a drain of M8 are connected to an output port IFQN. Both a source of M1 and a source of M2 are connected to an input port RFIP, both a source of M3 and a source of M4 are connected to an input port RFIN, both a source of M5 and a source of M6 are connected to an input port RFIP, and both a source of M7 and a source of M8 are connected to an input port RFIN. As shown in FIG. 3, because layout structures of the two groups of switch circuits are symmetrically arranged, to more conveniently describe a layout structure of each group of switch circuits in the layout structure of the mixer, the following describes only a layout structure of one group of switch circuits. FIG. 4 shows a layout structure of one group of switch circuits in a mixer. As shown in FIG. 4, M1 to M4 respectively correspond to M1 to M4 in FIG. 2. Both a gate of M1 and a gate of M4 are connected to an input port LOP1 of an LO, and both a gate of M2 and a gate of M3 are connected to an output port LON1 of the LO. Both a drain of M1 and a drain of M3 are connected to an output port IFIP, and both a drain of M2 and a drain of M4 are connected to an output port IFIN. Both a source of M1 and a source of M2 are connected to a same input port RFIP, and a source of M3 and a source of M4 are connected to the other input port RFIN. FIG. 5 is a diagram of a circuit principle corresponding to the layout structure in FIG. 4. M1 to M4 in FIG. 5 respectively correspond to M1 to M4 in FIG. 4. Both a gate of M1 and a gate of M4 are connected to an input port LOP1, and both a gate of M2 and a gate of M3 are connected to an input port LON1. Both a source of M1 and a source of M2 are connected to an input port RFIP, and both a source of M3 and a source of M4 are connected to an input port RFIN. Output ports of a first switch circuit are IFIP and IFIN. It can be learned from FIG. 4 that, when this layout structure is used, traces of the gates of the four MOS transistors have inconsistent lengths, and consequently, parasitics of the gates of the four MOS transistors are inconsistent. In this case, trace symmetry of the MOS transistors is directly broken, and linearity of the mixer is affected. Therefore, a problem of trace asymmetry of MOS transistors in the layout structure of the conventional mixer needs to be resolved, so that parasitics of the gates of the four MOS transistors are consistent, to improve linearity of the mixer.

[0118] The following describes a layout structure of a mixer according to an embodiment of this application. In the layout structure, parasitics of gates of MOS transistors are consistent. A diagram of a circuit principle corresponding to the layout structure of the mixer according to this application shows a mixer circuit including two groups of switch circuits. FIG. 1 shows an example of the circuit principle corresponding to the layout structure. FIG. 6 shows a layout structure of a mixer according to this application. As shown in FIG. 6, M1 to M8 respectively correspond to M1 to M8 in FIG. 2. A layout structure on the left in FIG. 6 corresponds to the first switch circuit (corresponding to a first MOS transistor group) in the dashed-line box on the left in FIG. 2. A layout structure on the right in FIG. 6 corresponds to the second switch circuit (corresponding to a second MOS transistor group) in the dashed-line box on the right in FIG. 2. A gate of M1 and a gate of M4 are directly connected through a first lead (that is, 601 in the figure), the first lead is connected to one end of a third lead (that is, 603 in the figure), and the other end of the third lead is connected to an output port LOP1 of an LO. A gate of M2 and a gate of M3 are directly connected through a second lead (that is, 602 in the figure), the second lead is connected to one end of a fourth lead (that is, 604 in the figure), and the other end of the fourth lead is connected to an output port LON1 of the LO. A gate of M5 and a gate of M8 are directly connected through a lead, and the lead is connected to an output port LOP2 of the LO through another lead. A gate of M6 and a gate of M7 are directly connected through a lead, and the lead is connected to an output port LON2 of the LO through another lead. Both a drain of M1 and a drain of M3 are connected to an output port IFIP, both a drain of M2 and a drain of M4 are connected to an output port IFIN, both a drain of M5 and a drain of M7 are connected to an output port IFQP, and both a drain of M6 and a drain of M8 are connected to an output port IFQN. Optionally, the first lead and the third lead are located at a same layer, and the second lead and the fourth lead are located at a same layer. It may be understood that the left part in FIG. 6 corresponds to a first layout area of the first switch circuit (corresponding to the first MOS transistor group), and the right part in FIG. 6 corresponds to a second layout area of the second switch circuit (corresponding to the second MOS transistor group). The first layout area and the second layout area are aligned left and right and are symmetrical along a reference symmetry axis. It can be learned, by comparing FIG. 6 with FIG. 3, that a major difference between the layout structure of the mixer provided in this embodiment of this application and the layout structure of the conventional mixer lies in that traces of gates of four MOS transistors in each group of switch circuits have consistent lengths, so that parasitics of the gates of the MOS transistors are the same. In the layout structure of the mixer in FIG. 6, the first lead between the gate of M1 and the gate of M4 and the second lead between the gate of M2 and the gate of M3 are located at different layers of the layout structure. In other words, the first lead and the second lead do not intersect. In the layout structure of the mixer provided in this embodiment of this application, because layout structures of the two groups of switch transistors are symmetrical, to more conveniently describe a layout structure of each group of switch circuits in the layout structure of the mixer, the following specifically describes a layout structure of one group of switch circuits.

[0119] FIG. 7 shows a layout structure of a switch circuit according to an embodiment of this application. A circuit diagram corresponding to the layout structure is shown in FIG. 5. The layout structure of the switch circuit in FIG. 7 is an example of the layout structure of the first MOS transistor group. As shown in FIG. 7, the layout structure of the switch circuit includes a first MOS transistor (that is, M1 in FIG. 7), a second MOS transistor (that is, M2 in FIG. 7), a third MOS transistor (that is, M3 in FIG. 7), and a fourth MOS transistor (that is, M4 in FIG. 7). A gate of M1 and a gate of M4 are directly connected through a first lead (that is, 701 in the figure), the first lead is connected to one end of a third lead (that is, 703 in the figure), and the other end of the third lead is connected to an input port LOP1 (corresponding to a first port) of an LO. A gate of M2 and a gate of M3 are directly connected through a second lead (that is, 702 in the figure), the second lead is connected to one end of a fourth lead (that is, 704 in the figure), and the other end of the fourth lead is connected to an output port LON1 (corresponding to a second port) of the LO. M1 and M3 are aligned left and right and are symmetrical along a first symmetry axis, M2 and M4 are aligned left and right and are symmetrical along the first symmetry axis, M1 and M2 are aligned forward and backward and are symmetrical along a second symmetry axis, and M3 and M4 are aligned forward and backward and are symmetrical along the second symmetry axis. The first symmetry axis and the second symmetry axis are perpendicular to each other. The first lead (that is, 701 in the figure) between the gate of M1 and the gate of M4 passes through a first position, the second lead (that is, 702 in the figure) between the gate of M2 and the gate of M3 passes through a second position, and the first position and the second position are same positions at different layers in the layout structure. A lead from the gate of M1 to the first position, a lead from the gate of M2 to the second position, a lead from the gate of M3 to the second position, and a lead from the gate of M4 to the first position have an equal length. One end of the third lead (that is, 703 in the figure) is connected to a third position of the first lead, and the other end of the third lead is connected to the first port (that is, the input port LOP1 in the figure). One end of the fourth lead (that is, 704 in the figure) is connected to a fourth position of the second lead, and the other end of the fourth lead is connected to the second port (that is, the input port LON1 in the figure). The third position and the fourth position are symmetrical along the first symmetry axis, and the layout structure is symmetrical along the first symmetry axis. The first lead and the second lead are located at different layers in the layout structure, and the third lead and the fourth lead are located at different layers in the layout structure. Optionally, the first position is a midpoint of the first lead, the second position is a midpoint of the second lead, and the first position, the second position, and an intersection point of the first symmetry axis and the second symmetry axis are same positions at different layers in the layout structure. Optionally, the third position is a midpoint of the first lead, the fourth position is a midpoint of the second lead, and the third position, the fourth position, and an intersection point of the first symmetry axis and the second symmetry axis are same positions at different layers in the layout structure. Optionally, the third position and the fourth position are not same positions at different layers in the layout structure. Optionally, the third position and the first position are same positions, and the fourth position and the second position are same positions. It can be learned from FIG. 7 that traces of the gates of M1 to M4 have a same length, and the third lead and the fourth lead are symmetrical along the first symmetry axis. In this way, gate parasitic capacitances of M1 to M4 are the same, and linearity of the switch circuit is relatively high.

[0120] In an optional implementation, as shown in FIG. 7, the gate of M1 and the gate of M4 are directly connected to form the first lead, the gate of M2 and the gate of M3 are directly connected to form the second lead, and both the first lead and the second lead are straight lines. In this implementation, the gate of M1 and the gate of M4 are directly connected, and the gate of M2 and the gate of M3 are directly connected. This can effectively reduce lengths of leads. Therefore, costs are relatively low.

[0121] In an optional implementation, as shown in FIG. 7, a part of the third lead (that is, 703 in the figure) is located on one side of the first symmetry axis, and the other part of the third lead is located on the other side of the first symmetry axis; a part of the fourth lead (that is, 704 in the figure) is located on one side of the first symmetry axis, and the other part of the fourth lead is located on the other side of the first symmetry axis; and the third lead passes through a fifth position, the fourth lead passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the layout structure. In this implementation, the traces of the gates of M1 to M4 are crossed twice to reach ports (that is, the input ports LOP1 and LON1) of the LO, so that the traces of the gates of M1 to M4 are strictly symmetrical. This can further improve linearity of the switch circuit.

[0122] In an optional implementation, as shown in FIG. 7, a first part (that is, 7031 in the figure) of the third lead and a part of the second lead (that is, 702 in the figure) are located in same positions at different layers in the layout structure, a second part (that is, 7032 in the figure) of the third lead is parallel to the first symmetry axis, a third part (that is, 7033 in the figure) of the third lead is located on two sides of the first symmetry axis, and a fourth part (that is, 7034 in the figure) of the third lead is parallel to the first symmetry axis; a first part (which is symmetrical with the part indicated by 7031 in the figure along the first symmetry axis) of the fourth lead and a part of the first lead are located in same positions at different layers in the layout structure, a second part (which is symmetrical with the part indicated by 7032 in the figure along the first symmetry axis) of the fourth lead is parallel to the first symmetry axis, a third part (which is symmetrical with the part indicated by 7033 in the figure along the first symmetry axis) of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part (which is symmetrical with the part indicated by 7034 in the figure along the first symmetry axis) of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position. Optionally, the third lead and the first lead are located at a same layer in the layout structure, and the second lead and the fourth lead are located at a same layer in the layout structure. In this implementation, the first part of the third lead and a part of the second lead are located in same positions at different layers in the layout structure, and the first part of the fourth lead and a part of the first lead are located in same positions at different layers in the layout structure. This can effectively reduce mutual impact between leads.

[0123] In the layout structure in FIG. 7, the traces of the gates of M1 to M4 are crossed twice to reach the ports (that is, the input ports LOP1 and LON1) of the LO. In the layout structure of the mixer, the traces of the gates of M1 to M4 may be crossed at least once to reach the ports of the LO. Optionally, in the layout structure of the mixer, the traces of the gates of M1 to M4 may be crossed for an even quantity of times to reach the ports of the LO, so that linearity performance of the layout structure is better. In the layout structure of the switch circuit, the traces of the gates of M1 to M4 may be crossed once to reach the ports of the LO. FIG. 8 shows another layout structure of a switch circuit according to an embodiment of this application. A circuit diagram corresponding to the layout structure is shown in FIG. 5. In FIG. 8, 801 indicates a first lead, 802 indicates a second lead, 8031 indicates a first part of a third lead, 8032 indicates a second part of the first lead, and 804 indicates a fourth lead. As shown in FIG. 8, the first part (8031) of the third lead and a part of the second lead are located in same positions at different layers in the layout structure, and the second part (8032) of the third lead is parallel to a first symmetry axis; and a first part (which is symmetrical with the part 8031 along the first symmetry axis) of the fourth lead and a part of the first lead are located in same positions at different layers in the layout structure, and a second part (which is symmetrical with the part 8032 along the first symmetry axis) of the fourth lead is parallel to the first symmetry axis. Optionally, the third lead and the first lead are located at a same layer in the layout structure, and the second lead and the fourth lead are located at a same layer in the layout structure. Optionally, one end of the third lead is connected to a midpoint of the first lead, and one end of the fourth lead is connected to a midpoint of the second lead. It can be learned, by comparing FIG. 7 with FIG. 8, that a difference between the layout structure in FIG. 8 and the layout structure in FIG. 7 lies in that traces of gates of M1 to M4 may be crossed once to reach ports of an LO. In this implementation, the third lead and the fourth lead are not crossed but are directly connected to the ports of the LO. In this way, routing is simple.

[0124] In an optional implementation, in the layout structure of the mixer, a first switch circuit and a second switch circuit are disposed on different deep N-wells (also referred to as deep n-well, DNW for short). In the layout structure of the conventional mixer, two groups of switch circuits are disposed on a same deep N-well, one group of switch circuits corresponds to a path I, the other group of switch circuits corresponds to a path Q, and isolation between the two paths I and Q is relatively poor. FIG. 9A shows a layout structure of a conventional mixer. As shown in FIG. 9A, a first switch circuit and a second switch circuit are disposed on a same deep N-well. In this case, isolation between two paths I and Q is relatively poor. FIG. 9B shows a layout structure of a mixer according to an embodiment of this application. As shown in FIG. 9B, a first switch circuit is disposed on a DNW 1, and a second switch circuit is disposed on a DNW 2. In other words, the first switch circuit and the second switch circuit are disposed on different deep N-wells, so as to improve isolation between two paths I and Q. Refer to FIG. 9B. The first switch circuit and the second switch circuit in FIG. 9B are disposed on different deep N-wells. The first switch circuit corresponds to the path I, and the second switch circuit corresponds to the path Q. In this way, isolation between the two paths I and Q can be improved.

[0125] The layout structure of the switch circuit provided in this application is a layout structure with relatively good linearity performance, and is not limited to being applied to a layout structure of a mixer, but may also be applied to another circuit. In this application, equality is not limited to complete equality, but a specific deviation is allowed. An objective of the solutions in this application is to ensure that traces of gates of MOS transistors have an equal length as much as possible, but it is not limited that the traces of the gates of the MOS transistors need to have completely consistent lengths. The foregoing descriptions are merely specific embodiments of this application, but are not intended to limit the protection scope of this application as defined by the claims.

Claims

1. A switch circuit, wherein the switch circuit comprises: • a first metal oxide semiconductor, MOS, transistor (M1), a second MOS transistor (M2), a third MOS transistor (M3), and a fourth MOS transistor (M4), • wherein both, a gate of the first MOS transistor (M1) and a gate of the fourth MOS transistor (M4), are connected to a first port (LOP 1), and both, a gate of the second MOS transistor (M2) and a gate of the third MOS transistor (M3) are connected to a second port (LOP 2), wherein • a lead between the gate of the first MOS transistor (M1) and the first port (LOP 1), a lead between the gate of the second MOS transistor (M2) and the second port (LOP 2), a lead between the gate of the third MOS transistor (M3) and the second port (LOP 2), and a lead between the gate of the fourth MOS transistor (M4) and the first port (LOP 1) all have an equal length, the switch circuit being characterized as follows: • wherein a first lead (601) between the gate of the first MOS transistor (M1) and the gate of the fourth MOS transistor (M4) passes through a first position, a second lead (602) between the gate of the second MOS transistor (M2) and the gate of the third MOS transistor (M3) passes through a second position, and the first position and the second position are same positions at different layers in the switch circuit; and a lead from the gate of the first MOS transistor (M1) to the first position, a lead from the gate of the second MOS transistor (M2) to the second position, a lead from the gate of the third MOS transistor (M3) to the second position, and a lead from the gate of the fourth MOS transistor (M4) to the first position have an equal length, • wherein the first MOS transistor (M1) and the third MOS transistor (M3) are aligned left and right and are symmetrical along a first symmetry axis, the second MOS transistor (M2) and the fourth MOS transistor (M4) are aligned left and right and are symmetrical along the first symmetry axis, the first MOS transistor (M1) and the second MOS transistor (M2) are aligned forward and backward and are symmetrical along a second symmetry axis, and the third MOS transistor (M3) and the fourth MOS transistor (M4) are aligned forward and backward and are symmetrical along the second symmetry axis; and the first symmetry axis and the second symmetry axis are perpendicular to each other, • wherein one end of a third lead (603) is connected to a third position of the first lead (601), and the other end of the third lead (603) is connected to the first port (LOP1); one end of a fourth lead (604) is connected to a fourth position of the second lead (602), and the other end of the fourth lead (604) is connected to the second port (LOP2); the third position and the fourth position are symmetrical along the first symmetry axis; and the switch circuit is symmetrical along the first symmetry axis, • wherein a part of the third lead (603) is located on one side of the first symmetry axis, and the other part of the third lead (603) is located on the other side of the first symmetry axis; a part of the fourth lead (604) is located on one side of the first symmetry axis, and the other part of the fourth lead (604) is located on the other side of the first symmetry axis; and the third lead (603) passes through a fifth position, the fourth lead (604) passes through a sixth position, and the fifth position and the sixth position are same positions at different layers in the switch circuit.

2. The switch circuit according to claim 1, wherein a first part of the third lead and a part of the second lead are located in same positions at different layers in the switch circuit, a second part of the third lead is parallel to the first symmetry axis, a third part of the third lead is located on two sides of the first symmetry axis, and a fourth part of the third lead is parallel to the first symmetry axis; a first part of the fourth lead and a part of the first lead are located in same positions at different layers in the switch circuit, a second part of the fourth lead is parallel to the first symmetry axis, a third part of the fourth lead is located on the two sides of the first symmetry axis, and a fourth part of the fourth lead is parallel to the first symmetry axis; and the third part of the third lead passes through the fifth position, and the third part of the fourth lead passes through the sixth position.

3. The switch circuit according to any of the preceding claims, wherein the third position and the first position are same positions, and the fourth position and the second position are same positions.

4. A mixer comprising the switch circuit according to any one of claims 1 to 3.

5. The mixer according to claim 4, wherein both, the first port and the second port, are local oscillator ports for receiving a drive voltage; both, a source of the first MOS transistor and a source of the second MOS transistor, are connected to a first input port, and both, a source of the third MOS transistor and a source of the fourth MOS transistor, are connected to a second input port; and both, a drain of the first MOS transistor and a drain of the third MOS transistor, are connected to a first output port, and both, a drain of the second MOS transistor and a drain of the fourth MOS transistor, are connected to a second output port.

6. The mixer according to claim 5, wherein both, the first input port and the second input port, are connected to a low noise amplifier, and both, the first output port and the second output port, are connected to a transimpedance amplifier.

7. An electronic device comprising the mixer according to any one of claims 4 to 6.