L1 and L2
- L1 and L2 are levels of cache memory in a computer. If the computer processor can find the data it needs for its next operation in cache memory, it will save time compared to having to get it from random access memory. L1 is "level-1" cache memory, usually built onto the microprocessor chip itself. For example, the Intel MMX microprocessor comes with 32 thousand bytes of L1.
L2 (that is, level-2) cache memory is on a separate chip (possibly on an expansion card) that can be accessed more quickly than the larger "main" memory. A popular L2 cache memory size is 1,024 kilobytes (one megabyte).
Karbosguide.com - Module 3b2.
The CPU – developments and improvements
The contents:
· Cache RAM
· Cache overview
· Next page
· Previous page
About CPU cache RAM
[top]
The CPU must deliver its data at a very high speed. The regular RAM cannot keep up with that speed. Therefore, a special RAM type called cache is used as a buffer - temporary storage. To get top performance from the CPU, the number of outgoing transactions must be minimized. The more data transmissions, which can be contained inside the CPU, the better the performance. Therefore, the Intel 80486 was equipped with a built in mathematical co-processor, floating point unit and 8 KB L1-cache RAM. These two features help minimize the data flow in and out of the CPU.
Cache RAM becomes especially important in clock doubled CPUs, where internal clock frequency is much higher than external. Then the cache RAM enhances the "horsepower" of the CPU, by allowing faster receipt or delivery of data. Beginning with 486 processors, two layers of cache are employed. The fastest cache RAM is inside the CPU. It is called L1 cache. The next layer is the L2 cache, which are small SRAM chips on the motherboard. See the illustration below of a traditional Pentium PC:
How much RAM
The L2 cache can cache a certain amount of RAM. How much is determined by the chip set and the so-called TAG-RAM, the circuit controlling the cache.
One of the most popular chip sets for the original Pentium was Intel´s 82430TX. it worked very well - except for detail. it could not cache more than 64 MB RAM. If you added more RAM to the PC, it was not cached by the L2 cache. Hence, using more than 64 MB of RAM on a TX-based motherboard decreased the performance.
This situation has caused a lot of rumors about Windows not being able to use more than 64 MB RAM. However: Windows 98 can use up to 2 GB RAM! The only problems with the amount of RAM has come from poorly designed chip sets as the TX.
Cache overview
[top]
L1-cache first appeared in Intel's 80486DX chip. Today, bigger and better CPU cache is a natural step in the development of new CPUs. Here we only see the internal caches, i.e. cache integrated to the CPU and working at the full clock speed.
CPU
Cache size in the CPU
80486DX and DX2
8 KB L1
80486DX4
16 KB L1
Pentium
16 KB L1
Pentium Pro
16 KB L1 + 256 KB L2 (some 512 KB L2)
Pentium MMX
32 KB L1
AMD K6 and K6-2
64 KB L1
Pentium II and III
32 KB L1
Celeron
32 KB L1 + 128 KB L2
Pentium III Cumine
32 KB L1 + 256 KB L2
AMD K6-3
64 KB L1 + 256 KB L2
AMD K7 Athlon
128 KB L1
AMD Duron
128 KB L1 + 64 KB L2
AMD Athlon Thunderbird
128 KB L1 + 256 KB L2
Switched-mode power supply
From Wikipedia, the free encyclopedia
• Find out more about navigating Wikipedia and finding information •
Jump to: navigation, search
A switched-mode power supply, switch-mode power supply, or SMPS, is an electronic power supply unit (PSU) that incorporates a switching regulator. While a linear regulator uses a transistor biased in its active region to specify an output voltage, an SMPS actively switches a transistor between full saturation and full cutoff at a high rate. The resulting rectangular waveform is then passed through a low-pass filter (typically an inductor and capacitor) to achieve an approximated output voltage. Advantages of this method include smaller size, better power efficiency, and lower heat generation. Disadvantages include the fact that SMPSs are generally more complex than linear supplies, generate high-frequency electrical noise that may need to be carefully suppressed, and have a characteristic ripple voltage at the switching frequency.
SMPS can be classified into four types according to the input and output waveforms, as follows.
AC in, DC out: rectifier, off-line converter
DC in, DC out: voltage converter, or current converter, or DC to DC converter
AC in, AC out: frequency changer, cycloconverter
DC in, AC out: inverter
AC and DC are abbreviations for alternating current and direct current.
Contents
[hide]
1 SMPS and linear power supply comparison
2 How an SMPS works
2.1 Input rectifier stage
2.2 Inverter stage
2.3 Voltage converter and output rectifier
2.4 Regulation
3 Power factor
4 Types
5 Applications
6 See also
7 External articles
8 Book References
9 References
SMPS and linear power supply comparison
There are two main types of regulated power supplies available: SMPS and Linear. The reasons for choosing one type or the other can be summarized as follows.
Size and weight — Linear power supplies use a transformer operating at the mains frequency of 50/60 Hz. This low-frequency transformer is several times larger and heavier than a corresponding transformer in an SMPS, which runs at typical frequencies of 50 kHz to 1 MHz.
Output voltage — Linear power supplies regulate the output by using a higher voltage in the initial stages and then expending some of it as heat to produce a lower, regulated voltage. This voltage drop is necessary and cannot be eliminated by improving the design, even in theory. SMPSs can produce output voltages which are lower than the input voltage, higher than the input voltage and even negative to the input voltage, making them versatile and better suited for widely variable input voltages.
Efficiency, heat, and power dissipation — A linear supply regulates the output voltage or current by expending excess power as heat, which is inefficient. A regulated SMPS will regulate the output using duty cycle control, which draws only the power required by the load. In all SMPS topologies, the transistors are always switched fully on or fully off. Thus, ideally, an SMPS is 100% efficient. The only heat generated is in the non-ideal aspects of the components. Switching losses in the transistors, on-resistance of the switching transistors, equivalent series resistance in the inductor and capacitors, and rectifier voltage drop will lower the SMPS efficiency. However, by optimizing SMPS design, the amount of power loss and heat can be minimized. A good design can have an efficiency of 95%.
Complexity — A linear regulator ultimately consists of a power transistor, voltage regulating IC and a noise filtering capacitor. An SMPS typically contains a controller IC, one or several power transistors and diodes as well as power transformer, inductor and filter capacitors. Multiple voltages can be generated by one transformer core. For this an SMPS has to use duty cycle control. Both need a careful selection of their transformers. Due to the high operating frequencies in SMPS, the stray inductance and capacitance of the printed circuit board traces become important.
Radio frequency interference — The current in a SMPS is switched on and off sharply, and contains high frequency spectral components. Long wires between the components may reduce the high frequency filter efficiency provided by the capacitors at the inlet and outlet. This high-frequency current can generate undesirable electromagnetic interference. EMI filters and RF shielding are needed to reduce the disruptive interference. Linear PSUs generally do not produce interference, and are used to supply power where radio interference must not occur.
Electronic noise at the output terminals — Inexpensive linear PSUs with poor regulation may experience a small AC voltage "riding on" the DC output at twice mains frequency (100/120 Hz). These "ripples" are usually on the order of millivolts, and can be suppressed with larger filter capacitors or better voltage regulators. This small AC voltage can cause problems or interference in some circuits; for example, analog security cameras powered by switching power supplies may have unexpected brightness ripples or other banded distortions in the video they produce or cause mains hum to be audible in audio amplifiers. Quality linear PSUs will suppress ripples much better. SMPS usually do not exhibit ripple at the power-line frequency, but do have generally noisier outputs than linear PSUs. The noise is usually correlated with the SMPS switching frequency.
Acoustic noise — Linear PSUs typically give off a faint, low frequency hum at mains frequency, but this is seldom audible (vibration of windings in the transformer is responsible). SMPSs, with their much higher operating frequencies, are not usually audible to humans (unless they have a fan, in the case of most computer SMPSs). A malfunctioning or unloaded SMPS may generate high-pitched sounds, since they do in fact generate acoustic noise at the oscillator frequency.
Power factor — Linear PSUs have low power factors because current is drawn from the mains at the peaks of the voltage sinusoid. The current drawn by simple SMPS is uncorrelated to the the supply's input voltage waveform, so the early SMPS designs have a mediocre power factor as well and their use in personal computers and compact fluorescent lamps present a growing problem for power distribution. An SMPS with power factor correction (PFC) can reduce this problem greatly, and are required by some electric regulation authorities, particularly in Europe.
Electronic noise at the input terminals — In a similar fashion, very low cost SMPS may couple electrical switching noise back onto the mains power line and may cause interference with A/V equipment connected to the same phase. Linear PSUs rarely do this.
Risk of electric shock — It is inherent in both linear and switching power supplies. In linear supplies, the chances of getting ventricular fibrillation are limited to having either the full mains voltage or having the secondary terminals in contact with the chest (if the transformer secondary produces a high enough voltage to overcome the body's electrical resistance and passes enough current to stop the heart). Due to regulations concerning EMI and RFI, all modern SMPS's contain inductors and capacitors connected before the bridge diodes for power factor correction and EMI/RFI filtering. Both Live and Neutral connections are connected to Earth via the two filter capacitors. The side effect of this is if the equipment if not earthed via the plug either intentionally (as in the case with many new A/V equipment) or unintentionally (if an earthed equipment develops an earth fault), these two capacitors form an impedance divider that energises the case and common rail of the equipment together with all unearthed equipment connected to it at half the mains voltage unless one of the equipment is earthed. This gives the operator an electric shock ranging from a tingling to a bite or even be fatal should the capacitor fail by shorting internally, putting the full mains voltage across the common rail of the equipment, likely destroying it in the process. Since a tiny amount of current flows through the filtering capacitors, nuisance tripping can be a problem on the most sensitive residual-current devices.
Risk of equipment destruction — Some SMPS even have capacitors bridging the primary and secondary sides of the equipment. This causes the voltage at the DC connector to float at half the mains voltage, presenting another risk for electric shock (see above). Other than that, the voltage relative to earth is capable of destroying transistors input stages in amplifiers because the base-emitter voltage (assuming that the emitter is earthed) across the transistor forces it into the zener breakdown region, causing the gain to severely drop and noise levels to increase sharply [2].
How an SMPS works
Block diagram of a mains operated AC-DC SMPS with output voltage regulation.
Input rectifier stage
AC, half-wave and full wave rectified signals
If the SMPS has an AC input, then its first job is to convert the input to DC. This is called rectification. The rectifier circuit can be configured as a voltage doubler by the addition of a switch operated either manually or automatically. This is a feature of larger supplies to permit operation from nominally 120 volt or 240 volt supplies. The rectifier produces an unregulated DC voltage which is then sent to a large filter capacitor. The current drawn from the mains supply by this rectifier circuit occurs in short pulses around the AC voltage peaks. These pulses have significant high frequency energy which reduces the power factor. Special control techniques can be employed by the following SMPS to force the average input current to follow the sinusoidal shape of the AC input voltage thus the designer should try correcting the power factor. A SMPS with a DC input does not require this stage. A SMPS designed for AC input can often be run from a DC supply, as the DC passes through the rectifier stage unchanged. (The user should check the manual before trying this, though most supplies are quite capable of such operation even though no clue is provided in the manual!)
If an input range switch is used, the rectifier stage is usually configured to operate as a voltage doubler when operating on the low voltage (~120 VAC) range and as a straight rectifier when operating on the high voltage (~240 VAC) range. If an input range switch is not used, then a full-wave rectifier is usually used and the downstream inverter stage is simply designed to be flexible enough to accept the wide range of dc voltages that will be produced by the rectifier stage. In higher-power SMPSs, some form of automatic range switching may be used.
Inverter stage
The inverter stage converts DC, whether directly from the input or from the rectifier stage described above, to AC by running it through a power oscillator, whose output transformer is very small with few windings at a frequency of tens or hundreds of kilohertz (kHz). The frequency is usually chosen to be above 20 kHz, to make it inaudible to humans. The output voltage is optically coupled to the input and thus very tightly controlled. The switching is implemented as a multistage (to achieve high gain) MOSFET amplifier. MOSFETs are a type of transistor with a low on-resistance and a high current-handling capacity. This section refers to the block marked "Chopper" in the block diagram.
Voltage converter and output rectifier
If the output is required to be isolated from the input, as is usually the case in mains power supplies, the inverted AC is used to drive the primary winding of a high-frequency transformer. This converts the voltage up or down to the required output level on its secondary winding. The output transformer in the block diagram serves this purpose.
If a DC output is required, the AC output from the transformer is rectified. For output voltages above ten volts or so, ordinary silicon diodes are commonly used. For lower voltages, Schottky diodes are commonly used as the rectifier elements; they have the advantages of faster recovery times than silicon diodes (allowing low-loss operation at higher frequencies) and a lower voltage drop when conducting. For even lower output voltages, MOSFET transistors may be used as synchronous rectifiers; compared to Schottky diodes, these have even lower "on"-state voltage drops.
The rectified output is then smoothed by a filter consisting of inductors and capacitors. For higher switching frequencies, components with lower capacitance and inductance are needed.
Simpler, non-isolated power supplies contain an inductor instead of a transformer. This type includes boost converters, buck converters, and the so called buck-boost converters. These belong to the simplest class of single input, single output converters which utilise one inductor and one active switch (MOSFET). The buck converter reduces the input voltage, in direct proportion, to the ratio of the active switch "on" time to the total switching period, called the Duty Ratio. For example an ideal buck converter with a 10V input operating at a duty ratio of 50% will produce an average output voltage of 5V. A feedback control loop is employed to maintain (regulate) the output voltage by varying the duty ratio to compensate for variations in input voltage. The output voltage of a boost converter is always greater than the input voltage and the buck-boost output voltage is inverted but can be greater than, equal to, or less than the magnitude of its input voltage. There are many variations and extensions to this class of converters but these three form the basis of almost all isolated and non-isolated DC to DC converters. By adding a second inductor the Ćuk and SEPIC converters can be implemented or by adding additional active switches various bridge converters can be realised.
Other types of SMPS use a capacitor-diode voltage multiplier instead of inductors and transformers. These are mostly used for generating high voltages at low currents. The low voltage variant is called charge pump.
[edit] Regulation
A feedback circuit monitors the output voltage and compares it with a reference voltage, which is set manually or electronically to the desired output. If there is an error in the output voltage, the feedback circuit compensates by adjusting the timing with which the MOSFETs are switched on and off. This part of the power supply is called the switching regulator. The "Chopper controller" shown in the block diagram serves this purpose. Depending on design/safety requirements, the controller may or may not contain an isolation mechanism (such as opto-couplers) to isolate it from the DC output. Switching supplies in computers, TVs and VCRs have these opto-couplers to tightly control the output voltage.
Open-loop regulators do not have a feedback circuit. Instead, they rely on feeding a constant voltage to the input of the transformer or inductor, and assume that the output will be correct. Regulated designs work against the parasitic capacity of the transformer or coil, monopolar designs also against the magnetic hysteresis of the core.
The feedback circuit needs power to run before it can generate power, so an additional non-switching power-supply for stand-by is added.
Power factor
Early switched mode power supplies incorporated a simple full wave rectifier connected to a large energy storing capacitor. Such SMPS draws current from the AC line in short pulses when the mains instantaneous voltage exceeds the voltage across this capacitor. During the remaining portion of the AC cycle the capacitor provides energy to the power supply. As a result, the input current of such basic switched mode power supplies has high harmonic content and relatively low power factor. This creates extra load on utility lines, increases heating of the utility transformers, and may cause stability problems in some applications such as in emergency generator systems or aircraft generators. In 2001 the European Union put into effect the standard IEC/EN61000-3-2 to set limits on the harmonics of the AC input current up to the 40th harmonic for equipment above 75W. The standard defines four classes of equipment depending on its type and current waveform. The most rigorous limits (class D) are established for personal computers, computer monitors, and TV receivers. In order to comply with these requirements modern switched-mode power supplies normally include an additional power factor correction (PFC) stage.
Types
Switched-mode power supplies can be classified according to the circuit topology.
Buck converter (single inductor; output voltage < title="Boost converter" href="http://en.wikipedia.org/wiki/Boost_converter">Boost converter (single inductor; output voltage > input voltage)
buck-boost converter (single inductor; output voltage can be more or less than the input voltage)
flyback converter (uses output transformer; allows multiple outputs and input-to-output isolation)
typical Power: 0 to ca. 150 W
relative cost: 100%
Half-Forward Topology
typical power: 0 to ca. 250 W
relative cost: 120%
Push-Pull Topology
typical power: 100 to ca. 1000 W
relative cost: 175%
Half-Bridge Topology
typical power: 100 to ca. 500 W
relative cost: 190%
Full-Bridge Topology
typical power: 300 to >2000 W
relative cost: >200%
Resonance, zero voltage switched
typical power: >1000 W
forward converter (uses output transformer; allows multiple outputs and input-to-output isolation)
Ćuk converter (uses a capacitor for energy storage; produces negative voltage for positive input)
Inverting charge-pump (Modified Ćuk with single inductor; output voltage negative and higher-magnitude than positive input voltage)
SEPIC converter (two inductors; output voltage can be higher or lower than input voltage)
charge pump: use neither inductors nor transformers, but instead capacitors and diodes. (charge pumps used to generate very high voltages are usually called voltage multipliers).
Applications
Switched-mode PSUs in domestic products such as personal computers often have universal inputs, meaning that they can accept power from most mains supplies throughout the world, with rated frequencies from 50 Hz to 60 Hz and voltages from 100 V to 240 V (although a manual voltage "range" switch may be required). In practice they will operate from a much wider frequency range and often from a DC supply as well. In 2006, Intel proposed the use of a single 12 V supply inside PCs, due to the high efficiency of switch mode supplies directly on the PCB.[cite this quote]
Most modern desktop and laptop computers already have a DC-DC converter on the motherboard, to step down the voltage from the PSU or the battery to the CPU core voltage -- as low as 0.8V for low voltage CPU to typically 1.2-1.5V for desktop CPU as of 2007. Most laptop computers also have a DC-AC inverter to step up the voltage from the battery to drive the backlight, typically around 1000 Vrms[1].
Certain applications, such as in automobile industry and in some industrial settings, DC supply is chosen to avoid hum and interference and ease the integration of capacitors and batteries used to buffer the voltage. Most small aircraft use 24 volt DC, but larger aircraft often use 120V AC at 400Hz, though they often have a DC bus as well.
In the case of TV sets, for example, one can test the excellent regulation of the power supply by using a variac. For example, in some models made by Philips, the power supply starts when the voltage reaches around 90 volts. From there, one can change the voltage with the variac, and go as low as 40 volts and as high as 260, and the image will show absolutely no alterations.[citation needed]
See also
Energy Portal
Transformer
Leakage inductance
DC to DC converter
switching amplifier
External articles
Switching-Mode Power Supply Design
Unitrode Power Supply Design Seminar Books Online
Switching Power Supply design, PSpice simulation
Switched Mode Power Supplies. A fairly detailed discussion of converter types and control schemes. Does not cover modern switcher ICs.
Power Supply Industry News
Watkins, Steve, "History and development of switched-mode power supplies pre 1987". 1998 (ed. the bibliography is here.)
Power Supply Manufacturer database
[3]. A general description of DC-DC converters.
DC-DC Converter Tutorial This article outlines the different types of switching regulators used in DC-DC conversion.
Introduction to power supplies - National Semiconductor
Compendium and database of power supply efficiency regulations
SMPS Topologies Poster from TI
Book References
Abraham I. Pressman (1997). Switching Power Supply Design. McGraw-Hill. ISBN 0-07-052236-7.
Ned Mohan, Tore M. Undeland, William P. Robbins (2002). Power Electronics : Converters, Applications, and Design. Wiley. ISBN 0-471-22693-9.
Muhammad H. Rashid (2003). Power Electronics : Circuits, Devices, and Applications. Prentice Hall. ISBN 0-13-122815-3.
Fang Lin Luo, Hong Ye (2004). Advanced DC/DC Converters. CRC Press. ISBN 0-8493-1956-0.
Mingliang Liu (2006). Demystifying Switched-Capacitor Circuits. Elsevier. ISBN 0-7506-7907-7.
Fang Lin Luo, Hong Ye, Muhammad H. Rashid (2005). Power Digital Power Electronics and Applications. Elsevier. ISBN 0-12-088757-6.
Robert W. Erickson & Dragan Maksimovic (2001). Fundamentals of Power Electronics. Second edition. ISBN 0-7923-7270-0.
Marty Brown, Power Supply Cookbook. Newnes. 2nd ed 2001. ISBN 0-7506-7329-X.
CMOS ABCs
Also known as a RTC/NVRAM or CMOS RAM, CMOS is short for Complementary Metal-Oxide Semiconductor. CMOS is an on-board semiconductor chip powered by a CMOS battery inside IBM compatible computers that stores information such as the system time and system settings for your computer. A CMOS is similar to the Apple Macintosh computer's PRAM.
Saturday, December 1, 2007
What is LI and L2 Cache Memory
Posted by Ravi Raju at 2:41:00 AM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment