A chip and its UserID detection circuit

By using transistors and current mirror branches in the UserID detection circuit to limit the current, and combining it with an inverter to achieve output, the problem of large power consumption and area in the existing technology is solved, and a more efficient chip design is achieved.

CN114487762BActive Publication Date: 2024-09-24BEIJING ONMICRO ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011263196.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-09-24
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

The existing UserID detection circuit consumes large power and occupies a large area, resulting in low efficiency in chip design.

Method used

A UserID detection circuit structure including a first transistor, a second transistor, a current mirror branch and an inverter is used to reduce power consumption by limiting current flow through a resistor, and eliminates the comparator and bias generator to achieve output.

Benefits of technology

It effectively reduces the power consumption and area occupied by the UserID detection circuit, and improves the efficiency and density of the chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114487762B
    Figure CN114487762B
Patent Text Reader

Abstract

The present application provides a chip and a UserID detection circuit thereof. In the UserID detection circuit, the first transistor and the second transistor have a current limiting function, so that the current flowing through the two resistors can be limited, that is, when the two resistors are not large, the current on the branch can be limited to a smaller value, thereby reducing the power consumption of the UserID detection circuit and reducing the occupied area of ​​the UserID detection circuit; and in the UserID detection circuit, two inverters and two current mirror branches are used to realize the output, and the comparator and bias generator in the prior art are cancelled, so that the power consumption and occupied area of ​​the UserID detection circuit are further reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power electronics, and in particular to a chip and a UserID detection circuit thereof. Background Art

[0002] Usually, in the design and implementation of a chip, it is necessary to set an identity code UserID for the chip in order to identify the identity or working status of the chip.

[0003] In the prior art, there are Figure 1 The UserID detection circuit shown in the figure is provided with five resistors, two comparators and a bias generator; wherein the bias generator is used to provide bias current for the two comparators to ensure that they can work, and the five resistors respectively form two voltage-dividing branches, which are combined with the two comparators to complete the detection of the USER_ID pin state of the set UserID mark, and then identify the UserID of the chip.

[0004] In the above UserID detection circuit, a large resistor is usually used to reduce its own power consumption, which leads to an increase in the occupied area of ​​the detection circuit; in addition, in the above UserID detection circuit, not only does the comparator itself have losses, but the use of a bias generator to provide it with bias current also leads to current and area consumption, and thus the power consumption and occupied area of ​​the detection circuit are both large. Therefore, how to reduce the power consumption and the occupied area of ​​the UserID detection circuit is a problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the present invention provides a chip and a UserID detection circuit thereof to reduce the power consumption of the UserID detection circuit and reduce the occupied area of ​​the UserID detection circuit.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] On one hand, the present application provides a UserID detection circuit of a chip, comprising: a first transistor, a second transistor, a first current mirror branch, a second current mirror branch, a first resistor, a second resistor, a first inverter, and a second inverter; wherein:

[0008] The first transistor and the first resistor are connected in series between a power source and a USER_ID pin of the chip;

[0009] The second transistor and the second resistor are connected in series between the USER_ID pin and ground;

[0010] The first current mirror branch and the second current mirror branch are both arranged between the power supply and the ground;

[0011] The first control end of the first current mirror branch and the first control end of the second current mirror branch are both connected to the control end of the first transistor;

[0012] The second control end of the first current mirror branch and the second control end of the second current mirror branch are both connected to the control end of the second transistor;

[0013] The midpoint of the first current mirror branch is connected to the input end of the first inverter;

[0014] A midpoint of the second current mirror branch is connected to an input terminal of the second inverter;

[0015] The output end of the first inverter is the first output end of the UserID detection circuit, and the output end of the second inverter is the second output end of the UserID detection circuit.

[0016] Optionally, the first current mirror branch includes: a third transistor and a fourth transistor; wherein:

[0017] An input terminal of the third transistor is connected to the power supply;

[0018] The output end of the third transistor is connected to the input end of the fourth transistor, and the connection point serves as the midpoint of the first current mirror branch;

[0019] The output terminal of the fourth transistor is grounded;

[0020] The control end of the third transistor serves as the first control end of the first current mirror branch;

[0021] The control end of the fourth transistor serves as the second control end of the first current mirror branch.

[0022] Optionally, a current mirror ratio of the first transistor to the third transistor is greater than a current mirror ratio of the second transistor to the fourth transistor.

[0023] Optionally, a current mirroring ratio between the first transistor and the third transistor is 2:1, and a current mirroring ratio between the second transistor and the fourth transistor is 1:1.

[0024] Optionally, the second current mirror branch includes: a fifth transistor and a sixth transistor; wherein:

[0025] An input terminal of the fifth transistor is connected to the power supply;

[0026] The output end of the fifth transistor is connected to the input end of the sixth transistor, and the connection point serves as the midpoint of the second current mirror branch;

[0027] The output terminal of the sixth transistor is grounded;

[0028] The control end of the fifth transistor serves as the first control end of the second current mirror branch;

[0029] The control end of the sixth transistor serves as the second control end of the second current mirror branch.

[0030] Optionally, a current mirror ratio of the first transistor to the fifth transistor is smaller than a current mirror ratio of the second transistor to the sixth transistor.

[0031] Optionally, a current mirroring ratio between the first transistor and the fifth transistor is 1:1, and a current mirroring ratio between the second transistor and the sixth transistor is 2:1.

[0032] Optionally, in the first current mirror branch and the second current mirror branch, the transistor forming a current mirror with the first transistor, and the first transistor are both PMOS transistors;

[0033] In the first current mirror branch and the second current mirror branch, the transistor forming a current mirror with the second transistor, and the second transistor are both NMOS transistors.

[0034] Optionally, between the power supply and the USER_ID pin, at least one current limiting transistor is further included, which is connected in series with the first transistor and the first resistor and has the same current direction as the first transistor;

[0035] At least one current limiting transistor is also included between the USER_ID pin and the ground, which is connected in series with the second transistor and the second resistor and has the same current direction as the second transistor.

[0036] On the other hand, the present application provides a chip, including: a chip main circuit and a UserID detection circuit of the chip as described in any one of the previous aspects of the present application.

[0037] It can be seen from the above technical solution that the present invention provides a UserID detection circuit. In the UserID detection circuit, the first transistor and the second transistor have a current limiting function, so that the current flowing through the two resistors can be limited, that is, when the two resistors are not large, the current on the branch can be limited to a smaller value, thereby reducing the power consumption of the UserID detection circuit and reducing the occupied area of ​​the UserID detection circuit; and in the UserID detection circuit, two inverters and two current mirror branches are used to realize the output, and the comparator and bias generator in the prior art are cancelled, so that the power consumption and occupied area of ​​the UserID detection circuit are further reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0039] Figure 1 It is a structural diagram of a UserID detection circuit in the prior art;

[0040] Figure 2 and Figure 3 Two structural schematic diagrams of the UserID detection circuit provided in the embodiments of the present application;

[0041] Figure 4a , Figure 4b and Figure 4c They are schematic diagrams of three simulation experiment results of UserID detection circuit detecting User_ID pin;

[0042] Figure 5 Another structural schematic diagram of a UserID detection circuit provided in another embodiment of the present application;

[0043] Figure 6 A schematic diagram of the structure of a chip provided in another embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0046] In the prior art, the UserID detection circuit is as follows Figure 1 As shown, it specifically includes: a bias generator, a first comparator 01, a second comparator 02 and five resistors (such as Figure 1 R1 to R5 in FIG.

[0047] In the UserID detection circuit, the bias generator is connected to the bias terminals of the first comparator 01 and the second comparator 02, and is used to provide bias current for the first comparator 01 and the second comparator 02, so as to ensure that the first comparator 01 and the second comparator 02 are in normal working state; the first resistor R1 and the second resistor R2 are connected in series to form a first series branch, and the third resistor R3, the fourth resistor R4 and the fifth resistor R5 are connected in series to form a second series branch; and the first series branch and the second series branch are both arranged between the power supply VDD and the ground.

[0048] Among them, the midpoint of the first series branch, that is, the connection point of the first resistor R1 and the second resistor R2, is respectively connected to the User_ID pin, the non-inverting input terminal of the first comparator 01 and the non-inverting input terminal of the second comparator 02; the first output terminal VREF1 of the second series branch, that is, the connection point of the third resistor R3 and the fourth resistor R4, is connected to the inverting input terminal of the first comparator 01 to provide a reference potential for the first comparator 01; the second output terminal VREF2 of the second series branch, that is, the connection point of the fourth resistor R4 and the fifth resistor R5, is connected to the inverting input terminal of the second comparator 02 to provide a reference potential for the second comparator 02.

[0049] By setting the resistance values ​​of the five resistors, the following principles can be achieved:

[0050] When the User_ID pin is connected to the power supply VDD, the potential of the non-inverting input terminal of the first comparator 01 is greater than its own reference potential, and its output terminal CODE1 outputs a high level. The potential of the non-inverting input terminal of the second comparator 02 is greater than its own reference potential, and its output terminal CODE2 outputs a high level. This state can be recorded as the first state of the User_ID pin, which can be represented by CODE1="1", CODE2="1".

[0051] When the User_ID pin is connected to the ground, the potential of the non-inverting input terminal of the first comparator 01 is lower than its own reference potential, and its output terminal CODE1 outputs a low level. The potential of the non-inverting input terminal of the second comparator 02 is lower than its own reference potential, and its output terminal CODE2 outputs a low level. This state can be recorded as the second state of the User_ID pin, which can be represented by CODE1 = "0", CODE2 = "0".

[0052] When the User_ID pin is in a floating state, since the set resistance value relationship between the first resistor R1 and the second resistor R2 can ensure that the potential at the connection point of the first resistor R1 and the second resistor R2 is less than the potential of the first output terminal VREF1 of the second series branch and greater than the potential of the second output terminal VREF2 of the second series branch, the potential of the non-inverting input terminal of the first comparator 01 is less than its own reference potential, and its output terminal CODE1 outputs a low level, the potential of the non-inverting input terminal of the second comparator 02 is greater than its own reference potential, and its output terminal CODE2 outputs a high level. This state can be recorded as the third state of the User_ID pin, represented by CODE1="0", CODE2="1".

[0053] However, the above UserID detection circuit occupies a large area and has a large power consumption. To solve the above problems, the present application provides a UserID detection circuit, whose structure is as follows: Figure 2 As shown, it specifically includes: a first transistor M1, a second transistor M2, a first current mirror branch 10, a second current mirror branch 20, a first resistor R1, a second resistor R2, a first inverter 30 and a second inverter 40.

[0054] In the UserID detection circuit, the first transistor M1 and the first resistor R1 are connected in series between the power supply VDD and the User_ID pin of the chip, and the second transistor M2 and the second resistor R2 are connected in series between the User_ID pin of the chip and the ground; and the output end of the first transistor M1 can be connected to its control end, and the input end of the second transistor M2 can be connected to its control end.

[0055] Specifically, in practical applications, the first transistor M1 and the first resistor R1 may be connected in series in the following manner: Figure 2As shown, the input end of the first transistor M1 is connected to the power supply VDD, the output end of the first transistor M1 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the User_ID pin of the chip; it can also be: one end of the first resistor R1 is connected to the power supply VDD, the other end of the first resistor R1 is connected to the input end of the first transistor M1, and the output end of the first transistor M1 is connected to the User_ID pin of the chip; the above two series connection methods of the first transistor M1 and the first resistor R1 can be selected according to specific circumstances, and are not specifically limited here, and are all within the protection scope of this application.

[0056] It should be noted that, in actual applications, the series connection method of the second transistor M2 and the second resistor R2 is the same as the series connection method of the first transistor M1 and the first resistor R1 mentioned above, which can be deduced from this and will not be repeated here; and the selection of the series connection method of the first transistor M1 and the first resistor R1, as well as the selection of the series connection method of the second transistor M2 and the second resistor R2, are all independent selections, that is, the two will not affect each other.

[0057] Optionally, the first transistor M1 is a PMOS transistor and the second transistor M2 is an NMOS transistor. In practical applications, including but not limited to the above implementations, any device that can achieve the same function as the above implementations is within the protection scope of this application, which may depend on the specific circumstances and is not specifically limited here.

[0058] In the UserID detection circuit, the first current mirror branch 10 and the second current mirror branch 20 are both arranged between the power supply VDD and the ground; wherein the first control end of the first current mirror branch 10 and the first control end of the second current mirror are both connected to the control end of the first transistor M1; and the second control end of the first current mirror branch 10 and the second control end of the second current mirror are both connected to the control end of the second transistor M2.

[0059] The midpoint of the first current mirror branch 10 is connected to the input end of the first inverter, and the midpoint of the second current mirror branch 20 is connected to the input end of the second inverter 40; the output end CODE1 of the first inverter 30 is the first output end of the UserID detection circuit, and the output end CODE2 of the second inverter 40 is the second output end of the UserID detection circuit.

[0060] Specifically, the structure of the first current mirror branch 10 is as follows: Figure 3 As shown, it specifically includes: a third transistor M3 and a fourth transistor M4.

[0061] In the first current mirror branch 10, the input end of the third transistor M3 is connected to the power supply VDD, the output end of the third transistor M3 is connected to the input end of the fourth transistor M4, and the connection point serves as the midpoint of the first current mirror branch 10; the output end of the fourth transistor M4 is grounded; the control end of the third transistor M3 serves as the first control end of the first current mirror branch 10; the control end of the fourth transistor M4 serves as the second control end of the first current mirror branch 10; and the third transistor M3 is of the same type as the first transistor M1, which is a PMOS transistor, and the fourth transistor M4 is of the same type as the second transistor M2, which is an NMOS transistor.

[0062] Specifically, the structure of the second current mirror branch 20 is as follows: Figure 3 As shown, it specifically includes: a fifth transistor M5 and a sixth transistor M6.

[0063] In the second current mirror branch 20, the input end of the fifth transistor M5 is connected to the power supply VDD, the output end of the fifth transistor M5 is connected to the input end of the sixth transistor M6, and the connection point serves as the midpoint of the second current mirror branch 20; the output end of the sixth transistor M6 is grounded; the control end of the fifth transistor M5 serves as the first control end of the second current mirror branch 20; the control end of the sixth transistor M6 serves as the second control end of the second current mirror branch 20; and the fifth transistor M5 is of the same type as the first transistor M1, which is a PMOS transistor, and the sixth transistor M6 is of the same type as the second transistor M2, which is an NMOS transistor.

[0064] From the above structures of the first current mirror branch 10 and the second current mirror branch 20 , it can be seen that the first transistor M1 forms a current mirror with the third transistor M3 and the fifth transistor M5 , and the second transistor M2 forms a current mirror with the fourth transistor M4 and the sixth transistor M6 .

[0065] Therefore, the theoretical analysis of the UserID detection circuit is as follows:

[0066] When the User_ID pin is connected to the power supply VDD, the first transistor M1 is not turned on, that is, no current flows through the first resistor R1 and the first transistor M1, so that even if the drain-source voltages of the third transistor M3 and the fifth transistor M5 are relatively high, no current flows through the third transistor M3 and the fifth transistor M5; however, at this time, the second transistor M2 is turned on, that is, current flows through the second resistor R2 and the second transistor M2, so that even if the current flowing through the second resistor R2 and the second transistor M2 is very small, the midpoint potential of the first current mirror branch 10 and the midpoint potential of the second current mirror branch 20 can be pulled down to the ground level, so the first inverter 30 and the second inverter 40 both output a high level, which can be represented by CODE1="1" and CODE2="1", that is, at this time, the User_ID pin is in the first state.

[0067] When the User_ID pin is connected to the ground, the second transistor M2 is not turned on, that is, no current flows through the second resistor R2 and the second transistor M2, so that even if the drain-source voltages of the fourth transistor M4 and the fifth transistor M5 are relatively high, no current flows through the fourth transistor M4 and the sixth transistor M6; however, at this time, the first transistor M1 is turned on, that is, current flows through the first resistor R1 and the first transistor M1, so that even if the current flowing through the first resistor R1 and the first transistor M1 is very small, the midpoint potential of the first current mirror branch 10 and the midpoint potential of the second current mirror branch 20 can reach the power supply VDD, so the first inverter 30 and the second inverter 40 both output low levels, which can be represented by CODE1="0" and CODE2="0", that is, at this time, the User_ID pin is in the second state.

[0068] In order to maintain the same logic output as the UserID detection circuit in the prior art, the current mirror ratio of the first transistor M1 and the third transistor M3 is set to be greater than the current mirror ratio of the second transistor M2 and the fourth transistor M4, and the current mirror ratio of the first transistor M1 and the fifth transistor M5 is set to be less than the current mirror ratio of the second transistor M2 and the sixth transistor M6.

[0069] Therefore, when the User_ID pin is in a floating state, the first transistor M1 and the second transistor M2 are both turned on, that is, current flows through the first resistor R1, the first transistor M1, the second resistor R2 and the second transistor M2, so that current flows through the third transistor M3 and the fourth transistor M4, and current flows through the fifth transistor M5 and the sixth transistor M6, that is, the third transistor M3, the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6 are all turned on; however, since the current mirror ratio of the first transistor M1 to the third transistor M3 is greater than the current mirror ratio of the second transistor M2 to the fourth transistor M4, the third transistor M3, the fourth transistor M4, the fifth transistor M5 and the sixth transistor M6 are all turned on. The voltage across the third transistor M3 is less than the voltage across the fourth transistor M4, that is, the midpoint potential of the first current mirror branch 10 is a high level; in addition, since the current mirror ratio of the first transistor M1 to the fifth transistor M5 is less than the current mirror ratio of the second transistor M2 to the sixth transistor M6, the voltage across the fifth transistor M5 is greater than the voltage across the sixth transistor M6, that is, the midpoint potential of the second current mirror branch 20 is a low level, therefore, the first inverter 30 outputs a low level, and the second inverter 40 outputs a high level, which can be represented by CODE1 = "0", CODE2 = "1", that is, at this time the User_ID pin is in the third state.

[0070] Specifically, the current mirror ratio of the first transistor M1 and the third transistor M3 can be set to 2:1, the current mirror ratio of the second transistor M2 and the fourth transistor M4 can be set to 1:1, the current mirror ratio of the first transistor M1 and the fifth transistor M5 can be set to 1:1, and the current mirror ratio of the second transistor M2 and the sixth transistor M6 can be set to 2:1.

[0071] In order to verify the corresponding function of the UserID detection circuit provided by the present application, taking the above current mirror ratio as an example, a simulation experiment is conducted on the UserID detection circuit, and the experimental results are as follows:

[0072] When the User_ID pin is connected to the power supply VDD, the simulation results are as follows Figure 4a As shown, CODE1 = "1", CODE2 = "1", that is, the first inverter 30 and the second inverter 40 output a high level; when the User_ID pin is connected to the ground, the simulation result is as follows Figure 4b As shown, CODE1 = "0", CODE2 = "0", that is, the first inverter 30 and the second inverter 40 output a low level; when the User_ID pin is in a floating state, the simulation result is as follows Figure 4c As shown, CODE1 = "0", CODE2 = "1", the first inverter 30 outputs a low level, and the second inverter 40 outputs a high level.

[0073] The above is only a preferred implementation. In practical applications, including but not limited to the above implementation, no specific limitation is made here. It can be determined according to the specific situation and is within the protection scope of this application.

[0074] It should be noted that the setting of the above-mentioned current mirror ratio is only a preferred implementation method, that is, sampling the above-mentioned implementation method can ensure consistency with the detection result of the User_ID pin in the prior art. In practical applications, including but not limited to the above-mentioned setting method, it can be determined according to the specific situation. No specific limitation is made here, and it is all within the protection scope of this application.

[0075] It can be seen from the above technical solution that in the UserID detection circuit provided by the present application, the first transistor M1 and the second transistor M2 have a current limiting function, thereby limiting the current flowing through the two resistors, that is, when the two resistors are not large, the current on the branch can also be limited to a smaller value, thereby reducing the power consumption of the UserID detection circuit and reducing the occupied area of ​​the UserID detection circuit; and, in the UserID detection circuit, two inverters and two current mirror branches are used to realize the output, and the comparator and bias generator in the prior art are eliminated, thereby further reducing the power consumption and occupied area of ​​the UserID detection circuit.

[0076] Another embodiment of the present application provides a UserID detection circuit, whose structure is as follows: Figure 5 As shown, based on the above embodiment, it further includes: two current limiting branches 50.

[0077] In the UserID detection circuit, a current limiting branch 50 is connected in series with the first transistor M1 and the first resistor R1, and its current direction is the same as that of the first transistor M1; another current limiting branch 50 is connected in series with the second transistor M2 and the second resistor R2, and its current direction is the same as that of the second transistor M2.

[0078] It should be noted that the connection relationship and working principle of the remaining structures are the same as those in the above embodiment, and will not be described one by one here. Please refer to the above description.

[0079] Specifically, the internal structure of the current limiting branch 50 is as follows: Figure 5 As shown, it specifically includes: at least one current limiting transistor M. In the current limiting branch 50, when the number of the current limiting transistors M is greater than 1, all the current limiting transistors M are respectively connected in series with corresponding transistors and resistors between the power supply VDD and the USER_ID pin, or between the USER_ID pin and the ground.

[0080] For example, in the current limiting branch 50 connected in series with the first transistor M1 and the first resistor R1, all current limiting transistors M may be connected in series between the first transistor M1 and the first resistor R1. Figure 5 As shown; it can also be: all current limiting transistors M are connected in series between the first transistor M1 and the power supply VDD; it can also be: all current limiting transistors M are connected in series between the first resistor R1 and the USER_ID pin; it can also be: a part of the current limiting transistors M are connected in series between the first transistor M1 and the power supply VDD; another part of the current limiting transistors M are connected in series between the first transistor M1 and the first resistor R1. They are not listed one by one here, and they are all within the protection scope of this application.

[0081] It should be noted that all current limiting transistors M are transistors of the same type as the corresponding transistors; for example, if the first transistor M1 is a PMOS transistor, then the current limiting transistor M connected in series between the power supply VDD and the USER_ID pin is also a PMOS transistor.

[0082] It should be noted that, in the UserID detection circuit provided in the present application, after the current limiting branch 50 is set, the current in the UserID detection circuit is smaller, thereby reducing the power consumption of the UserID detection circuit; and, after the current limiting branch 50 is set, the resistance value of the first resistor R1 or the second resistor R2 can be further reduced, thereby further reducing the occupied area of ​​the first resistor R1 or the second resistor R2, and further reducing the occupied area of ​​the UserID detection circuit.

[0083] Another embodiment of the present application provides a chip, whose internal structure is as follows Figure 6 As shown, it specifically includes: a chip main circuit 100 and a UserID detection circuit 200 provided in the above embodiment; wherein, the detection end of the UserID detection circuit 200, that is, the connection point of the first resistor R1 and the second resistor R2, is connected to the User_ID pin on the chip main circuit 100, and is used to detect the state of the User_ID pin on the chip main circuit 100, so as to determine the identity or working state of the chip.

[0084] The various embodiments of the present invention are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0085] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as above in the preferred embodiment, it is not used to limit the present invention. Any technician familiar with the art can make many possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A chip UserID detection circuit, characterized in that: include: A first transistor, a second transistor, a first current mirror branch, a second current mirror branch, a first resistor, a second resistor, a first inverter, and a second inverter; wherein: The first transistor and the first resistor are connected in series between a power source and a USER_ID pin of the chip; The second transistor and the second resistor are connected in series between the USER_ID pin and ground; The first current mirror branch and the second current mirror branch are both arranged between the power supply and the ground; The first control end of the first current mirror branch and the first control end of the second current mirror branch are both connected to the control end of the first transistor; The second control end of the first current mirror branch and the second control end of the second current mirror branch are both connected to the control end of the second transistor; The midpoint of the first current mirror branch is connected to the input end of the first inverter; A midpoint of the second current mirror branch is connected to an input terminal of the second inverter; The output end of the first inverter is the first output end of the UserID detection circuit, and the output end of the second inverter is the second output end of the UserID detection circuit.

2. The UserID detection circuit of the chip according to claim 1, characterized in that: The first current mirror branch includes: a third transistor and a fourth transistor; wherein: An input terminal of the third transistor is connected to the power supply; The output end of the third transistor is connected to the input end of the fourth transistor, and the connection point serves as the midpoint of the first current mirror branch; The output terminal of the fourth transistor is grounded; The control end of the third transistor serves as the first control end of the first current mirror branch; The control end of the fourth transistor serves as the second control end of the first current mirror branch.

3. The UserID detection circuit of the chip according to claim 2, characterized in that: A current mirror ratio of the first transistor to the third transistor is greater than a current mirror ratio of the second transistor to the fourth transistor.

4. The UserID detection circuit of the chip according to claim 3, characterized in that: The current mirror ratio of the first transistor to the third transistor is 2:1, and the current mirror ratio of the second transistor to the fourth transistor is 1:

1.

5. The UserID detection circuit of the chip according to claim 1, characterized in that: The second current mirror branch comprises: a fifth transistor and a sixth transistor; wherein: An input terminal of the fifth transistor is connected to the power supply; The output end of the fifth transistor is connected to the input end of the sixth transistor, and the connection point serves as the midpoint of the second current mirror branch; The output terminal of the sixth transistor is grounded; The control end of the fifth transistor serves as the first control end of the second current mirror branch; The control end of the sixth transistor serves as the second control end of the second current mirror branch.

6. The UserID detection circuit of the chip according to claim 5, characterized in that: A current mirror ratio of the first transistor to the fifth transistor is smaller than a current mirror ratio of the second transistor to the sixth transistor.

7. The UserID detection circuit of the chip according to claim 6, characterized in that: A current mirror ratio between the first transistor and the fifth transistor is 1:1, and a current mirror ratio between the second transistor and the sixth transistor is 2:

1.

8. The UserID detection circuit of the chip according to any one of claims 1 to 7, characterized in that: In the first current mirror branch and the second current mirror branch, the transistors forming a current mirror with the first transistor, and the first transistor are all PMOS transistors; In the first current mirror branch and the second current mirror branch, the transistor forming a current mirror with the second transistor, and the second transistor are both NMOS transistors.

9. The UserID detection circuit of the chip according to any one of claims 1 to 7, characterized in that: Between the power supply and the USER_ID pin, at least one current limiting transistor is also included, which is connected in series with the first transistor and the first resistor and has the same current direction as the first transistor; At least one current limiting transistor is also included between the USER_ID pin and the ground, which is connected in series with the second transistor and the second resistor and has the same current direction as the second transistor.

10. A chip, characterized in that: include: A chip main circuit and a UserID detection circuit of the chip as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Physical no-cloning chip circuit based on time domain differential current measurement

    CN105760785A

  • Physical un-clone circuit based on Cascode current mirror structure

    CN106919216A

  • Input Pin State Detection Circuit and Method Therefor

    US20110291704A1