The information contained herein is subject to change without notice.
The information contained herein is presented only as a guide for the applications of our
products. No responsibility is assumed by TOSHIBA for any infringements of patents or
other rights of the third parties which may result from its use. No license is granted by
implication or otherwise under any patent or patent rights of TOSHIBA or others.
TOSHIBA is continually working to improve the quality and reliability of its products.
Nevertheless, semiconductor devices in general can malfunction or fail due to their
inherent electrical sensitivity and vulnerability to physical stress.
It is the responsibility of the buyer, when utilizing TOSHIBA products, to comply with
the standards of safety in making a safe design for the entire system, and to avoid
situations in which a malfunction or failure of such TOSHIBA products could cause loss
of human life, bodily injury or damage to property.
In developing your designs, please ensure that TOSHIBA products are used within
specified operating ranges as set forth in the most recent TOSHIBA products
specifications.
Also, please keep in mind the precautions and conditions set forth in the “Handling
Guide for Semiconductor Devices,” or “TOSHIBA Semiconductor Reliability
Handbook” etc..
The Toshiba products listed in this document are intended for usage in general
electronics applications ( computer, personal equipment, office equipment, measuring
equipment, industrial robotics, domestic appliances, etc.).
These Toshiba products are neither intended nor warranted for usage in equipment that
requires extraordinarily high quality and/or reliability or a malfunction or failure of
which may cause loss of human life or bodily injury (“Unintended Usage”).
Unintended Usage include atomic energy control instruments, airplane or spaceship
instruments, transportation instruments, traffic signal instruments, combustion control
instruments, medical instruments, all types of safety devices, etc.. Unintended Usage of
Toshiba products listed in this document shall be made at the customer’s own risk.
The products described in this document may include products subject to the foreign
exchange and foreign trade laws.
4-1 L
6-1 I
6-2 E
6-3 L
6-4 SDRAM M
7-1 L
7-2 S
7-3 C790 B
7-4 C790 B
7-5 C790 B
7-6 CG U
7-7 CG L
7-8 CG U
7-9 CG L
7-10 CG U
7-11 CG U
7-12 GC U
7-13 GC L
7-14 GC U
7-15 GC L
7-16 C790 I
7-17 G-B
7-18 C790 I
7-19 C790 B
7-20 NMI S
7-21 G-B
7-22 G-B
7-23 G-B
7-24 G-B
7-25 T
7-26 G-B
7-27 C790 B
7-28 G-B
7-29 G-B
7-30 G-B
7-31 G-B
7-32 G-B
8-1 S
8-2 G-B
8-3 S
8-4 PGB PCI C
8-5 PCI W
8-6 PGB R
8-7 PGB C
8-8 G2PU
8-9 G2PL
8-10 G2PB
8-11 G2PC
8-12 IA A
8-13 P2GB
8-14 G2PS
8-15 P2GS
8-16
7901 D
IST OF
NITIAL VALUES AFTER RESET
XAMPLE VALUES FOR FOUR
SDRAM M
IST OF
G-B
IST OF
YSTEM CONFIGURATION REGISTER FIELDS
US CONTROL REGISTER FIELDS
US STATUS REGISTER FIELDS
US BAD ADDRESS REGISTER FIELDS
TATUS REGISTER
US MASTER LATENCY TIMER
US BROKEN MASTER LATENCY TIMER
US SLAVE LATENCY TIMER
RIDGE RETRY TIMER FIELDS
GC C
HE
RIDGE STATUS REGISTER FIELDS
US ARBITER REQUEST STATUS REGISTER FIELDS
US ARBITRATION REQUEST TABLE
US ARBITER GRANTED REGISTER FIELDS
US ARBITER MASTER STATUS REGISTER FIELDS
US ARBITER GRANTED REGISTER FIELDS
IGNAL DESCRIPTION
US BURST SIZES
UPPORTED
INDOW SIZES
EGISTER ADDRESS MAP
ONTROL AND STATUS REGISTER FIELD DESCRIPTIONS
PPER ADDRESS REGISTER FIELD DEFINITIONS
OWER ADDRESS REGISTER FIELD DESCRIPTIONS
ASE ADDRESS REGISTER FIELD DESCRIPTIONS
YCLETYPE REGISTER FIELD DEFINITIONS
DDRESS REGISTER FIELD DEFINITIONS
ASE ADDRESS REGISTER FIELD DESCRIPTIONS
WAPCTRL REGISTER FIELD DESCRIPTIONS
WAPCTRL REGISTER FIELD DESCRIPTIONS
TOSHIBA are continually working to improve the quality and the reliability of their products.
Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent
electrical sensitivity and vulnerability to physical stress. It is the responsibility of the buyer, when
utilizing TOSHIBA products, to observe standards of safety, and to avoid situations in which a
malfunction or failure of a TOSHIBA product could cause loss of human life, bodily injury or
damage to property.
In developing your designs, please ensure that TOSHIBA products are used within specified
operating ranges as set forth in the most recent products specifications. Also, please keep in mind
the precautions and conditions set forth in the TOSHIBA Semiconductor Reliability Handbook.
1-1
1 Using Toshiba Semiconductors Safely
1-2
2. Safety Precautions
This section lists important precautions which users of semiconductor devices (and anyone else)
should observe in order to avoid injury and damage to property, and to ensure safe and correct use
of devices.
Please be sure that you understand the meanings of the labels and the graphic symbol described
below before you move on to the detailed descriptions of the precautions.
[Explanation of labels]
[Explanation of labels]
[Explanation of labels][Explanation of labels]
Indicates an imminently hazardous situation which will result in death or
serious injury if you do not follow instructions.
Indicates a potentially hazardous situation which could result in death or
serious injury if you do not follow instructions.
Indicates a potentially hazardous situation which if not avoided, may result
in minor injury or moderate injury.
2 Safety Precautions
[Explanation of graphic symbol]
[Explanation of graphic symbol]
[Explanation of graphic symbol][Explanation of graphic symbol]
Graphic symbolMeaning
Indicates that caution is required (laser beam is dangerous to eyes).
2-1
2 Safety Precautions
2.1 General Precautions regarding Semiconductor Devices
Do not use devices under conditions exceeding their absolute maximum ratings (e.g. current, voltage, power dissipation or
temperature).
This may cause the device to break down, degrade its performance, or cause it to catch fire or explode resulting in injury.
Do not insert devices in the wrong orientation.
Make sure that the positive and negative terminals of power supplies are connected correctly. Otherwise the rated maximum
current or power dissipation may be exceeded and the device may break down or undergo performance degradation, causing it to
catch fire or explode and resulting in injury.
When power to a device is on, do not touch the device’s heat sink.
Heat sinks become hot, so you may burn your hand.
Do not touch the tips of device leads.
Because some types of device have leads with pointed tips, you may prick your finger.
When conducting any kind of evaluation, inspection or testing, be sure to connect the testing equipment’s electrodes or probes to
the pins of the device under test before powering it on.
Otherwise, you may receive an electric shock causing injury.
Before grounding an item of measuring equipment or a soldering iron, check that there is no electrical leakage from it.
Electrical leakage may cause the device which you are testing or soldering to break down, or could give you an electric shock.
Always wear protective glasses when cutting the leads of a device with clippers or a similar tool.
If you do not, small bits of metal flying off the cut ends may damage your eyes.
2-2
2 Safety Precautions
2.2 Precautions Specific to Each Product Group
2.2.1 Optical semiconductor devices
When a visible semiconductor laser is operating, do not look directly into the laser beam or look through the optical system.
This is highly likely to impair vision, and in the worst case may cause blindness.
If it is necessary to examine the laser apparatus, for example to inspect its optical characteristics, always wear the appropriate
type of laser protective glasses as stipulated by IEC standard IEC825-1.
Ensure that the current flowing in an LED device does not exceed the device’s maximum rated current.
This is particularly important for resin-packaged LED devices, as excessive current may cause the package resin to blow up,
scattering resin fragments and causing injury.
When testing the dielectric strength of a photocoupler, use testing equipment which can shut off the supply voltage to the
photocoupler. If you detect a leakage current of more than 100 µA, use the testing equipment to shut off the photocoupler’s
supply voltage; otherwise a large short-circuit current will flow continuously, and the device may break down or burst into flames,
resulting in fire or injury.
When incorporating a visible semiconductor laser into a design, use the device’s internal photodetector or a separate
photodetector to stabilize the laser’s radiant power so as to ensure that laser beams exceeding the laser’s rated radiant power
cannot be emitted.
If this stabilizing mechanism does not work and the rated radiant power is exceeded, the device may break down or the
excessively powerful laser beams may cause injury.
2.2.2 Power devices
Never touch a power device while it is powered on. Also, after turning off a power device, do not touch it until it has thoroughly
discharged all remaining electrical charge.
Touching a power device while it is powered on or still charged could cause a severe electric shock, resulting in death or serious
injury.
When conducting any kind of evaluation, inspection or testing, be sure to connect the testing equipment’s electrodes or probes to
the device under test before powering it on.
When you have finished, discharge any electrical charge remaining in the device.
Connecting the electrodes or probes of testing equipment to a device while it is powered on may result in electric shock, causing
injury.
2-3
2 Safety Precautions
Do not use devices under conditions which exceed their absolute maximum ratings (current, voltage, power dissipation,
temperature etc.).
This may cause the device to break down, causing a large short-circuit current to flow, which may in turn cause it to catch fire or
explode, resulting in fire or injury.
Use a unit which can detect short-circuit currents and which will shut off the power supply if a short-circuit occurs.
If the power supply is not shut off, a large short-circuit current will flow continuously, which may in turn cause the device to catch
fire or explode, resulting in fire or injury.
When designing a case for enclosing your system, consider how best to protect the user from shrapnel in the event of the device
catching fire or exploding.
Flying shrapnel can cause injury.
When conducting any kind of evaluation, inspection or testing, always use protective safety tools such as a cover for the device.
Otherwise you may sustain injury caused by the device catching fire or exploding.
Make sure that all metal casings in your design are grounded to earth.
Even in modules where a device’s electrodes and metal casing are insulated, capacitance in the module may cause the
electrostatic potential in the casing to rise.
Dielectric breakdown may cause a high voltage to be applied to the casing, causing electric shock and injury to anyone touching it.
When designing the heat radiation and safety features of a system incorporating high-speed rectifiers, remember to take the
device’s forward and reverse losses into account.
The leakage current in these devices is greater than that in ordinary rectifiers; as a result, if a high-speed rectifier is used in an
extreme environment (e.g. at high temperature or high voltage), its reverse loss may increase, causing thermal runaway to occur.
This may in turn cause the device to explode and scatter shrapnel, resulting in injury to the user.
A design should ensure that, except when the main circuit of the device is active, reverse bias is applied to the device gate while
electricity is conducted to control circuits, so that the main circuit will become inactive.
Malfunction of the device may cause serious accidents or injuries.
When conducting any kind of evaluation, inspection or testing, either wear protective gloves or wait until the device has cooled
properly before handling it.
Devices become hot when they are operated. Even after the power has been turned off, the device will retain residual heat which
may cause a burn to anyone touching it.
2.2.3 Bipolar ICs (for use in automobiles)
If your design includes an inductive load such as a motor coil, incorporate diodes or similar devices into the design to prevent
negative current from flowing in.
The load current generated by powering the device on and off may cause it to function erratically or to break down, which could in
turn cause injury.
Ensure that the power supply to any device which incorporates protective functions is stable.
If the power supply is unstable, the device may operate erratically, preventing the protective functions from working correctly. If
protective functions fail, the device may break down causing injury to the user.
2-4
3 General Safety Precautions and Usage Considerations
3. General Safety Precautions and Usage Considerations
This section is designed to help you gain a better understanding of semiconductor devices, so as to
ensure the safety, quality and reliability of the devices which you incorporate into your designs.
3.1 From Incoming to Shipping
3.1.1 Electrostatic discharge (ESD)
When handling individual devices (which are not yet mounted on a printed
circuit board), be sure that the environment is protected against
electrostatic electricity. Operators should wear anti-static clothing, and
containers and other objects which come into direct contact with devices
should be made of anti-static materials and should be grounded to earth via
an 0.5- to 1.0-MΩ protective resistor.
Please follow the precautions described below; this is particularly important
for devices which are marked “Be careful of static.”.
(1) Work environment
•
When humidity in the working environment decreases, the human body and other insulators
can easily become charged with static electricity due to friction. Maintain the recommended
humidity of 40% to 60% in the work environment, while also taking into account the fact that
moisture-proof-packed products may absorb moisture after unpacking.
•
Be sure that all equipment, jigs and tools in the working area are grounded to earth.
•
Place a conductive mat over the floor of the work area, or take other appropriate measures, so
that the floor surface is protected against static electricity and is grounded to earth. The surface
resistivity should be 10
8
10
Ω
•
Cover the workbench surface also with a conductive mat (with a surface resistivity of 104 to
8
Ω/sq, for a resistance between surface and ground of 7.5 × 105 to 10
10
is to disperse static electricity on the surface (through resistive components) and ground it to
earth. Workbench surfaces must not be constructed of low-resistance metallic materials that
allow rapid static discharge when a charged device touches them directly.
•
Pay attention to the following points when using automatic equipment in your workplace:
(a) When picking up ICs with a vacuum unit, use a conductive rubber fitting on the end of the
pick-up wand to protect against electrostatic charge.
(b) Minimize friction on IC package surfaces. If some rubbing is unavoidable due to the device’s
mechanical structure, minimize the friction plane or use material with a small friction
coefficient and low electrical resistance. Also, consider the use of an ionizer.
4
to 108 Ω/sq and the resistance between surface and ground, 7.5 × 105 to
8
Ω) . The purpose of this
(c) In sections which come into contact with device lead terminals, use a material which
dissipates static electricity.
(d) Ensure that no statically charged bodies (such as work clothes or the human body) touch
the devices.
3-1
3 General Safety Precautions and Usage Considerations
(e) Make sure that sections of the tape carrier which come into contact with installation
devices or other electrical machinery are made of a low-resistance material.
(f)Make sure that jigs and tools used in the assembly process do not touch devices.
(g) In processes in which packages may retain an electrostatic charge, use an ionizer to
neutralize the ions.
•
Make sure that CRT displays in the working area are protected against static charge, for
example by a VDT filter. As much as possible, avoid turning displays on and off. Doing so can
cause electrostatic induction in devices.
•
Keep track of charged potential in the working area by taking periodic measurements.
•
Ensure that work chairs are protected by an anti-static textile cover and are grounded to the
floor surface by a grounding chain. (Suggested resistance between the seat surface and
grounding chain is 7.5 × 10
5
to 10
12
Ω.)
•
Install anti-static mats on storage shelf surfaces. (Suggested surface resistivity is 104 to 10
Ω/sq; suggested resistance between surface and ground is 7.5 × 10
•
For transport and temporary storage of devices, use containers (boxes, jigs or bags) that are
made of anti-static materials or materials which dissipate electrostatic charge.
•
Make sure that cart surfaces which come into contact with device packaging are made of
materials which will conduct static electricity, and verify that they are grounded to the floor
surface via a grounding chain.
•
In any location where the level of static electricity is to be closely controlled, the ground
resistance level should be Class 3 or above. Use different ground wires for all items of
equipment which may come into physical contact with devices.
(2) Operating environment
•
Operators must wear anti-static clothing and conductive shoes (or
a leg or heel strap).
•
Operators must wear a wrist strap grounded to earth via a
resistor of about 1 MΩ.
•
Soldering irons must be grounded from iron tip to earth, and must be used only at low voltages
(6 V to 24 V).
5
to 108 Ω.)
8
•
If the tweezers you use are likely to touch the device terminals, use anti-static tweezers and in
particular avoid metallic tweezers. If a charged device touches a low-resistance tool, rapid
discharge can occur. When using vacuum tweezers, attach a conductive chucking pat to the tip,
and connect it to a dedicated ground used especially for anti-static purposes (suggested
resistance value: 10
•
Do not place devices or their containers near sources of strong electrical fields (such as above a
CRT).
4
to 108 Ω).
3-2
3 General Safety Precautions and Usage Considerations
•
When storing printed circuit boards which have devices mounted on them, use a board
container or bag that is protected against static charge. To avoid the occurrence of static charge
or discharge due to friction, keep the boards separate from one other and do not stack them
directly on top of one another.
•
Ensure, if possible, that any articles (such as clipboards) which are brought to any location
where the level of static electricity must be closely controlled are constructed of anti-static
materials.
•
In cases where the human body comes into direct contact with a device, be sure to wear antistatic finger covers or gloves (suggested resistance value: 10
•
Equipment safety covers installed near devices should have resistance ratings of 109 Ω or less.
•
If a wrist strap cannot be used for some reason, and there is a possibility of imparting friction to
devices, use an ionizer.
•
The transport film used in TCP products is manufactured from materials in which static
charges tend to build up. When using these products, install an ionizer to prevent the film from
being charged with static electricity. Also, ensure that no static electricity will be applied to the
product’s copper foils by taking measures to prevent static occuring in the peripheral
equipment.
8
Ω or less).
3.1.2 Vibration, impact and stress
Handle devices and packaging materials with care. To avoid damage
to devices, do not toss or drop packages. Ensure that devices are not
subjected to mechanical vibration or shock during transportation.
Ceramic package devices and devices in canister-type packages which
have empty space inside them are subject to damage from vibration
and shock because the bonding wires are secured only at their ends.
Plastic molded devices, on the other hand, have a relatively high level
of resistance to vibration and mechanical shock because their bonding
wires are enveloped and fixed in resin. However, when any device or package type is installed in
target equipment, it is to some extent susceptible to wiring disconnections and other damage from
vibration, shock and stressed solder junctions. Therefore when devices are incorporated into the
design of equipment which will be subject to vibration, the structural design of the equipment
must be thought out carefully.
If a device is subjected to especially strong vibration, mechanical shock or stress, the package or
the chip itself may crack. In products such as CCDs which incorporate window glass, this could
cause surface flaws in the glass or cause the connection between the glass and the ceramic to
separate.
Furthermore, it is known that stress applied to a semiconductor device through the package
changes the resistance characteristics of the chip because of piezoelectric effects. In analog circuit
design attention must be paid to the problem of package stress as well as to the dangers of
vibration and shock as described above.
Vibration
3-3
3.2 Storage
3.2.1 General storage
•
Avoid storage locations where devices will be exposed to moisture or direct sunlight.
•
Follow the instructions printed on the device cartons regarding
transportation and storage.
•
The storage area temperature should be kept within a
temperature range of 5°C to 35°C, and relative humidity should
be maintained at between 45% and 75%.
•
Do not store devices in the presence of harmful (especially
corrosive) gases, or in dusty conditions.
•
Use storage areas where there is minimal temperature fluctuation. Rapid temperature changes
can cause moisture to form on stored devices, resulting in lead oxidation or corrosion. As a result,
the solderability of the leads will be degraded.
•
When repacking devices, use anti-static containers.
3 General Safety Precautions and Usage Considerations
Humidity:
Temperature:
•
Do not allow external forces or loads to be applied to devices while they are in storage.
•
If devices have been stored for more than two years, their electrical characteristics should be
tested and their leads should be tested for ease of soldering before they are used.
3.2.2 Moisture-proof packing
Moisture-proof packing should be handled with care. The handling
procedure specified for each packing type should be followed scrupulously.
If the proper procedures are not followed, the quality and reliability of
devices may be degraded. This section describes general precautions for
handling moisture-proof packing. Since the details may differ from device
to device, refer also to the relevant individual datasheets or databook.
(1) General precautions
Follow the instructions printed on the device cartons regarding transportation and storage.
•
Do not drop or toss device packing. The laminated aluminum material in it can be rendered
ineffective by rough handling.
•
The storage area temperature should be kept within a temperature range of 5°C to 30°C, and
relative humidity should be maintained at 90% (max). Use devices within 12 months of the date
marked on the package seal.
3-4
3 General Safety Precautions and Usage Considerations
•
If the 12-month storage period has expired, or if the 30% humidity indicator shown in Figure 1
is pink when the packing is opened, it may be advisable, depending on the device and packing
type, to back the devices at high temperature to remove any moisture. Please refer to the table
below. After the pack has been opened, use the devices in a 5°C to 30°C. 60% RH environment
and within the effective usage period listed on the moisture-proof package. If the effective usage
period has expired, or if the packing has been stored in a high-humidity environment, bake the
devices at high temperature.
PackingMoisture removal
TrayIf the packing bears the “Heatproof” marking or indicates the maximum temperature which it can
withstand, bake at 125°C for 20 hours. (Some devices require a different procedure.)
TubeTransfer devices to trays bearing the “Heatproof” marking or indicating the temperature which they
can withstand, or to aluminum tubes before baking at 125°C for 20 hours.
TapeDeviced packed on tape cannot be baked and must be used within the effective usage period after
unpacking, as specified on the packing.
•
When baking devices, protect the devices from static electricity.
•
Moisture indicators can detect the approximate humidity level at a standard temperature of
25°C. 6-point indicators and 3-point indicators are currently in use, but eventually all indicators
will be 3-point indicators.
HUMIDITY INDICATOR
60%
50%
40%
30%
20%
10%
READ AT LAVENDER
BETWEEN PINK & BLUE
(a) 6-point indicator(b) 3-point indicator
DANGER IF PINK
HUMIDITY INDICATOR
CHANGE DESICCANT
READ AT LAVENDER
BETWEEN PINK & BLUE
40
30
20
Figure 1 Humidity indicator
DANGER IF PINK
3-5
3 General Safety Precautions and Usage Considerations
3.3 Design
Care must be exercised in the design of electronic equipment to achieve the desired reliability. It is
important not only to adhere to specifications concerning absolute maximum ratings and
recommended operating conditions, it is also important to consider the overall environment in
which equipment will be used, including factors such as the ambient temperature, transient noise
and voltage and current surges, as well as mounting conditions which affect device reliability. This
section describes some general precautions which you should observe when designing circuits and
when mounting devices on printed circuit boards.
For more detailed information about each product family, refer to the relevant individual technical
datasheets available from Toshiba.
3.3.1 Absolute maximum ratings
Do not use devices under conditions in which their absolute maximum ratings
(e.g. current, voltage, power dissipation or temperature) will be exceeded. A
device may break down or its performance may be degraded, causing it to
catch fire or explode resulting in injury to the user.
The absolute maximum ratings are rated values which must not be
exceeded during operation, even for an instant. Although absolute
maximum ratings differ from product to product, they essentially
concern the voltage and current at each pin, the allowable power
dissipation, and the junction and storage temperatures.
If the voltage or current on any pin exceeds the absolute maximum
rating, the device’s internal circuitry can become degraded. In the worst
case, heat generated in internal circuitry can fuse wiring or cause the semiconductor chip to break
down.
If storage or operating temperatures exceed rated values, the package seal can deteriorate or the
wires can become disconnected due to the differences between the thermal expansion coefficients
of the materials from which the device is constructed.
3.3.2 Recommended operating conditions
The recommended operating conditions for each device are those necessary to guarantee that the
device will operate as specified in the datasheet.
If greater reliability is required, derate the device’s absolute maximum ratings for voltage, current,
power and temperature before using it.
3.3.3 Derating
When incorporating a device into your design, reduce its rated absolute maximum voltage, current,
power dissipation and operating temperature in order to ensure high reliability.
Since derating differs from application to application, refer to the technical datasheets available
for the various devices used in your design.
3.3.4 Unused pins
If unused pins are left open, some devices can exhibit input instability problems, resulting in
malfunctions such as abrupt increase in current flow. Similarly, if the unused output pins on a
device are connected to the power supply pin, the ground pin or to other output pins, the IC may
malfunction or break down.
3-6
Since the details regarding the handling of unused pins differ from device to device and from pin
to pin, please follow the instructions given in the relevant individual datasheets or databook.
CMOS logic IC inputs, for example, have extremely high impedance. If an input pin is left open, it
can easily pick up extraneous noise and become unstable. In this case, if the input voltage level
reaches an intermediate level, it is possible that both the P-channel and N-channel transistors
will be turned on, allowing unwanted supply current to flow. Therefore, ensure that the unused
input pins of a device are connected to the power supply (Vcc) pin or ground (GND) pin of the same
device. For details of what to do with the pins of heat sinks, refer to the relevant technical
datasheet and databook.
3.3.5 Latch-up
Latch-up is an abnormal condition inherent in CMOS devices, in which Vcc gets shorted to ground.
This happens when a parasitic PN-PN junction (thyristor structure) internal to the CMOS chip is
turned on, causing a large current of the order of several hundred mA or more to flow between Vcc
and GND, eventually causing the device to break down.
Latch-up occurs when the input or output voltage exceeds the rated value, causing a large current
to flow in the internal chip, or when the voltage on the Vcc (Vdd) pin exceeds its rated value,
forcing the internal chip into a breakdown condition. Once the chip falls into the latch-up state,
even though the excess voltage may have been applied only for an instant, the large current
continues to flow between Vcc (Vdd) and GND (Vss). This causes the device to heat up and, in
extreme cases, to emit gas fumes as well. To avoid this problem, observe the following precautions:
3 General Safety Precautions and Usage Considerations
(1) Do not allow voltage levels on the input and output pins either to rise above Vcc (Vdd) or to
fall below GND (Vss). Also, follow any prescribed power-on sequence, so that power is applied
gradually or in steps rather than abruptly.
(2) Do not allow any abnormal noise signals to be applied to the device.
(3) Set the voltage levels of unused input pins to Vcc (Vdd) or GND (Vss).
(4) Do not connect output pins to one another.
3.3.6 Input/Output protection
Wired-AND configurations, in which outputs are connected together, cannot be used, since this
short-circuits the outputs. Outputs should, of course, never be connected to Vcc (Vdd) or GND
(Vss).
Furthermore, ICs with tri-state outputs can undergo performance degradation if a shorted output
current is allowed to flow for an extended period of time. Therefore, when designing circuits, make
sure that tri-state outputs will not be enabled simultaneously.
3.3.7 Load capacitance
Some devices display increased delay times if the load capacitance is large. Also, large charging
and discharging currents will flow in the device, causing noise. Furthermore, since outputs are
shorted for a relatively long time, wiring can become fused.
Consult the technical information for the device being used to determine the recommended load
capacitance.
3-7
3.3.8 Thermal design
The failure rate of semiconductor devices is greatly increased as operating temperatures increase.
As shown in Figure 2, the internal thermal stress on a device is the sum of the ambient
temperature and the temperature rise due to power dissipation in the device. Therefore, to
achieve optimum reliability, observe the following precautions concerning thermal design:
(1) Keep the ambient temperature (Ta) as low as possible.
(2) If the device’s dynamic power dissipation is relatively large, select the most appropriate
circuit board material, and consider the use of heat sinks or of forced air cooling. Such
measures will help lower the thermal resistance of the package.
(3) Derate the device’s absolute maximum ratings to minimize thermal stress from power
dissipation.
θja = θjc + θca
θja = (Tj–Ta) / P
θjc = (Tj–Tc) / P
θca = (Tc–Ta) / Pin which θja = thermal resistance between junction and surrounding air (°C/W)
θjc = thermal resistance between junction and package surface, or internal thermal
resistance (°C/W)
θca = thermal resistance between package surface and surrounding air, or external
thermal resistance (°C/W)
Tj = junction temperature or chip temperature (°C)
Tc = package surface temperature or case temperature (°C)
Ta = ambient temperature (°C)
P = power dissipation (W)
3 General Safety Precautions and Usage Considerations
3.3.9 Interfacing
When connecting inputs and outputs between devices, make sure input voltage (VIL/VIH) and
output voltage (V
connecting devices operating at different supply voltages, such as in a dual-power-supply system,
be aware that erroneous power-on and power-off sequences can result in device breakdown. For
details of how to interface particular devices, consult the relevant technical datasheets and
databooks. If you have any questions or doubts about interfacing, contact your nearest Toshiba
office or distributor.
OL/VOH
Ta
θca
Tc
θjc
Tj
Figure 2 Thermal resistance of package
) levels are matched. Otherwise, the devices may malfunction. When
3-8
3.3.10 Decoupling
Spike currents generated during switching can cause Vcc (Vdd) and GND (Vss) voltage levels to
fluctuate, causing ringing in the output waveform or a delay in response speed. (The power supply
and GND wiring impedance is normally 50 Ω to 100 Ω.) For this reason, the impedance of power
supply lines with respect to high frequencies must be kept low. This can be accomplished by using
thick and short wiring for the Vcc (Vdd) and GND (Vss) lines and by installing decoupling
capacitors (of approximately 0.01 µF to 1 µF capacitance) as high-frequency filters between Vcc
(Vdd) and GND (Vss) at strategic locations on the printed circuit board.
For low-frequency filtering, it is a good idea to install a 10- to 100-µF capacitor on the printed
circuit board (one capacitor will suffice). If the capacitance is excessively large, however, (e.g.
several thousand µF) latch-up can be a problem. Be sure to choose an appropriate capacitance
value.
An important point about wiring is that, in the case of high-speed logic ICs, noise is caused mainly
by reflection and crosstalk, or by the power supply impedance. Reflections cause increased signal
delay, ringing, overshoot and undershoot, thereby reducing the device’s safety margins with
respect to noise. To prevent reflections, reduce the wiring length by increasing the device
mounting density so as to lower the inductance (L) and capacitance (C) in the wiring. Extreme
care must be taken, however, when taking this corrective measure, since it tends to cause
crosstalk between the wires. In practice, there must be a trade-off between these two factors.
3 General Safety Precautions and Usage Considerations
3.3.11 External noise
Printed circuit boards with long I/O or signal pattern lines are
vulnerable to induced noise or surges from outside sources.
Consequently, malfunctions or breakdowns can result from
overcurrent or overvoltage, depending on the types of device
used. To protect against noise, lower the impedance of the
pattern line or insert a noise-canceling circuit. Protective
measures must also be taken against surges.
For details of the appropriate protective measures for a
particular device, consult the relevant databook.
3.3.12 Electromagnetic interference
Widespread use of electrical and electronic equipment in recent years has brought with it radio
and TV reception problems due to electromagnetic interference. To use the radio spectrum
effectively and to maintain radio communications quality, each country has formulated
regulations limiting the amount of electromagnetic interference which can be generated by
individual products.
Electromagnetic interference includes conduction noise propagated through power supply and
telephone lines, and noise from direct electromagnetic waves radiated by equipment. Different
measurement methods and corrective measures are used to assess and counteract each specific
type of noise.
Input/Output
Signals
Difficulties in controlling electromagnetic interference derive from the fact that there is no
method available which allows designers to calculate, at the design stage, the strength of the
electromagnetic waves which will emanate from each component in a piece of equipment. For this
reason, it is only after the prototype equipment has been completed that the designer can take
measurements using a dedicated instrument to determine the strength of electromagnetic
interference waves. Yet it is possible during system design to incorporate some measures for the
prevention of electromagnetic interference, which can facilitate taking corrective measures once
the design has been completed. These include installing shields and noise filters, and increasing
3-9
the thickness of the power supply wiring patterns on the printed circuit board. One effective
method, for example, is to devise several shielding options during design, and then select the most
suitable shielding method based on the results of measurements taken after the prototype has
been completed.
3.3.13 Peripheral circuits
In most cases semiconductor devices are used with peripheral circuits and components. The input
and output signal voltages and currents in these circuits must be chosen to match the
semiconductor device’s specifications. The following factors must be taken into account.
(1) Inappropriate voltages or currents applied to a device’s input pins may cause it to operate
erratically. Some devices contain pull-up or pull-down resistors. When designing your system,
remember to take the effect of this on the voltage and current levels into account.
(2) The output pins on a device have a predetermined external circuit drive capability. If this
drive capability is greater than that required, either incorporate a compensating circuit into
your design or carefully select suitable components for use in external circuits.
3.3.14 Safety standards
Each country has safety standards which must be observed. These safety standards include
requirements for quality assurance systems and design of device insulation. Such requirements
must be fully taken into account to ensure that your design conforms to the applicable safety
standards.
3 General Safety Precautions and Usage Considerations
3.3.15 Other precautions
(1) When designing a system, be sure to incorporate fail-safe and other appropriate measures
according to the intended purpose of your system. Also, be sure to debug your system under
actual board-mounted conditions.
(2) If a plastic-package device is placed in a strong electric field, surface leakage may occur due to
the charge-up phenomenon, resulting in device malfunction. In such cases take appropriate
measures to prevent this problem, for example by protecting the package surface with a
conductive shield.
(3) With some microcomputers and MOS memory devices, caution is required when powering on
or resetting the device. To ensure that your design does not violate device specifications,
consult the relevant databook for each constituent device.
(4) Ensure that no conductive material or object (such as a metal pin) can drop onto and short the
leads of a device mounted on a printed circuit board.
3.4 Inspection, Testing and Evaluation
3.4.1 Grounding
Ground all measuring instruments, jigs, tools and soldering irons to earth.
Electrical leakage may cause a device to break down or may result in electric
shock.
3-10
3.4.2 Inspection Sequence
c Do not insert devices in the wrong orientation. Make sure that the positive
and negative electrodes of the power supply are correctly connected.
Otherwise, the rated maximum current or maximum power dissipation
may be exceeded and the device may break down or undergo performance
degradation, causing it to catch fire or explode, resulting in injury to the
user.
d When conducting any kind of evaluation, inspection or testing using AC
power with a peak voltage of 42.4 V or DC power exceeding 60 V, be sure to
connect the electrodes or probes of the testing equipment to the device
under test before powering it on. Connecting the electrodes or probes of
testing equipment to a device while it is powered on may result in electric
shock, causing injury.
(1) Apply voltage to the test jig only after inserting the device securely into it. When applying or
removing power, observe the relevant precautions, if any.
(2) Make sure that the voltage applied to the device is off before removing the device from the
test jig. Otherwise, the device may undergo performance degradation or be destroyed.
(3) Make sure that no surge voltages from the measuring equipment are applied to the device.
3 General Safety Precautions and Usage Considerations
(4) The chips housed in tape carrier packages (TCPs) are bare chips and are therefore exposed.
During inspection take care not to crack the chip or cause any flaws in it.
Electrical contact may also cause a chip to become faulty. Therefore make sure that nothing
comes into electrical contact with the chip.
3.5 Mounting
There are essentially two main types of semiconductor device package: lead insertion and surface
mount. During mounting on printed circuit boards, devices can become contaminated by flux or
damaged by thermal stress from the soldering process. With surface-mount devices in particular,
the most significant problem is thermal stress from solder reflow, when the entire package is
subjected to heat. This section describes a recommended temperature profile for each mounting
method, as well as general precautions which you should take when mounting devices on printed
circuit boards. Note, however, that even for devices with the same package type, the appropriate
mounting method varies according to the size of the chip and the size and shape of the lead frame.
Therefore, please consult the relevant technical datasheet and databook.
3.5.1 Lead forming
c Always wear protective glasses when cutting the leads of a device with
clippers or a similar tool. If you do not, small bits of metal flying off the cut
ends may damage your eyes.
d Do not touch the tips of device leads. Because some types of device have
leads with pointed tips, you may prick your finger.
Semiconductor devices must undergo a process in which the leads are cut and formed before the
devices can be mounted on a printed circuit board. If undue stress is applied to the interior of a
device during this process, mechanical breakdown or performance degradation can result. This is
attributable primarily to differences between the stress on the device’s external leads and the
stress on the internal leads. If the relative difference is great enough, the device’s internal leads,
adhesive properties or sealant can be damaged. Observe these precautions during the leadforming process (this does not apply to surface-mount devices):
3-11
3 General Safety Precautions and Usage Considerations
(1) Lead insertion hole intervals on the printed circuit board should match the lead pitch of the
device precisely.
(2) If lead insertion hole intervals on the printed circuit board do not precisely match the lead
pitch of the device, do not attempt to forcibly insert devices by pressing on them or by pulling
on their leads.
(3) For the minimum clearance specification between a device and a
printed circuit board, refer to the relevant device’s datasheet and
databook. If necessary, achieve the required clearance by forming
the device’s leads appropriately. Do not use the spacers which are
used to raise devices above the surface of the printed circuit board
during soldering to achieve clearance. These spacers normally
continue to expand due to heat, even after the solder has begun to solidify; this applies severe
stress to the device.
(4) Observe the following precautions when forming the leads of a device prior to mounting.
•
Use a tool or jig to secure the lead at its base (where the lead meets the device package) while
bending so as to avoid mechanical stress to the device. Also avoid bending or stretching device
leads repeatedly.
•
Be careful not to damage the lead during lead forming.
•
Follow any other precautions described in the individual datasheets and databooks for each
device and package type.
3.5.2 Socket mounting
(1) When socket mounting devices on a printed circuit board, use sockets which match the
inserted device’s package.
(2) Use sockets whose contacts have the appropriate contact pressure. If the contact pressure is
insufficient, the socket may not make a perfect contact when the device is repeatedly inserted
and removed; if the pressure is excessively high, the device leads may be bent or damaged
when they are inserted into or removed from the socket.
(3) When soldering sockets to the printed circuit board, use sockets whose construction prevents
flux from penetrating into the contacts or which allows flux to be completely cleaned off.
(4) Make sure the coating agent applied to the printed circuit board for moisture-proofing
purposes does not stick to the socket contacts.
(5) If the device leads are severely bent by a socket as it is inserted or removed and you wish to
repair the leads so as to continue using the device, make sure that this lead correction is only
performed once. Do not use devices whose leads have been corrected more than once.
(6) If the printed circuit board with the devices mounted on it will be subjected to vibration from
external sources, use sockets which have a strong contact pressure so as to prevent the
sockets and devices from vibrating relative to one another.
3.5.3 Soldering temperature profile
The soldering temperature and heating time vary from device to device. Therefore, when
specifying the mounting conditions, refer to the individual datasheets and databooks for the
devices used.
3-12
3 General Safety Precautions and Usage Considerations
(1) Using a soldering iron
Complete soldering within ten seconds for lead temperatures of up to 260°C, or within three
seconds for lead temperatures of up to 350°C.
(2) Using medium infrared ray reflow
•
Heating top and bottom with long or medium infrared rays is recommended (see Figure 3).
Medium infrared ray heater
(reflow)
Product flow
Long infrared ray heater (preheating)
Figure 3 Heating top and bottom with long or medium infrared rays
•
Complete the infrared ray reflow process within 30 seconds at a package surface temperature of
between 210°C and 240°C.
•
Refer to Figure 4 for an example of a good temperature profile for infrared or hot air reflow.
(°C)
240
210
160
140
Package surface temperature
60-120 s
30 s
or less
Time (s)
Figure 4 Sample temperature profile for infrared or hot air reflow
(3) Using hot air reflow
•
Complete hot air reflow within 30 seconds at a package surface temperature of between 210°C
and 240°C.
•
For an example of a recommended temperature profile, refer to Figure 4 above.
(4) Using solder flow
•
Apply preheating for 60 to 120 seconds at a temperature of 150°C.
•
For lead insertion-type packages, complete solder flow within 10 seconds with the
temperature at the stopper (or, if there is no stopper, at a location more than 1.5 mm from
the body) which does not exceed 260°C.
3-13
3 General Safety Precautions and Usage Considerations
•
For surface-mount packages, complete soldering within 5 seconds at a temperature of 250°C or
less in order to prevent thermal stress in the device.
•
Figure 5 shows an example of a recommended temperature profile for surface-mount packages
using solder flow.
(°C)
250
160
140
Package surface temperature
60-120 s
Time (s)
Figure 5 Sample temperature profile for solder flow
5 s
or less
3.5.4 Flux cleaning and ultrasonic cleaning
(1) When cleaning circuit boards to remove flux, make sure that no residual reactive ions such as
Na or Cl remain. Note that organic solvents react with water to generate hydrogen chloride
and other corrosive gases which can degrade device performance.
(2) Washing devices with water will not cause any problems. However, make sure that no
reactive ions such as sodium and chlorine are left as a residue. Also, be sure to dry devices
sufficiently after washing.
(3) Do not rub device markings with a brush or with your hand during cleaning or while the
devices are still wet from the cleaning agent. Doing so can rub off the markings.
(4) The dip cleaning, shower cleaning and steam cleaning processes all involve the chemical
action of a solvent. Use only recommended solvents for these cleaning methods. When
immersing devices in a solvent or steam bath, make sure that the temperature of the liquid is
50°C or below, and that the circuit board is removed from the bath within one minute.
(5) Ultrasonic cleaning should not be used with hermetically-sealed ceramic packages such as a
leadless chip carrier (LCC), pin grid array (PGA) or charge-coupled device (CCD), because the
bonding wires can become disconnected due to resonance during the cleaning process. Even if
a device package allows ultrasonic cleaning, limit the duration of ultrasonic cleaning to as
short a time as possible, since long hours of ultrasonic cleaning degrade the adhesion between
the mold resin and the frame material. The following ultrasonic cleaning conditions are
recommended:
Frequency: 27 kHz ∼ 29 kHz
2
Ultrasonic output power: 300 W or less (0.25 W/cm
or less)
Cleaning time: 30 seconds or less
Suspend the circuit board in the solvent bath during ultrasonic cleaning in such a way that
the ultrasonic vibrator does not come into direct contact with the circuit board or the device.
3-14
3 General Safety Precautions and Usage Considerations
3.5.5 No cleaning
If analog devices or high-speed devices are used without being cleaned, flux residues may cause
minute amounts of leakage between pins. Similarly, dew condensation, which occurs in
environments containing residual chlorine when power to the device is on, may cause betweenlead leakage or migration. Therefore, Toshiba recommends that these devices be cleaned.
However, if the flux used contains only a small amount of halogen (0.05W% or less), the devices
may be used without cleaning without any problems.
3.5.6 Mounting tape carrier packages (TCPs)
(1) When tape carrier packages (TCPs) are mounted, measures must be taken to prevent
electrostatic breakdown of the devices.
(2) If devices are being picked up from tape, or outer lead bonding (OLB) mounting is being
carried out, consult the manufacturer of the insertion machine which is being used, in order
to establish the optimum mounting conditions in advance and to avoid any possible hazards.
(3) The base film, which is made of polyimide, is hard and thin. Be careful not to cut or scratch
your hands or any objects while handling the tape.
(4) When punching tape, try not to scatter broken pieces of tape too much.
(5) Treat the extra film, reels and spacers left after punching as industrial waste, taking care not
to destroy or pollute the environment.
(6) Chips housed in tape carrier packages (TCPs) are bare chips and therefore have their reverse
side exposed. To ensure that the chip will not be cracked during mounting, ensure that no
mechanical shock is applied to the reverse side of the chip. Electrical contact may also cause a
chip to fail. Therefore, when mounting devices, make sure that nothing comes into electrical
contact with the reverse side of the chip.
If your design requires connecting the reverse side of the chip to the circuit board, please
consult Toshiba or a Toshiba distributor beforehand.
3.5.7 Mounting chips
Devices delivered in chip form tend to degrade or break under external forces much more easily
than plastic-packaged devices. Therefore, caution is required when handling this type of device.
(1) Mount devices in a properly prepared environment so that chip surfaces will not be exposed to
polluted ambient air or other polluted substances.
(2) When handling chips, be careful not to expose them to static electricity.
In particular, measures must be taken to prevent static damage during the mounting of chips.
With this in mind, Toshiba recommend mounting all peripheral parts first and then mounting
chips last (after all other components have been mounted).
(3) Make sure that PCBs (or any other kind of circuit board) on which chips are being mounted do
not have any chemical residues on them (such as the chemicals which were used for etching
the PCBs).
(4) When mounting chips on a board, use the method of assembly that is most suitable for
maintaining the appropriate electrical, thermal and mechanical properties of the
semiconductor devices used.
* For details of devices in chip form, refer to the relevant device’s individual datasheets.
3-15
3.5.8 Circuit board coating
When devices are to be used in equipment requiring a high degree of reliability or in extreme
environments (where moisture, corrosive gas or dust is present), circuit boards may be coated for
protection. However, before doing so, you must carefully consider the possible stress and
contamination effects that may result and then choose the coating resin which results in the
minimum level of stress to the device.
3.5.9 Heat sinks
(1) When attaching a heat sink to a device, be careful not to apply excessive force to the device in
the process.
(2) When attaching a device to a heat sink by fixing it at two or more locations, evenly tighten all
the screws in stages (i.e. do not fully tighten one screw while the rest are still only loosely
tightened). Finally, fully tighten all the screws up to the specified torque.
(3) Drill holes for screws in the heat sink exactly as specified. Smooth the
surface by removing burrs and protrusions or indentations which might
interfere with the installation of any part of the device.
(4) A coating of silicone compound can be applied between the heat sink and
the device to improve heat conductivity. Be sure to apply the coating
thinly and evenly; do not use too much. Also, be sure to use a non-volatile
compound, as volatile compounds can crack after a time, causing the heat
radiation properties of the heat sink to deteriorate.
3 General Safety Precautions and Usage Considerations
(5) If the device is housed in a plastic package, use caution when selecting the type of silicone
compound to be applied between the heat sink and the device. With some types, the base oil
separates and penetrates the plastic package, significantly reducing the useful life of the
device.
Two recommended silicone compounds in which base oil separation is not a problem are
YG6260 from Toshiba Silicone.
(6) Heat-sink-equipped devices can become very hot during operation. Do not touch them, or you
may sustain a burn.
3.5.10 Tightening torque
(1) Make sure the screws are tightened with fastening torques not exceeding the torque values
stipulated in individual datasheets and databooks for the devices used.
(2) Do not allow a power screwdriver (electrical or air-driven) to touch devices.
3.5.11 Repeated device mounting and usage
Do not remount or re-use devices which fall into the categories listed below; these devices may
cause significant problems relating to performance and reliability.
(1) Devices which have been removed from the board after soldering
(2) Devices which have been inserted in the wrong orientation or which have had reverse current
applied
(3) Devices which have undergone lead forming more than once
3-16
3 General Safety Precautions and Usage Considerations
3.6 Protecting Devices in the Field
3.6.1 Temperature
Semiconductor devices are generally more sensitive to temperature than are other electronic
components. The various electrical characteristics of a semiconductor device are dependent on the
ambient temperature at which the device is used. It is therefore necessary to understand the
temperature characteristics of a device and to incorporate device derating into circuit design. Note
also that if a device is used above its maximum temperature rating, device deterioration is more
rapid and it will reach the end of its usable life sooner than expected.
3.6.2 Humidity
Resin-molded devices are sometimes improperly sealed. When these devices are used for an
extended period of time in a high-humidity environment, moisture can penetrate into the device
and cause chip degradation or malfunction. Furthermore, when devices are mounted on a regular
printed circuit board, the impedance between wiring components can decrease under highhumidity conditions. In systems which require a high signal-source impedance, circuit board
leakage or leakage between device lead pins can cause malfunctions. The application of a
moisture-proof treatment to the device surface should be considered in this case. On the other
hand, operation under low-humidity conditions can damage a device due to the occurrence of
electrostatic discharge. Unless damp-proofing measures have been specifically taken, use devices
only in environments with appropriate ambient moisture levels (i.e. within a relative humidity
range of 40% to 60%).
3.6.3 Corrosive gases
Corrosive gases can cause chemical reactions in devices, degrading device characteristics.
For example, sulphur-bearing corrosive gases emanating from rubber placed near a device
(accompanied by condensation under high-humidity conditions) can corrode a device’s leads. The
resulting chemical reaction between leads forms foreign particles which can cause electrical
leakage.
3.6.4 Radioactive and cosmic rays
Most industrial and consumer semiconductor devices are not designed with protection against
radioactive and cosmic rays. Devices used in aerospace equipment or in radioactive environments
must therefore be shielded.
3.6.5 Strong electrical and magnetic fields
Devices exposed to strong magnetic fields can undergo a polarization phenomenon in their plastic
material, or within the chip, which gives rise to abnormal symptoms such as impedance changes
or increased leakage current. Failures have been reported in LSIs mounted near malfunctioning
deflection yokes in TV sets. In such cases the device’s installation location must be changed or the
device must be shielded against the electrical or magnetic field. Shielding against magnetism is
especially necessary for devices used in an alternating magnetic field because of the electromotive
forces generated in this type of environment.
3-17
3 General Safety Precautions and Usage Considerations
3.6.6 Interference from light (ultraviolet rays, sunlight, fluorescent lamps and
incandescent lamps)
Light striking a semiconductor device generates electromotive force due to photoelectric effects. In
some cases the device can malfunction. This is especially true for devices in which the internal
chip is exposed. When designing circuits, make sure that devices are protected against incident
light from external sources. This problem is not limited to optical semiconductors and EPROMs.
All types of device can be affected by light.
3.6.7 Dust and oil
Just like corrosive gases, dust and oil can cause chemical reactions in devices, which will
adversely affect a device’s electrical characteristics. To avoid this problem, do not use devices in
dusty or oily environments. This is especially important for optical devices because dust and oil
can affect a device’s optical characteristics as well as its physical integrity and the electrical
performance factors mentioned above.
3.6.8 Fire
Semiconductor devices are combustible; they can emit smoke and catch fire if heated sufficiently.
When this happens, some devices may generate poisonous gases. Devices should therefore never
be used in close proximity to an open flame or a heat-generating body, or near flammable or
combustible materials.
3.7 Disposal of Devices and Packing Materials
When discarding unused devices and packing materials, follow all procedures specified by local
regulations in order to protect the environment against contamination.
3-18
4 Precautions and Usage Considerations
4. Precautions and Usage Considerations
This section describes matters specific to each product group which need to be taken into
consideration when using devices. If the same item is described in Sections 3 and 4, the
description in Section 4 takes precedence.
4.1 Microcontrollers
4.1.1 Design
(1) Using resonators which are not specifically recommended for use
Resonators recommended for use with Toshiba products in microcontroller oscillator applications
are listed in Toshiba databooks along with information about oscillation conditions. If you use a
resonator not included in this list, please consult Toshiba or the resonator manufacturer
concerning the suitability of the device for your application.
(2) Undefined functions
In some microcontrollers certain instruction code values do not constitute valid processor
instructions. Also, it is possible that the values of bits in registers will become undefined. Take
care in your applications not to use invalid instructions or to let register bit values become
undefined.
4-1
4 Precautions and Usage Considerations
4-2
TX7901 User’s Manual
Rev. 6.30T
November, 2001
DOCUMENT NUMBER M−99−00004−07
Chapter 1: Introduction
1. Introduction
1.1 Overview
The TX7901 MIPS RISC microcontroller is a highly integrated solution based on Toshiba’s
dual-issue super-scalar pipeline Processor Core, the C790 (henceforth referred to as “the
C790”). The C790 has a 128-bit internal architecture featuring MIPS ISA support and
additional instruction enhancements specially developed for embedded applications.
The TX7901 is a new generation MIPS processor solution offering high performance, high
bandwidth and high integration, utilizing Toshiba's Computer-On-Silicon concept. This class
of product is targeted for applications that require a high-performance, cost-ef fective solution
such as networking, printers, and set-top boxes.
1.2 Terminology
1.2.1 Abbreviations used
802.3x IEEE 802.3x standard for Ethernet based Local Area Networks
bbits (e.g. 1 Mb = 1 Mega bit)
BBytes (e.g. 4 MB = 4 Mega Bytes)
Suffix for active low signals
BIUBus Interface Unit
BTACBranch Target Address Cache
COP0Coprocessor 0
C790High-performance MIPS CPU Core on which the TX7901 is based
C790 BusMain system bus that connects the C790 CPU to the rest of the system
devices such as the memory controller and G-bus bridge.
D$Data Cache Memory
DIMMDRAM chip module
Set of DRAM chips that are controlled by a chip selector signal. Double-sided
DIMM in this case is considered to be two DIMMs.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
1-1
Chapter 1: Introduction
DMADirect Memory Access
DMACDirect Memory Access Controller
DRAMDynamic RAM
DTLBData Translation Look-aside Buffer
F/BFeedback
FIFO“First In First Out” Buffer
FiberFiber Physical Medium Dependent
PMD (EMAC)
FPUFloating Point Unit
G-BusProprietary Toshiba On-chip Bus Interface intended for IP interfaces
I$Instruction Cache Memory
ICIntegrated Circuit
IPI ntellectual Property – proprietary circuit implementations from multiple
vendors intended to be incorporated into a larger IC design
ISAInstruction Set Architecture
ITLBInstruction Translation Look-aside Buffer
JTLBJoint Translation Look-aside Buffer
MACMult iply-Accumulator, CPU such as iMAC (integer MAC), fMAC (floating-point
MAC)
Media Access Controller, Ethernet controller such as eMAC
MBPS Million(s of) bits per second
MIIMedia-Independent Interface
MIPS I,Instruction set capabilities of successive generations of MIPS series
II, IIIprocessors
NMINon-Maskable Interrupt
PCIPeripher al Component Interconnect
PHYPhysical Layer
To Assert a signal means to take it to its active level. An active high signal is “1” when
asserted, and an active low signal is “0” when asserted.
1.3 Conventions
•Register values are expressed in this manual as base 16 (hexadecimal) numbers, and
are prefixed by the characters “0x”, which are not part of the number, in keeping with
Verilog (and C) Language Terminology. In order to improve legibility, the underscore
character (_) separates numbers larger than four hex digits in length into four-digit
groups.
•Internal signals start with a lower case module name, followed by suffixes with
capitalized initial letter(s).
• Active Low internal signals are indicated by signal names ending with the letter B.
• Signals on external pins are always written completely in UPPER CASE, for example,
BOOT16.
• Active Low external signals are indicated by signal names ending with an asterisk (*).
• A bit field within a register is referred to by the terminology: Register[bit_field] when
referring to the bit field by name, or by its bit position.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
1-3
Chapter 2: Features
2. Features
C790 integrated high-performance RISC processor core with 128-bit internal
architecture optimized for high data throughput
• 2-way super-scalar pipeline with 128-bit (2x64-bit) data path
• 200/266 MHz operation
• MIPS I, II, III compatible ISA with selected MIPS IV ISA (Pre-fetch and Move
Conditional Instructions)
• Additional multimedia instruction set support to provide SIMD operation
• 32 KB two-way set associative Instruction Cache, and 32 KB t wo-way set associative
Data Cache
• Line lockable Data cache, write back cache (WBB), non-blocking load, and data
cache Pre-fetch instruction to enhance performance
• Fully compliant with PCI Local Bus Specification Rev. 2.1
• 32-bit PCI bus interface
• 33 MHz or 66 MHz PCI operation
• Zer o-Latency Back to Back transfers
• Supports on-chip arbitration of up to 5 masters (supports a maximum of 2 - 4
external PCI devices)
• Dual Address cycle
• Supports all PCI specific configuration registers
SDRAM Memory Controller (“SDRAMC”)
The SDRAM Memory Controller has been designed and integrated into the TX7901 processor
to take advantage of high memory bandwidth to external memories. The C790 and the DMA
Controller can both access memory to perform Read / Write operations. The SDRAMC
supports:
• 1 GB memory with four DIMMs (8M × 8B × 4) or two double-side DIMMs
(8M × 8B × 4 × 2)
• PC 100/133 DIMM/SO-DIMM
• Internal PLL for de-skewing clock and data between the TX7901 and SDRAM
DIMMs
• Four-bank interleaving for 64/128/256 Mb SDRAMs
• Two-bank interleaving for 16 Mb SDRAMs
• ECC, single-bit err or correction, double- bit erro r detection
• Aligned burst transactions
DMA Controller (“DMAC”)
Eight independent DMA channels have been implemented for external and internal peripherals
that access memory. DMA operation provides the fastest access to memory while the C790
executes in parallel from internal caches. The DMAC supports:
• Eight independent DMA channels for both internal and external DMA requests
• Chaining via linked lists of records
• Block and Slice modes
• Memory to memory, memory to peripheral, and peripheral to memory transactions
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
2-2
Chapter 2: Features
Interrupt Controller
The Interrupt controller in the TX7901 supports both internal and external interrupts to the C790
core. It contains an interrupt source register to identify up to 22 different interrupt sources. In
addition, there is an interrupt register mask that is used to mask interrupt sources to the C790.
The supported Interrupts are:
• PCI Controller, MACs, DMAC, UARTs, Timers, SPI Interrupts, Bus errors and
external interrupts
Non-Maskable Interrupt (NMI)
Non-Maskable Interrupts are used to indicate fatal conditions. ECC uncorrectable errors, the
watchdog timer, and external NMI pins are sources of NMIs.
Triple Timer-Counters (“TMR”)
The three timer counters integrated into the TX7901 each have their own part icular 24-bit up
counter and control registers for implementing each timer control “channel”.
• Timer 0 is an internal timer that uses the internal clock and operates in the Internal
Timer Mode, which causes periodic interrupts.
• Timer 1 for Channel 1 operates in the Interval Timer Mode or Pulse Generator Mode,
which generates waveforms of arbitrary frequencies and duty ratios.
• Timer 2 for Channel 2 operates in the Pulse Generator Mode and Watchdog Timer
mode, monitoring system runaway conditions in the Interval Timer mode.
UART
• Dual UARTs
• Modem flow control (CTS/RTS)
• Baud rate generator
• Software-compatible with NSC NS16550A
SPI
• Master operation
• Supports Serial Boot ROM and RTC. Flash ROM and EEPROM are supported by
the Companion chip.
• Supports Atmel serial ROM as Boot ROM
HW JTAG Scan Test logic support
• JTAG external test mode for chip boundary tests facilitates board testing.
• Full SCAN design and direct memory test modes facilitat e chip testing.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
2-3
Chapter 3: Configuration
O
The following is the block diagram of the TX7901:
3. Configuration
PLL
I$32K
IFU
PCU
D$32K
LSU
IU
C790
BIU
DEBUG
FPU
64-Bit G-Bus
64-bit
Internal
G-Bus
C790 Bus
(128-bit Internal
System Bus)
Bridge
Test Logic
SDRAM
Controller
DMAC
INTC
SPI Serial
Boot
R
M
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
Dual
UARTs
Figure 3-1 TX7901 Block Diagram
Dual
MACs
3-1
PCI
Bridge
Timers
C790
High performance MIPS RISC processor core with 128-bit internal system bus interface.
MAC
Dual 10/100Mbps Ethernet MAC with scatter-gather DMA bus master capability.
PCI Bridge
32-bit PCI bus interface compliance with PCI Local Bus Specification Rev. 2.1. PCI0 is
66 MHz/32-bit PCI. PCI1 is 33 MHz/32-bit PCI.
SDRAMC
SDRAM memory controller
DMAC
8-channel DMA controller
INTC
22 internal and external sources of interrupts, and interrupt controller for these interrupt
sources.
Chapter 3: Configuration
Timers
3-channel 24-bit up counters work as the interval timer, pulse generator, and watchdog
timer.
UART
2-channel serial I/Os, NS 16550 software compatible
Channel 0 has full function. Channel 1 has two pins (SW, SOUT) only, and is used for
the debug monitor.
SPI
Serial Peripheral Interface connects the serial Boot ROM and Real-time clock
64-Bit G-Bus Bridge
A bridge between the 128-bit internal system bus and the 64-bit G-Bus
PLL
Phase-Locked-Loop to generate the TX7901’s internal clocks from an external oscillator
Test Logic
Supports Scan and JTAG.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
3-2
Chapter 3: Configuration
PLL
200/266 MHz*
I$ 32K
PCU
D$ 32K
IFU
SPIDual
LSU
IU
C790
64b/ 50 MHz
66 MHz
BIU
DEBUG
FPU
Dual
UART
MODEMSPHY
128b/ 100 MHz
133 MHz
64-Bit G-
Bus Bridge
MACs
INTC
Bridge
Test Logic
SDRAMC
DMAC
PCI
SDRAM Memory
Devices
PC100/133 DIMM
Note:
266 MHz CPU and PC 133
SDRAM interfaces are being
planned as premium products.
Timers
Serial ROM
Flash ROM
RTC
PCI Controller 1
e.g. USB i/f
Dial-Up
Lines
PCI Controller 2
e.g., EIDE
CDROM,
HDD, etc
PCI Controller 3
e.g., IEEE1394
Figure 3-2 A typical system utilizing TX7901
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
3-3
Chapter 3: Configuration
3.1 Reset Configuration
C790: Pins define the endianness.
SPI: 2 MHz (133)/1.56 MHz (100) of the bit rate accesses Boot ROM.
SDRAM: 8 MB per DIMM (chip select) starting at physical address 0x0000_0000.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
3-4
Chapter 4: Address Maps
4. Address Maps
4.1 Memory Map
The physical memory space of the TX7901 is 4 GB. The memory management unit (MMU)
of the C790 manages the memory map of the TX7901. The TX7901 virtual and physical
addresses are both 32 bits wide.
0xFFFF_FFFF
0x2100_0000
0x1F00_0000
0x1E00_1000
0x1E00_0000
C790 BusG-Bus
PCI Memory
PCI Memory
ROM
Registers
GCIRA
CGUPAn
CGLPAn
CGUPAm
CGLPAm
UROMA
LROMA
UIRA
LIRA
GCUIRA
GCLIRA
PCI Memory
PCI Memory
ROM
Registers
SPI
MAC
DMA
PCI
0x1FC0_FFFF
0x1FC0_0000
Registers
SDRAM
Memory
0x0000_0000
CGUMAn
CGLMAn
CGUMAn
CGLMAn
Figure 4-1 Memory Map
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
Memory Window
Memory Window
4-1
Chapter 4: Address Maps
TX7901 internal registers are mapped from 0x1E00_0000 to 0x1EFF_FFFF (16 MB). The
ROM/SRAM addresses are mapped from 0x1F00_0000 to 0x20FF_FFFF (32 MB).
Main memory space (SDRAM) can be located anywhere except in the internal register range.
This memory space is located on the C790 Bus. PCI memory space can also be located
anywhere except in that range, and up to four segments (including one I/O space) are
allowed. Note that all nine segments must be
non-overlapping
and are programmed by the
user. For details, please refer to the chapters on the SDRAM memory controller and PCI
controller.
4.2 Register Map
The following is the register map of the TX7901 built-in modules:
For more information, please refer to the chapter that pertains to the relevant module.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
4-2
Chapter 4: Address Maps
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
NameRegister DescriptionAddressR/WSize(b)
NRPR3Channel 3 Next Record Pointer Register0x1E00_1350R/W64
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
NameRegister DescriptionAddressR/WSize(b)
GCLMA0GC Lower MEM Address 00x1E00_2098R/W64
GCUMA1GC Upper MEM Address 10x1E00_20A0R/W64
GCLMA1GC Lower MEM Address 10x1E00_20A8R/W64
GCUMA2GC Upper MEM Address 20x1E00_20B0R/W64
GCLMA2GC Lower MEM Address 20x1E00_20B8R/W64
GCUMA3GC Upper MEM Address 30x1E00_20C0R/W64
GCLMA3GC Lower MEM Address 30x1E00_20C8R/W64
GCUMA4GC Upper MEM Address 40x1E00_20D0R/W64
GCLMA4GC Lower MEM Address 40x1E00_20D8R/W64
IRSTATInterrupt Status Register0x1E00_20E0R64
IRMSKInterrupt Mask Register0x1E00_20E8R/W64
LTC790 Bus Latency Timer0x1E00_20F0R/W64
NRSTATNMI Status Register0x1E00_20F8R64
GBMLTG-Bus Master Latency Timer0x1E00_2100R/W64
GBBMLTG-Bus Broken Master Timer0x1E00_2108R/W64
GBSLTG-Bus Slave Latency Timer0x1E00_2110R/W64
RTTG-Bus Retry Timer0x1E00_2118R/W64
GCCRGC Control register0x1E00_212 0R/W64
GBSTATG-Bus Status Register0x1E00_2128R/W64
GBBARG-Bus Bad Address Regist er0x1E00_2130R64
GBARSRG-Bus Arbiter Request Status Register0x1E00_2138R64
GBAGSRG-Bus Arbiter Granted Status Regist er0x1E00_2140R64
GBAMSRG-Bus Arbiter Master Status Register0x1E00_2148R/W64
GBACRG-Bus Arbiter Control Register0x1E00_2150R/W64
PCI / G-Bus Bridge / PCI Controller, Base Address 0x1E00_3000
Reserved, Retry Time Value, TRDY Timeout0x1E00_3040R/W32
I/O Base Address [0]0x1E00_3044R/W32
Reserved0x1E00_3048 - 0x1E00_30D8
Pre-existing features, 0xE4010x1E00_30DCR/W32
Pre-existing features0x1E00_30E0R/W32
Reserved, p2gBase3[35:32], 0x00020x1E00_30E4R/W32
p2gBase3[31:0]0x1E00_30E8R/W32
Reserved0x1E00_30EC - 0x1E00_30FF
0x1E00_300CR/W32
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
4-5
Chapter 4: Address Maps
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
TMWTMR2Watch Dog Timer Mode Register 20x1E00_4240R/W32
TMTRR2Timer Read Register 20x1E00_42F0R/W32
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
4-6
Chapter 4: Address Maps
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
NameRegister DescriptionAddressR/WSize(b)
Dual Ethernet Media Access Controllers, Base Addresses 0x1E00_5000 and 0x1E00_6000
(Note: Counters start at offsets 0x200)
-Reserved0x1E00_5000R
CCReg0Com mand & Configuration Register 00x1E00_5008R/W64
BusErrReg0Bus E rror A ddress Regi ster00x1E00_5088R64
TCDRegTransmit Frame Current Descriptor Pointer0x1E00_5090R32
RCDRegRec ei ve Fram e Current Desc ri ptor Pointer0x1E00_5098R32
-Reserved0x1E00_50A0 - 0x1E00_50FF
peMACC0Internal Test Register 0 (peMACC)0x1E00_5100R/W64
peMACT0Int ernal Test Register 0 (peMACT)0x1E00_5108R/W64
IPGReg0Back-to-Ba ck IPG gap00x1E00_5110R/W64
NBTBReg0Non Back-to-Back IPG gap00x1E00_5118R/W64
peCLRT0Internal Test Register0 (peCLRT)0x1E00_5120R/W64
peMAXF0Internal Test Register0 (peMAXF)0x1E00_5128R/W64
pePNCT0Internal Test Register0 (pePNCT)0x1E00_5130R/W64
peTBCT0Internal Test Register 0 (peTBCT)0x1E00_5138R/W64
LSAII0Local Station Addr II0x1E00_51A8R/W64
LSAI0Local Station Addr I0x1E00_51B0R/W64
peVLTP0Internal Test Register (peVLTP)0x1E00_51C8R/W64
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
RxFrame64_0Frames Received (RxFrame64)0x1E00_52C0R/W64
RxFrame127_0Frames Received (RxFrame127)0x1E00_52C8R/W64
RxFrame255_0Frames Received (RxFrame255)0x1E00_52D0R/W64
RxFrame511_0Frames Received (RxFrame511)0x1E00_52D8R/W64
RxFrame1K0Frames Received (RxFrame1K)0x1E00_52E0R/W64
RxFrameGt1K0Fram es Received (RxFrameGt1K)0x1E00_52E8R/W64
MCFRCnt0MAC Pause Frames Received0x1E00_52F0R/W64
LFRCnt0Long Frames Recei ved0x1E00_52F8R/W64
RECnt0Receive Errors0x1E00_5300R/W64
FRBCCnt0Frames Received with Bad CRC0x1E00_5308R/W64
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
NameRegister DescriptionAddressR/WSize(b)
TIReg1Transmit Interrupt Regi ster0x1E00_6038R/W64
peMACC1Internal Test Regist er (peMACC)0x1E00_6100R/W64
peMACT1Internal Test Register (peMACT)0x1E00_6108R/W64
IPGReg1Back-to-Ba ck IPG gap00x1E00_6110R/W64
NBTBReg1Non Back-to-Back IPG gap00x1E00_6118R/W64
peCLRT1Internal Test Register0 (peCLRT)0x1E00_6120R/W64
peMAXF1Internal Test Register0 (peMAXF)0x1E00_6128R/W64
pePNCT1Internal Test Register0(pePNCT)0x1E00_6130R/W64
peTBCT1Internal Test Register 0 (peTBCT)0x1E00_6138R/W64
LSAII1Local Station Addr II0x1E00_61A8R/W64
LSAI1Local Station Addr I0x1E00_61B0R/W64
peVLTP1Internal Test Register (peVLTP)0x1E00_61C8R/W64
RxFrame64_1Frames Received (RxFrame64)0x1E00_62C0R/W64
RxFrame127_1Frames Received (RxFrame127)0x1E00_62C8R/W64
RxFrame255_1Frames Received (RxFrame255)0x1E00_62D0R/W64
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
4-9
Chapter 4: Address Maps
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
NameRegister DescriptionAddressR/WSize(b)
RxFrame511_1Frames Received (RxFrame511)0x1E00_62D8R/W64
RxFrame1K1F rames Received (RxFrame1K)0x1E00_62E0R/W64
RxFrameGt1K1Fram es Received (RxFrameGt1K)0x1E00_62E8R/W64
MCFRCnt1MAC Pause Frames Received0x1E00_62F0R/W64
LFRCnt1Long Frames Recei ved0x1E00_62F8R/W64
RECnt1Receive Errors0x1E00_6300R/W64
FRBCCnt1Frames Received with Bad CRC0x1E00_6308R/W64
The following table is a register map of the individual modules. Please note that this table is
still under construction. See the tables in each relevant chapter for more information.
g2pBase0g2pwindow Bas e A ddress Register 00x1E00_A148R/W64
g2pBase1g2pwindow Bas e A ddress Register 10x1E00_A150R/W64
g2pBase2g2pwindow Bas e A ddress Register 20x1E00_A158R/W64
g2pBase3g2pwindow Bas e A ddress Register 30x1E00_A160R/W64
g2pCycleTypeg2pwindow Cycle Type Register0x1E00_A168R/W64
p2gBase0p2gwindow Bas e A ddress Register 00x1E00_A170R/W64
p2gBase1p2gwindow Bas e A ddress Register 10x1E00_A178R/W64
p2gBase2p2gwindow Bas e A ddress Register 20x1E00_A180R/W64
p2gBase3p2gwindow Bas e A ddress Register 30x1E00_A188R/W64
IEEE-754 compatible, double-precision FPU is coupled with the C790.
Supports bi-Endian (Litt le Endian and Big Endian) operation
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
5-1
Chapter 5: C790 Processor Core
5.2 Block Diagram and Functional Block Descriptions
This section shows a block diagram of the C790 and summarizes the modules’ functionality.
Instruction
PC Unit
PC Pipe &
BTAC
(64-entry
fully assoc.)
MMU
(JTLB)
48 entry TLB
Cop0 Registers
ITLB
2 entries
Virtual Address
(IVA)
Instruction
Physical Address
(IPA)
TLB Refill Bus
Instruction Cache (I-Cache)
Tag, BHT, Predecode, Inst RAMs
(32kB, 2-way set assoc.)
I-Cache Output
Issue Logical Staging Resigters
(2 Issue, In-order)
GPR
(32x128-bit wide registers)
Operand/Bypass Logic
Pipeline
Control
LS Execution Pipe
Response
Buffer
Virtual Address
Computation Logic
Data Virtual Address
Data Cache
(D-Cache)
(32 KB, 2-way
set assoc.)
WBB
(DVA)
DTLB
(4 entries)
Data
Physical
Address
(DPA)
UCAB
128b
BR Execution Pipe
I1 Execution Pipe
Result and Move Buses
BIU Bus
(32x64-bit wide
registers)
I0 Execution Pipe
FPR
C1 COP1 (FPU) Pipe
128b
128b
Figure 5-1 C790 Block Diagram
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
Bus Interface Unit
128b
CPU Bus
5-2
Chapter 5: C790 Processor Core
PC Unit: T he 32-bit Program Counter (PC) holds the address of the instruction that is
being executed. It also contains a 64-entry Branch Target Address Cache (BTAC)
which stores branch target addresses used for branch prediction (to eliminate branch
penalties).
Issue Logic and Staging Registers: The issue logic controls the transfer of fetched
instructions to the appropriate execution pipes. It can issue a maximum of two
instructions per cycle, and any instructions remaining that were fetched but could not be
issued because of conflicts such as resource conflicts or hazards are held in staging
registers until they can be issued.
General Purpose Registers (GPRs): The width of the GPRs is extended from MIPS
III’s 64 bits, to a width of 128 bits. The upper 64 bits of the GPRs are accessible using
the quad word Load/Store instructions, the quad word funnel shift instruction, and the
parallel (multimedia) instructions.
I0 and I1 Pipes: The two integer pipelines I0 and I1 each contain a complete 64-bit ALU,
Shifter, and Multiply-Accumulate (MAC) unit. The I0 pipeline additionally contains a Shift
Amount (SA) register that is used for funnel shift operations, and the I1 pipeline contains
a leading zero counter. The two 64-bit data paths can be configured dynamically, on an
instruction-by-instruction basis, into a single 128-bit data-path when it is necessary to
execute 128-bit wide multimedia, shift, ALU or Multiply-Accumulate instruct ions. The two
64-bit data paths share a single 128-bit multimedia shifter during 128-bit wide shift
operations.
Load / Store (LS) Pipe: The Load/Store (LS) pipe supports a single issue of Load and
Store instructions at widths ranging from one byte (8 bits), to one quad-word (128 bits).
Memory Management Unit (MMU): The Memory Management Unit supports the
address translation functions of the C790. It contains a 48-entry fully associative JTLB, a
2-entry Instruction Translation Lookaside Buffer (ITLB), and a 4-entry Data Translation
Lookaside Buffer (DTLB).
Memory Caches: The C790 includes an Instruction Cache and a Data Cache. For each
branch instruction present in the instruction cache, two bits of branch history information
are stored in a Branch History Table(BHT).
Response and Write-back Buffer: The Write-back Buffer (WBB) is an 8-entry by 16-
byte (one quad-word) FIFO queues up stores prior to accessing the C790 bus. It
increases C790 performance by isolating the processor from the latencies of the C790
bus. It is also used during the gathering operation of uncached accelerated stores.
Sequential stores less than a quad-word in length are gathered in the WBB, thereby
improving bus bandwidth usage.
Uncached Accelerated Buffer (UCAB) : The Uncached Accelerated Buffer (UCAB) is a
2-entry by 4 quad-word buffer. It caches 128 sequential bytes of data during an
uncached accelerated load miss. Subsequent loads from the uncached accelerated
address space get their data from this buffer if the address hits in the UCAB, thereby
eliminating bus latencies and providing higher performance.
Bus Interface Unit (BIU) : The Bus Interface Unit (BIU) connects the core’s internal bus
to the C790 bus. It interfaces the core’s internal bus signals to the C790 Bus.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
5-3
Chapter 5: C790 Processor Core
The C790 extends the normal MIPS-compatible register set by extending the width of the
general purpose registers (GPRs) from 64 bits to 128 bits. It also incorporates an additional
pair of HI/LO registers for the I1 pipe, and the SA register for funnel shift instructions.
5.3 C790 Registers
The C790 has 128-bit wide GPRs. The upper 64 bits of the GPRs are only used by the
C790-specific “Quad Load/Store”, and “Multimedia (Parallel)” instructions.
HI1 and LO1, which are the upper 64 bits of each of the 128-bit HI and LO registers, are
also used by new multiply and divide instructions such as MULT1, MULTU1, DIV1, DIVU1,
MADD1, MADDU1, MFHI1, MFLO1, MTHI1, and MTLO1, which are non-parallel I1 pipelinespecific instructions. They are also used by multimedia (parallel) multiply and divide
instructions.
5.4 FPU Registers
The floating-point unit (COP1) has thirty-two 64-bit wide floating-point registers. It also
contains two floating-point control registers.
5.5 Memory Management
The C790 provides a memory management unit (MMU) which uses an on-chip translation
look-aside buffer (TLB) to translate virtual addresses into physical addresses.
Features
• MIPS III-compatible 32-bit MMU
• Operating Modes: User, Supervisor, and Kernel
• TLB: 48 entries of even/odd page pairs (96 pages)
The C790 contains an instruction cache and a separate data cache.
Features
• Separate Instruction Cache and Data Cache
• Caches are virtually indexed and physically tagged
• Write-back policy for the Data Cache
• Cache Size:Instruction Cache: 32 KB
Data Cache: 32 KB
• Line size:64 Bytes
• Associativity:2-way set-associative
• Write Policy:Write-back and write allocate
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
5-4
Chapter 5: C790 Processor Core
• Data order for block reads:Sequential ordering
• Data order for block writes:Sequential ordering
• Instruction cache miss restart:After all data are received
• Data cache miss restart:Early restart on first quad-word
• Cache parity: No
• Cache Locking:Data Cache Line Lock
Controlled by CACHE instruction
• Cache Snooping:No
• Non-blocking load:Yes
• Hit Under Miss:Yes (Supports multiple hits under one miss)
• Data Cache Pre-fetch:Yes
5.7 Floating Point Unit
The floating-point unit implements double-precision and single-precision operations. The
unit is IEEE-754 compatible.
Features:
• MIPS III floating point instr uctions
• High performance double-precision floating point unit tightly coupled to the C790
• Supports double-precision and single-precision formats as defined in the IEEE-
754 specifications
• Compatible with the TX49 FPU
• No hardware support for denormalized numbers
5.8 Performance Monitor
The performance monitor provides the means for gathering statistical information about the
internal events of the C790 and its pipeline during program execution. The statistics
gathered during program execution aid in tuning the performance of hardware and software
systems based on the processor core.
The performance monitor consists of one control register and two counters. The control
register controls the functions of the monitor while the counters count the number of events
specified by the control register.
Features:
• Two performance counter registers
• Can count over twenty different events within the C790
• Counting can be selectively enabled in User, Supervisor, Kernel, and Exception
modes
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
5-5
Chapter 5: C790 Processor Core
5.9 Debug Functions
The C790 supports ranged hardware break pointers with mask registers. This makes it
possible to debug with less observational impact. Note that C790 debugging also supports
software debugging using the BREAK instruction as defined in MIPS ISA.
Features:
• One Instruction Address Breakpoint register
• One Instruction Address Breakpoint Mask register
• One Data Address Breakpoint register
• One Data Address Breakpoint Mask register
• One Data Value Breakpoint register
• One Data Value Breakpoint Mask register
• Each breakpoint is individually enabled
• Breakpoint function can be selectively enabled in User, Supervisor, Kernel, and
Exception modes
• External Trigger signal can be generated when breakpoint occurs
• 11 signals are used to provide real-time PC tracing functionality
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
5-6
Chapter 6: SDRAM Memory Controller
6. SDRAM Memory Controller
6.1 Overview
This SDRAM Controller is used to connect the C790 (128-bit MIPS CPU) to SDRAM. The
SDRAM devices that can be connected are 64 Mb, 128 Mb, or 256 Mb with a 4-bank
architecture. If 8M x 8 x 4 SDRAM chips are used, the TX7901 can support 1 GB memory
with 4 physical memory banks.
6.2 Features
• Directly connected to a 128-bit C790 sysbus operating up to 133 MHz
• Supports PC100/133 DIMM
• Supports 4-bank interleaving for 64/128/256 Mbit SDRAMs, or 2-bank
interleaving for 16 Mbit
• ECC, single-bit error correction, double- bit error det ection
• Maximum access rate of 133 MHz
• Supports aligned (8 quad-word) burst transfers
6.3 Address Space Decoding
The SDRAM Controller has a fully programmable address map. It uses a two-stage
decoding process where major device regions are decoded first, and then the individual
devices are sub-decoded. Addresses for regions in 256 MB units are compared by exact
matching, and individual device addresses are compared by size comparison. One device
(DIMM) therefore cannot span across 256 MB boundaries.
6.4 Two-Stage Decoding Process
Physical space is divided into 16 regions. Each region can have 256 MBytes of address
space. Memory space decoding starts with the sysAddr address being compared with the
values in the four LOW and HIGH Registers. Device0, device1, device2, and device3
correspond to sdrCSB[0], sdrCSB[1], sdrCSB[2], sdrCSB[3.]
Address decoding is performed as follows:
• sysAddr[31:28] are compared against region field [31:28] in the LOW Decoder
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-1
Chapter 6: SDRAM Memory Controller
registers. This value must match exactly. This value effectively sets a 256 MB
region.
• sysAddr[27:20] are compared against bits [27:20] in the LOW Decoder registers.
This value of sysAddr must be greater than or equal to the LOW decode value.
This describes the low boundary for the region.
• sysAddr[27:20] are compared against bits [27:20] in the HIGH Decoder registers.
The value of sysAddr must be less than or equal to the HIGH decode value.
This describes the high boundary for the region.
• If all of the above are true, then the device region is selected and the
corresponding chip select signal is activated.
Any device region can be disabled by setting the value of the “LOW” decoder to be higher
than that of the “HIGH” decoder.
The LOW and HIGH Decode Registers cannot be programmed in the region from
0x_1E00_0000 to 0x_20FF_FFFF. This is reserved for TX7901 registers and Boot Devices.
It is important to note that devices never span across region boundaries. This is detected by
reading a HIGH Register after a write. Two devices may be put in one region, but they must
not overlap.
Examples of the two-stage decoding process are shown in Figure 6-1 and Figure 6-2.
Physical address space
sysAddr[31:0]
LOW
HIGH
[31:28][27:20]
•
=
3128 2720 190
•
RegionBoundary
3128 2720 190
RegionBoundary
Can read the same value as LOW[31:28]
≥
•
≤
•
0 -------------------------- 0
1 ------------------------- 1
0xFFFF_FFFF
Region 15
DIMM
Region 1
0x1000_0000
Region 0
0x0000_0000
•
•
•
•
•
•
Figure 6-1 Two-stage Decoding
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-2
0xFFFF_FFFF
Chapter 6: SDRAM Memory Controller
0x0FFF_FFFF
0x1000_0000
0x0200_0000
DIMM3 (8 MB)
0x0180_0000
DIMM2 (8 MB)
0x0100_0000
DIMM1 (8 MB)
0x0080_0000
DIMM0 (8 MB)
0x0000_0000
D3 HIGH
D3 LOW
D2 HIGH
D2 LOW
D1 HIGH
D1 LOW
D0 HIGH
D0 LOW
Region0
0x0000_0000
Figure 6-2 Initial Setting after Reset
Programming note
It is okay to place multiple DIMMs into a region. It is okay to place two DIMMs into
consecutive physical addresses. However, it is not okay to place a DIMM across two
regions. In other words, placing a DIMM across region boundaries is not permitted. This
violation can be detected by reading the HIGH register again after LOW and HIGH are
written. If the HIGH register is read the same as it was written, then it is okay. If it is diff erent
because the HIGH region field is the same as that of LOW, then it is okay to place a DIMM
across the 256 MB region boundary.
la r4, <LOW of DIMM0>
la r5, <HIGH of DIMM1>
la r7, <SDRAM base address>
It is possible to connect up to four single-sided DIMMs. See Figure 6-3 above.
It is possible to connect up to two double-sided DIMMs. See Figure 6-4 above.
Double-sided DIMM is considered as two DIMMs since it has two Chip Select inputs. See
the Application Notes (to be released) for more information regarding the clocking.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-6
Chapter 6: SDRAM Memory Controller
6.5 Registers
The following table is a register map of the SDRAM Memory Controller Module.
Table 6-3 List of SDRAM Memory Controller Registers
DEMRECC Mode Register0x1E00_0050R/W128
DEESRECC Error St atus Register0x1E00_0060R128
DEEARECC E rror Address Regis ter0x1E00_0070R128
–RESERVED0x1E00_0080
DREFRESHRefresh Register0x1E00_0090R/W128
DDRIVE
D0LOWDIMM 0 LOW Address Decode0x1E00_0100R/W128
D0HIGHDIMM 0 HIGH Address Dec ode0x1E00_0110R/W128
D1LOWDIMM 1 LOW Address Decode0x1E00_0120R/W128
D1HIGHDIMM 1 HIGH Address Dec ode0x1E00_0130R/W128
D2LOWDIMM 2 LOW Address Decode0x1E00_0140R/W128
D2HIGHDIMM 2 HIGH Address Dec ode0x1E00_0150R/W128
D3LOWDIMM 3 LOW Address Decode0x1E00_0160R/W128
D3HIGHDIMM 3 HIGH Address Dec ode0x1E00_0170R/W128
SDRAM Interface Output Drive- Strength
Control Register
0x1E00_00A0R/W128
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-7
Chapter 6: SDRAM Memory Controller
General Control
DOMR
DREFRESH
DDRIVE
ECC
DEMR
DEESR
DEEAR
SDRAMC
sdmCSB[0]
D0PR
D0LOW
D0HIGH
sdmCSB[1]
D1PR
D1LOW
D1HIGH
sdmCSB[2]
D2PR
D2LOW
D2HIGH
sdmCSB[3]
D3PR
D3LOW
D3HIGH
Physical Address
DIMM0
DIMM1
DIMM2
DIMM3
Figure 6-5 SDRAM Registers
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-8
Chapter 6: SDRAM Memory Controller
All of the following registers are 128 bits wide and are aligned to 16 Byte boundaries. In
order to facilitate Bi-Endian programming, it is stro ngly recommended to use lq/sq to access
these registers.
6.5.1 Parameters register
12732
0
96
31 30 29 28 26 25 24 23 21 20 18 17 16 15 2 1 0
A
R
2
R
P
0
2
T
13 23 3 2142
W
P
R
2
T
A
I
W
A
2
R
I
C
A
S
0
This register contains parameters that are used for each of the physical memory devices.
All memory devices share the same timing parameters (bits[29:16]) in the Device Region 0
Parameters Register.
This register is used to execute commands other than standard memory reads and writes to
the SDRAM. Bits [12:10] are used to check the current state of the SDRAM Controller.
FieldBit(s)Description
Operation Mode (001)
000 : Normal SDRAM Mode (Read/Write)
001 : NOP Commands
OPM2:0
–9:3Reserved (0)
Stat12:10
–31:13Reserved (0)
010 : Precharge All Banks
011 : Writing to the SDRAM Mode Register. Each
DIMM could have a different Mode.
100 : Force a Refresh Cycle
Others : Reserved
In order to execute one of the above commands on the SDRAM, the following procedure
should occur:
1. The corresponding value should be written to the SDRAM Operation Mode Register.
2. OMR Write should be followed by a dummy write to the corresponding SDRAM. For
Mode Register Write, the RAS address [12:0] will be put in the Mode Register. To map
sysADDR into the RAS address, please see 6.6 Address Mapping.
3. SDRAM and SDRAM Controller initialization should be complete before writing 000 to
this register in order to place it back into the Normal SDRAM mode. Normal SDRAM
operation can then start.
6.5.2.1 Normal SDRAM Mode
0x0 should be written to the SDRAM Operation Mode Register to enable normal reading and
writing to the SDRAM.
Note: SDRAM and SDRAM Controller must be complete before entering this mode.
6.5.2.2 NOP Commands
NOP commands are used to issue NOPs to SDRAM when the DIMM is accessed. This
prevents unwanted commands from being registered during idle or wait states of the
initialization sequence.
6.5.2.3 Precharge All Banks
The Precharge All Banks command is used to deactivate the open row. The Precharge All
Banks command is the first command called after reset. In this mode, any write to a
particular DIMM causes the Precharge command to be issued. Once a bank has been
precharged, it is in the idle state and must be activated prior to any read or write commands
being issued to that bank. This sequence will be performed by the hardware sequencer.
6.5.2.4 Writing to the SDRAM Mode Register
Each DIMM has its own Mode Register. The Mode Register is used to define the specific
mode of operation for the SDRAM. This definition includes the selection of a burst length,
sdrCAS* latency, burst type, operating mode, etc. (Please see your SDRAM data sheet for
more information about this register.) Typically, the Mode Register of each SDRAM is
initialized during system boot-up and is kept static.
The parameter that the SDRAM Controller can change is the CAS lat ency. The burst length
must be programmed to 2. The bust type is Sequential. The Write Burst Mode is the
Programmed Burst Length. In order to change this parameter in the SDRAM’s Mode
Register:
1. The DIMM Parameter Registers are updated properly. DIMMs are precharged,
deactivated.
2. The SDRAM Operation Mode Register should be written to 0x3 to indicate a Write
Command to the SDRAM Mode Register.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-13
Chapter 6: SDRAM Memory Controller
3. Store dummy data (32-bit) to a location. The address of this store instruction is saved in
the Mode Register as data. The address is shuffled by address mapping. The
corresponding address bit may vary according to the SDRAM chip and DIMM connection.
SDRAMC uses RA[12:0] of sysAddr as a Mode Register value.
Table 6-4 SDRAM Mode Register Settings
Burst Length2
Burst TypeSequential
Write burst modeProgrammed burst length
CAS Latency2 or 3
6.5.2.5 Force Refresh
The Force Refresh Command is used to execute a refresh cycle. In this mode, any write to
a DIMM causes the Auto Refresh command to be called. The lower address and data are
ignored because the Auto Refresh command uses a refresh counter internal to the SDRAM
chip. At least eight Auto Refresh commands are required for the power on sequence.
6.5.2.6 Initialization sequence
Intel’s “PC SDRAM Specification” Rev. 1.7, November 1999 recommends the sequence
described below.
Following the initialization sequence, the device must be ready for f ull functionality. SDRA M
devices are initialized by the following sequence:
1. At least one NOP cycle will be issued after the 1msec device deselect.
2. A m inim um pause of 200 µsec will be provided after the NOP.
3. A pr echarge all command will be issued to the SDRAM.
4. Eight Auto Refresh (CBR) refresh cycles will be provided.
5. A mode register set cycle will be issued to program the SDRAM parameters (e.g., Burst
length, CAS# latency, etc.).
6.5.2.7 Important programming note
Program codes that change any SDRAM/SDRAMC parameters should be located in a
memory device other than SDRAM memory (boot ROM, for example). Otherwise, such
program codes may cause a deadlock.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-14
Chapter 6: SDRAM Memory Controller
6.5.3 ECC Mode Register (0x1E00_0050) R/W
12732
0
96
31 16 15 8 7 5 4 3 2 0
0
1683113
FieldBit(s)Description
Error Correction Check Mode (000)
000 : ECC Disable Mode, no check bit generation
001 : Detect mode. Performs check bit generation during
memory writes and error detection only during memory
ECCM2:0
SEIE(3)3Single ECC Error Interrupt Enable (0)
MEIE(4)4
–7:5Reserved (0)
Check15:8Check bits [7:0] to write (Diagnostic Mode)
–31:16Reserved (0)
reads.
010 : ECC Enable Mode. Performs check bit generation
during memory writes and error detection and
correction during memory reads.
011 : Diagnostic Mode for verifying the ECC function. All
check bits are forced to check bits in this register
during memory writes.
Multiple ECC Error Interrupt Enable (0)
Interrupt occurs when an ECC error is detected and this bit is
set to “1.”
Check0
M
S
E
E
E
C
I
I
C
E
E
M
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-15
Chapter 6: SDRAM Memory Controller
6.5.4 ECC Error Status Register (read only) (0x1E00_0060)
127 32
0
96
31 24 23 16 15 8 7 2 1 0
M
S
B
0
888611
SyndrCheck
0
When there is an ECC Error (single or double bit error), the failing status is stored in this
register and an interrupt is generated.
After an ECC Error, the ECC Error Status Register and the ECC Error Address Register
keep the status and address of the latest error until it has been read. SBE and MBE are
cleared after it is read. Regardless of the ECC Interrupt Enable Bit in the ECC Mode
Register, these registers are updated when an ECC error is detected.
When there is an ECC Error, the failing address is stored in this register. This register
keeps the error address of the latest ECC error.
FieldBitsDescription
ErrAddr31:4Error Address [31:4]
–3:0Reserved
6.5.6 Refresh Register (0x1E00_0090) R/W
127 32
0
96
3118 17 16 15 14 13 0
R
N
F
0
1411214
S
E
0
R
F
This register contains parameters that are used for all SDRAMs with the SDRAM controller.
FieldBit(s)Description
Refresh Interval Count Value (0x0400)
Implements standard CAS before refreshing RAS. Refresh
RIC13:0
–15:14Reserved (0)
NSRF16
RFE17
–31:18Reserved (0)
rates for all banks can be programmed in this register.
RefIntCnt is a 14-bit counter. If the default value is 0x400 for
example and if the clock is 100 MHz, then a refresh
sequence will occur every 10 µs.
(10 ns × 1024) = 10.24 µs
Non-Staggered Refresh (0)
In the non-staggered refresh mode, this bit is set and
sdrCSB[3:0] will be active to simultaneously refresh all
banks. Staggered refresh is used to refresh banks in order
sequentially.
Refresh Enable (0)
SDRAM refresh will be enabled when this bit is set, and will
be disabled when this bit is reset. This bit defaults to 0
(reset) after chip reset. This bit should be enabled after
BIOS finishes the SDRAM initialization and initializes all
other control registers in the SDRAM controller.
RIC
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-17
Chapter 6: SDRAM Memory Controller
6.5.7 SDRAM Interface Output Drive-Strength Control Register
(0x1E00_00A0) R/W
127 32
0
96
31 6 5 4 3 2 1 0
D
M
0
26222
D
S
L
This register contains parameters which are used to select the SDRAM interface
control/address (i.e. CSB[3:0], CKE, RASB, CASB, WEB, BA[1:0], and AD[12:0]) and
data/data-mask (i.e. CB[7:0], DQ[127:0], and DQM[15:0]) output drive-strength.
0
C
A
D
S
L
FieldBitsDescription
Control/Address output drive-strength select (11)
CADSL1:0
–2:3Reserved (0)
DMDSL*5:4
–31:6Reserved
00 : 8 mA
01 : 16 mA
10 : 24 mA
11 : 32 mA
Data/Data-mask output drive-strength select (10)
00 : 8 mA
01 : 16 mA
10 : 24 mA
11 : 32 mA
Note: * Currently 16 mA fixed drivers are implemented for Data/Data-
mask output due to I/O area limitation. DMDSL doesn’t affect
drive-strength of Data/Data-mask output drivers.
Each of the 64 data bits and 8 check bits has a unique 8-bit SECDED ECC check code; this
check code is generated by taking the even parity of the ECC check code for a selected
group of data bits. As Figure 6-3 shows, bit locations are numbered from right to left in
ascending order, from data bit 0 (furthest right) to data bit 63 (furthest left). For example,
data bit 0, in the far right column of the figure, has an 8-bit check value of 0001_0011
are represented in this figure by periods, (.), because they are not used in the calculations).
Figure 6-7 also gives values for the 8 check bits, 7:0. For instance, the 8-bit SECDED ECC
code for check bit 6 is in column 6, near the right hand edge of the figure.
(0s
2
Figure 6-7 Check Matrix for Data ECC Code
Note: * This row indicates the total number of 1s in the generated
syndrome for each data bit in an error.
The SDRAM Controller supports ECC detection and correction of 64-bit (72-bit) SDRAMs. If
ECC is enabled and there is an ECC error in the read, an interrupt will be asserted to the
CPU and the ECC Error Status Register will be set to indicate that bad data were returned.
For 64-bit (72-bit) SDRAMS, if ECC is enabled, check bits will be generated and written to
the sdrCB[7:0] lines during the same cycle that the data are written.
ECC will be generated for partial writes via the read-modify-write protocol. Since most
SDRAMs come in 8-bit granularities, ECC checking and generation require an additional
SDRAM chip to store the ECC information. In order to generat e the ECC to this extr a device
during partial writes, the current ECC bits must first be r ead and then modified during the
partial write. The protocol for the read-modify-write transaction is as follows:
1. Read the existing data. On this read, all sdrDQM lines are asserted LOW. This means
that the BE (byte enable) for the ECC byte can be connected to ANY of the
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-23
Chapter 6: SDRAM Memory Controller
A
[6]
A
A
sdrDQM[7:0]* outputs. The ECC data are read on the sdrCB[7:0] inputs.
2. Modify the ECC information based on the data that are to be written. The ECC nibble is
modified in the SDRAM Controller.
3. Write the new data and new ECC byte.
Figure 6-8 illustrates the procedure that the SDRAM Controller uses to generate ECC in a
partial write to SDRAM.
1. READ All Data
and Check Bits
x72
*
SDRAM
x8
SDRAM
#1
x8
SDRAM
#2
x8
SDRAM
#7
x8
SDRAM
#8
x8
SDRAM
#9
Data[7:0]
SDQM[0]*
SSERTED
Data[15:8]
SDQM[1]*
ASSERTED
Data[55:48]
SDQM
SSERTED
Data[63:56]
SDQM[7]*
ASSERTED
CB[7:0]
SDQM[X]*
ASSERTED
2. Modify Check
Byte in TX7901
Existing Check Bits
X X X X X X X X
3. Write New Data and
Modified Check Byte
x72
Data[7:0]
NEW
SDQM[0]*
ASSERTED
SDRAM
x8
SDRAM
#1
Data[15:8]
NEW
SDQM[1]*
y
Y Y Y Y Y Y Y Y
y
y
MODIFIED
Check Bits
SSERTED
Data[55:48]
EXISTING
SDQM[6]*
ASSERTED
x8
SDRAM
#2
y
y
y
x8
SDRAM
#7
Data[63:56]
EXISTING
SDQM[7]*
ASSERTED
x8
SDRAM
#8
CB[7:0]
SDRAM Check
SDQM[X]*
ASSERTED
x8
SDRAM
#9
Figure 6-8 Read Modify Write Transaction by the SDRAM Controller
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-24
Chapter 6: SDRAM Memory Controller
6.8 SDRAM Initialization
Following below is an example of the code used during SDRAM initialization.
# initialize registers and force NOP mode
la k1, SDRAMC # SDRAMC base address
la t1, DIMM0ADDR # address of dummy write for DIMM0
li t0, DOMR_NOP
sq t0, DOMR(k1) # force NOP mode to prevent unnecessary access
# set up SDRAM address windows
li t0, RAMBASE # start address of DIMM0
li t2, RAMBASE + RAM 32MB-1
# end address of DIMM0
sq t0, D0LOW(k1) # store DIMM0 LOW reg (starting 0x0000_0000)
sq t2, D0HIGH(k1) # store DIMM0 HIGH reg (32MB)
li t0, RAMBASE + RAM32MB
li t2, RAMBASE + RAM32MB*2-1
sq t0, D1LOW(k1) # store DIMM1 LOW reg (starting 0x0200_0000)
sq t2, D1HIGH(k1) # store DIMM1 HIGH reg (0MB)
li t0, RAMBASE + RAM32MB*2
li t2, RAMBASE + RAM32MB*3-1
sq t0, D2LOW(k1) # store DIMM2 LOW reg (starting 0x0400_0000)
sq t2, D2HIGH(k1) # store DIMM2 HIGH reg (0MB)
li t0, RAMBASE + RAM32MB*3
li t2, RAMBASE + RAM32MB*4-1
sq t0, D3LOW(k1) # store DIMM3 LOW reg (starting 0x0600_0000)
sq t2, D3HIGH(k1) # store DIMM3 HIGH reg (0MB)
#Precharge All Bank
li t0, DOMR_PRECHARGE
sq t0, DOMR(k1) # mode set to precharge all bank
sw $0, 0(t1) # issue command
# two Auto Refresh cycles
li t0, DOMR_REFRESH
sq t0, DOMR(k1)
sw $0, 0(t1) # issue command
sw $0, 0(t1) # issue command twice
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-26
Chapter 6: SDRAM Memory Controller
# write SDRAM chip's Mode Register
li t0, DOMR_WR_MODEREG
sq t0, DOMR(k1) # write SDRAM Mode Register
la t2, SDRM_CL3
sw $0, 0(t2) # write address goes to MODE register
lw t0, DOMR(k1) # read DOMR to make sure Write Mode Reg
# It takes more than 2 x sysBusClk
# start Refresh
li t0, SDR_RFSH
sq t0, DREFRESH (k1)
# return to Normal mode of SDRAMC access
li t0, DOMR_NORMAL
sq t0, DOMR(k1)
sync.l
lw t0, DOMR(k1) # read DOMR to make sure Normal mode
sync.l
# Now SDRAM is ready for access
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
6-27
Chapter 7: C790 Bus/G-Bus Bridge
7. C790 Bus / G-Bus Bridge
7.1 Introduction
The C790 Bus/ G-Bus Bridge provides an efficient interface between the C790 bus (and its
attached C790 CPU and Main Memory), and the G-Bus (and its attached peripheral
devices.) The bridge supports C790 accesses to devices on the G-Bus, and G-Bus
Mastering devices’ access to the main memory on the C790 Bus.
Figure 7-1 shows the block diagram of the G-bridge.
C790 Read Command
(Addr, BE, TSize)
C790 Bus
Receiver
Interface
C790 Bus
C790 Bus
Transmitter
Interface
C790 Bus
Monitors
C790 Bus
Master
State
C790 Bus
Slave State
Machine
CGFIFO (8x1QW)
GCFIFO (9x1QW)
G-Bridge
Registers
G-Bus
Master State
Machine
G-Bus
Slave State
Machine
G-Bus
Transmit
Interface
G-Bus
Arbiter
Figure 7-1 C790 Bus / G-Bus Bridge Block Diagram
G-Bus
G-Bus
Receiver
Interface
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
7-1
Chapter 7: C790 Bus/G-Bus Bridge
7.2 Address Space Decode and Translation
The C790 accesses G-Bus devices through one CG internal register window, one ROM
window and four PCI windows. The upper 28-bit address pAddr[31:4] seen on the C790 bus
is copied directly onto the G-Bus while the lower 2–bit address is derived from the byte
enable bits. G-Bus Masters access the main memory through the memory controller on the
C790 Bus via one GC internal register window and five memory windows. The upper 28-bit
address seen on the G-Bus is copied directly into the C790 Bus while the lower 2 address
bits on the G-Bus are used to specify the location of the word/double-word in a quad-word.
(See Figure 7-2.)
C790 Bus Addr
C790 Bus Addr
31 4
314 3 2 1 0
15
ByteEnable
EncodeReduce
70
Byte En.
Figure 7-2 G-Bridge Address Translation
7.3 Bus Transactions
The C790 can issue either a single quad-word operation or 4 quad-word burst operations on
the C790 bus. When the C790 initiates a bus cycle to a G-Bus device, the bridge detects the
address and posts the written data into the CGFIFO if it is a write transaction, or initiates a
G-Bus read transaction. Such transactions are called CG (C790 to G-Bus) transactions.
The masters on the G-Bus can initiate a single double-word operation or a burst operat ion of
up to 8 quad-words (16 double words). When G-Bus masters initiate a bus cycle to main
memory, the bridge detects the address and posts the written data into the GCFIFO if it is a
write transaction, or initiates a C790 Bus read transaction. Such transactions are called GC
(G-Bus to C790) transactions.
0
The C790 Bus supports the Wrap-Around addressing mode while the G-Bus supports the
linearly-incrementing addressing mode. 4-quad-word burst operation on the C790 Bus is
translated into 4-quad-word aligned burst transaction on the G-Bus.
The C790 and G-Bus Masters can issue their transactions independently and the bridge can
handle and arbitrate their concurrent transactions correctly.
TX7901 User’s Manual (Rev. 6.30T – Nov, 2001)
7-2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.