## My Circle is Like a Smith Chart

Smith chart is used be mysterious to me. My daughter has an interesting book named my heart is like a zoo. This makes me come up with the story – my circle is like a Smith chart.

I can find lots of reference on Smith chart online, among which one of the most useful one is explained by Prof. F. Delssperger and he also develops a handy software to help us with matching and etc. After reading his slides, I kind of understand that Smith chart is trying to combine the impedance in Z plane with the reflection coefficient in Polar diagram. However, I am still confused about the exact size and position of the circles until I happen to find this derivation.

I extract the main flow of derivations here. For details, please click the above link.

First, the reflection coefficient is a complex number. $\Gamma=|\Gamma|\angle \theta=\Gamma_R+j\Gamma_I$

Second, this coefficient corresponds directly to a specific impedance as seen at the point it is measured. It can be calculated based on a load impedance ZL (using a reference impedance Z0). And the load impedance is further normalized to the reference impedance zL=ZL/Z0. $\Gamma=\frac{Z_L-Z_0}{Z_L+Z_0}=\frac{z_L-1}{z_L+1}$

Third, the normalized load impedance, which is also a complex number, can be expressed by the reflection coefficient. $z_L=z_R+jz_I=\frac{1+\Gamma}{1-\Gamma}=\frac{1+\Gamma_R+j\Gamma_I}{1-\Gamma_R-j\Gamma_I}$

Fourth, after rationalizing, the normalized load resistance zR and load reactance zI can be expressed by the following two circle equations. $z_R=\frac{1-\Gamma^2_R-\Gamma^2_I}{(1-\Gamma_R)^2+\Gamma^2_I}$ $z_I=\frac{2\Gamma_I}{(1-\Gamma_R)^2+\Gamma^2_I}$

Finally, thanks to the author’s derivation, the equations of the two circle can be rewritten in a familiar format. $(\Gamma_R - \frac{z_R}{1+z_R})^2+\Gamma^2_I=(\frac{1}{1+z_R})^2$ $\boxed{\textrm{Circle with center } (\frac{z_R}{1+z_R},0) \textrm{ , radius }\frac{1}{1+z_R}}$ $(\Gamma_R-1)^2 +(\Gamma_I-\frac{1}{z_I})^2=(\frac{1}{z_I})^2$ $\boxed{\textrm{Circle with center } (1, \frac{1}{z_I}) \textrm{ , radius }\frac{1}{z_I}}$

Now we can draw some circles on Smith chart.

## Current-Mode-Logic (CML) Latch

It’s a rather old topic and one can find many good references. In this post, I will write down some of my basic understandings on this circuit.

Operation of CML latch

Figure 1 shows a simplified block diagram of divider-by-2 and a CML (current-mode logic) latch. M1/M2 form a preamplifier and M3/M4 a cross-coupled pair. Fig. 2 illustrates the low-frequency and high-frequency operation of CML latch. During the low-frequency operation, when CK is high, the input is amplified by M1/M2; when CK goes low, the cross-coupled pair performs regeneration and latches the state. For short cycle operation, the cross-coupled pair continues to provide gain in the store mode, regenerating to a final differential output of Iss*RL. This condition is met if gm3RL>1.

Speed estimation of CML latch

When CK is high, the circuit can be viewed as a single-pole amplifier. Assume that a step voltage is applied at the input, the differential output voltage can be expressed as $V_{XY1} = V_{XY0} - g_{m1}R_LV_{step}(1-e^{-\frac{t}{R_LC_L}}), \quad (1)$

where VXY0 and VXY1 are the initial and final differential output during the sense phase, gm1 is the transconductance of the input transistor, the product of RL and CL is the time constant. RL and CL are the equivalent resistive and capacitive load seeing from node X/Y.

As is shown in Fig.2, in a divider-by-2, input of one latch is output of the other. Both the initial differential voltage at X/Y (VXY0) and the input voltage step (Vstep) have the same value of Iss*RL. Replacing VXY0 and Vstep with Iss*RL, Eq(1) can be rewritten as $V_{XY1} = I_{SS}R_L(1 - g_{m1}R_L(1-e^{-\frac{t}{R_LC_L}})) \quad (2)$

When clock goes low, the latch starts regeneration and the differential output continues to evolve, which can be expressed as $V_{XY2} = V_{XY1}e^{\frac{t}{\tau_{reg}}} \quad (3)$

The regenerative time constant equals $\tau_{reg} = \frac{R_LC_L}{g_{m3}R_L -1}, \quad (4)$

where gm3 is the transconductance of the cross-coupled pair. The latch regenerates the differential output to a final value of -Iss*RL. Replacing VXY2 with -Iss*RL, Eq(3) can be rewritten as $-I_{SS}R_L = V_{XY1}e^{\frac{t}{\tau_{reg}}} \quad (5)$

Now we have derived the amplification time, Eq(2), and the regeneration time, Eq(5), respectively. It would be interesting to visualize them in the following plots (Fig.3 and Fig.4). It can be seen that the optimal speed happens when the differential output at the end of the sense phase (VXY1) is between its final settled value and half of it.

The above plots are based on the following assumptions:

• Gm/Id: a value of 10 is a good start. This indicates that operating the transistor in moderate inversion is optimal when we value speed and power efficiency equally. The conversion between Gm/Id and inversion coefficient(IC) can be referred to this post.
• Gain (G): a value around 3 is a good start. For submicron CMOS node, the self-gain of a standard transistor with minimum length is normally no large than 10. In this case, we further assume M1/M2 and M3/M4 have the same size.
• Differential output voltage (Iss*RL): in the range of 400 ~ 600 mV .
• Tail current (Iss): assume RL is 500Ohm, Iss around 800uA is a good start point. Then gm = Gm/Id*(Iss/2) = 10*400uA = 4 mA/S. (Note that gmRL > 1 holds)
• Transistor width (W): according to gm/Id simulation of a minimum-length transistor in submicron process, for 1-um width a gm/Id of 10 needs ~150-uA bias current. If the width is 4x, the bias current will be 600uA.
• Capacitive load (CL): the capacitive load contributed by the transistors are equal to 2*Cgg+2*Cdd ~= 3Cgg. With width of 4um and length of 30nm, the Cgg can be approximated to about 2.4fF (4*0.03*20=2.4fF). Normally, the load from a succeeding buffer will dominate.

The Matlab script used to plot the data can be found here.

References:

 Online lecture notes (Access Jan.05, 2021), https://people.engr.tamu.edu/spalermo/ecen620/lecture12_ee620_dividers.pdf

 B. Razavi, “The Cross-Coupled Pair – Part II [A Circuit for All Seasons],” IEEE Solid-State Circuits Magazine, Issue 4, pp. 9-12, Fall 2014.

Posted in Circuit Analysis | | 2 Comments

## [M scripts] Speed estimation of CML latch

The Matlab script used in this post:

%%%%%%%%%%%%%%% Estimate the speed of CML Latch %%%%%%%%%%%%%%%%%%%%%
clear all; clc;
% Initial settings
G = 3;              % Amplification gain
gm_id = 10;         % Inversion coefficient
id_unit = 150e-6;   % Id for gm_id=10 at W = 1um, L=30nm
cg_unit = 0.4e-15;  % Cgg at W = 1um
ll = 0.03;          % Transistor length in um

ww = 4;             % Transistor width
id = id_unit*ww;    % Bias current
gm = gm_id*id;      % Transistor transconductance
cg = ww*cg_unit;    % Gate capacitance in F
cpar = 10e-15;      % parasitic capacitance
cl = 3*cg + cpar;   % Total load capacitor
rl = G/gm;          % Resistor load
iss = id*2;         % Tail current
deltaV = rl*iss;     % Differential output voltage

tau = rl*cl;        % Time constant
k = 1:0.2:8;        % Ratio of Iss*RD/Vxy1

t1 = -tau.*log(1-(1+1./k)./G).*1e12;    % Amplification time in ps
t2 = tau./(G-1).*log(k).*1e12;          % Regeneration time in ps

plot(k, t1, '-rd', k, t2, '-bo', k, t1+t2, '-k+')
xlabel('-I_{ss}R_D/V_{XY1}'); ylabel('Time [ps]');
xlim([1 max(k)]);
title(sprintf('Gm/Id = %.0f; G = %d; W = %d [um]; C_L = %.0f [fF] \n R_L = %.0f [Omh]; I_{SS} = %.0f [uA]; V_{diffo} = %.1f [mV]', gm_id, G,  ww, cl*1e15, rl, iss*1e6, deltaV*1e3));
legend('Amplification time', 'Regeneration time', 'Total sum', 'Location', 'Best');
grid on;


Posted in Matlab | Tagged | 1 Comment

## 100 Keywords – Doping

Doping is a technique used to modify the density of charge carriers in semiconductors. A small section of the periodic table is copied as follows.

Boron is a “Group 3” element. It has 3 valence electrons in its outmost shell. Once it is introduced into the silicon lattice it will bond to the nearby silicon atoms with the traditional double bonds, and produce a hole which will accept electrons and migrate around. The hole concentration (p) is approximate to the density of Boron atoms.

Phosphorus is a “Group 5” element. It has 5 valence electrons in its outmost shell. Once it is bonded to the nearby silicon it will produce a free electron and the electron acts as a donor. The electron concentration (n) is approximate to the density of Phosphorus atoms.

Note that the product of n and p is constant, which is equal to ni2.

Finally, an interesting question quoted from Prof. Razavi’s Youtube video on Electronics:
Q: What happens to n and p in n-type silicon as T increases?
A: n keeps constant and p increases as T increases.

Posted in 100 Keywords | Tagged | 1 Comment

## 100 Keywords – Holes

In reality, there are no holes! It just refers to positive charge.

The diagram below shows positive charge travels from the left to the right of silicon. At t1, one electron is released which produces a positive charge (indicated as a hole); at t2, the second electron is released and trapped in the hole shown in t1; at t3, the third electron is released and again trapped in the hole shown in t2.

This explains why movement of holes is shower than that of electrons.

For pure silicon, the density of holes is equal to the density of electrons (ni).

Posted in 100 Keywords | Tagged , , | 1 Comment

## 100 Keywords – Silicon

A silicon atom has 14 electrons. In its outmost shell, it has 4 valence electrons.

Covalent bonding in silicon:

Its resistivity drops as temperature rises.

Density of free electrons in silicon can be calculated as:

At T=300K,

In the same cubic, there are 5×1022 silicon atoms. The ratio of electrons to silicon atoms is tiny tiny…Hence we need to do something to make it conducting.

Most of the information is gathered after watching the youtube video from Prof. Behzad Razavi’s Electronics 1. He is really talented at explaining things. If you have time, just skip mine and watch his video.

Posted in 100 Keywords | Tagged , | 1 Comment

## 100 Keywords – Preface

Feng Tang once said that if you want to know a bit about a new field, go and find 100 keywords. Digest them in two or three days, and you will look like a professional.

Somewhat make sense!

This triggers me to think about the keywords in my field – IC design. Astonishingly, some words are so common to me but I can’t tell the real details. Am I already a professional?! Maybe I can start a similar project in the dark cold Covid nordic winter to cheer up a little bit 🙂

100 is not an absolute number to target, but in the beginning, let’s say 100. In addition, two or three days is also mission impossible for me, maybe two or three years…

Anyway, keep thinking and keep writing!

Posted in 100 Keywords | 1 Comment

## CMOS Single Stage

Found an old drawing on CMOS single stage from many years ago. Stay healthy!

## Basics On Active-RC Low-Pass Filters

Just some basic understandings on analog filters which is inspired by ‘The Guru’ in our company. To clarify my thoughts, I will write in the format of Q&A. There are four questions to answer:

1. What do we dream for a low-pass (LP) filter?
2. Why complex poles are required?
3. How to generate complex poles without inductor?
4. Any real-life example?

Q1) What do we dream for a low-pass (LP) filter?

An ideal one, which has a brick-wall response. We only receive what we intend to receive, pure and loss-free. But, in reality… Fig.1 Brick-wall response (in red) Vs. reality (in bluish)

Q2) Why complex poles are required?

Complex poles help to lift up the magnitude around the cut-off frequency by contributing larger pole quality factor (Q).

If we only have real poles, though higher-order gives better roll-off, the loss of magnitude around cut-off frequency becomes bigger. Fig.2 A system from order 1 to 5 which only have real poles

Now we move to a system which has complex poles. Taking the 5th-order Butterworth filter as an example, which has a real pole and two pairs of complex poles, the complex poles with a Q of 1.618 help to compensate the loss of magnitude around cut-off frequency. It tries to approximate the brick-wall response. Fig.3 Generating 5th-order butterworth lowpass by multiplying (cascading) three transfer functions (1 one-pole + 2 biquads)

Q3) How to generate complex poles without inductor?

The answer is Feedback! R and C only generate real poles. When feedback is applied around a system containing real roots, the closed-loop transfer function may contain complex roots.

Let’s think of this example: an amplifier with two poles. Its transfer function can be written as: $A(s)=\frac{A_0 \omega_1 \omega_2}{(s+\omega_1)(s+\omega_2)}$.

The poles are generated by Rs and Cs in the amplifier and they are real. Now assume a negative feedback of beta is placed around the amplifier. The closed-loop transfer function becomes: $A_{cl}(s)=\frac{A(s)}{1+\beta A(s)}= \frac{A_0 \omega_1 \omega_2}{s^2+(\omega_1+\omega_2)s + \omega_1 \omega_2(1+\beta A_0)}$.

We can then calculate the two poles of the closed-loop transfer function: $p_{1,2}=-\frac{\omega_1 + \omega_2}{2} \pm \frac{1}{2} \sqrt{(\omega_1 + \omega_2)^2 - 4\omega_1 \omega_2(1+\beta A_0)}$.

By increasing $\beta A_0$, complex poles can be achieved! Fig.4 An illustration example of root-locus of poles when A*beta is increased from 0 to infinity

Q4) Any real-life example?

Of course. Fig.4 shows the Two-Thomas biquad. Without the feedback resistor R2, the open-loop transfer function has two real poles: one pole generated by R3 and C1 and the other pole at origin. With a feedback resistor applied, the two poles will move towards each other, arrive at the same position, and then leave the real axis, becoming complex poles. Fig.4 The common Two-Thomas biquad filter (Wikipedia)

## Leading Simulators for Analog/RF Circuits

Recently I have the opportunity to touch some RF design. WoW, some simple metal lines need a fancy tool to get them modeled! WoW, both Windows and Unix tools are involved to simulate the EVM!

It seems that Cadence Spectre just can’t do it on its own any more. Really? I start to ask myself which simulator or which way of simulation is more efficient for my design. Then I found this paper published in 2014, titled “Overview of Commercially-Available Analog/RF Simulation Engines and Design Environment”. Yep, it’s helpful (at least to a RF newbie). It reviews four main analog/RF simulators on the market:

• Agilent ADS (now Keysight, which was spun off from Agilent in 2014)
• Agilent GoldenGate (again now Keysight)
• Mentor Graphics AFS

Cadence Spectre, an evolved engine from SPICE, is good at transient analysis. However, the transient analysis may become expensive when it deals with RF signals, the signals normally containing a periodic high-frequency carrier and a low-frequency modulation signal. The carrier forces a small time step while the signal forces a long simulation interval. To speed up the RF simulation, harmonic balance (HB) comes in, which works on frequency domain. Though ADS provides a best-in-class HB simulator for RF design, its layout suite is inferior to Cadence Virtuoso environment. Hence the Spectre simulator  is still widely used as the standard sign-off simulator. Recently, to leverage ADS for RF simulation and Cadence for schematic capture and layout, GoldenGate is highly integrated into the Cadence design flow as an efficient hybrid method.

It is obvious that which simulator to choose depends pretty much on the signal nature. In general, for circuits with a few frequency components, like LNA and mixer, the frequency-domain technique is more efficient, while time-domain technique is more efficient for circuits with abrupt edges, like ADC/DAC or control logics. Many interesting details are described in the paper. Fig.1 provides a short summary. Fig.1 A short performance summary 

Note that MTS is the acronym of multi-technology simulations. We typically design circuits within a single design kit. However, for some RF products, they may be composed of different modules from different processes. According to the paper, Cadence’s ADE GXL can do MTS simulations.

Reference:

 B. Wan and X. Wang, “Overview of commercially-available analog/RF simulation engines and design environment,” 12th IEEE International Conference on Solid-State and Integrated Circuit Technology (ICSICT), 2014.