Monday, February 18, 2008

Comparing Various ICs of PC100 SDRAM:

Comparing Various ICs of PC100 SDRAM:

Typically the suffix on the chip part number can be used to compare various modules. However, with the recent hype of PC100 SDRAM, misleading markings have appeared that have confused end users. The following tables compare various models currently marketed as PC100. Note also that according to our tests, modules with identical specifications may actually perform quite differently.

SAMSUNG

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10ns 7 ns. 3
-GL PC100 10 ns. 6 ns. 3
-GH PC100 10 ns. 6 ns. 2
-8 PC100 8 ns. 6 ns. 3

TOSHIBA

Part# Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
TC59S6408BFT-10 NOT PC100 10 ns. 7 ns. 3
TC59S6408BFT-80 PC100 8 ns. 6 ns. 2

LGS

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10K NOT PC100 10 ns. 8 ns. 3
-8 PC100 8 ns. 6 ns. 3
-7J* PC100 10 ns. 6 ns. 3

* Note that the LG RAM -7J is a 10ns Cycle Time

MICRON

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10 ns. 7 ns. 3
-8C PC100 8 ns. 6 ns. 3
-8E PC100 8 ns. 6 ns. 2

Comparing Various ICs of PC100 SDRAM:

Comparing Various ICs of PC100 SDRAM:

Typically the suffix on the chip part number can be used to compare various modules. However, with the recent hype of PC100 SDRAM, misleading markings have appeared that have confused end users. The following tables compare various models currently marketed as PC100. Note also that according to our tests, modules with identical specifications may actually perform quite differently.

SAMSUNG

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10ns 7 ns. 3
-GL PC100 10 ns. 6 ns. 3
-GH PC100 10 ns. 6 ns. 2
-8 PC100 8 ns. 6 ns. 3

TOSHIBA

Part# Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
TC59S6408BFT-10 NOT PC100 10 ns. 7 ns. 3
TC59S6408BFT-80 PC100 8 ns. 6 ns. 2

LGS

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10K NOT PC100 10 ns. 8 ns. 3
-8 PC100 8 ns. 6 ns. 3
-7J* PC100 10 ns. 6 ns. 3

* Note that the LG RAM -7J is a 10ns Cycle Time

MICRON

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10 ns. 7 ns. 3
-8C PC100 8 ns. 6 ns. 3
-8E PC100 8 ns. 6 ns. 2

Comparing Various ICs of PC100 SDRAM:

Comparing Various ICs of PC100 SDRAM:

Typically the suffix on the chip part number can be used to compare various modules. However, with the recent hype of PC100 SDRAM, misleading markings have appeared that have confused end users. The following tables compare various models currently marketed as PC100. Note also that according to our tests, modules with identical specifications may actually perform quite differently.

SAMSUNG

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10ns 7 ns. 3
-GL PC100 10 ns. 6 ns. 3
-GH PC100 10 ns. 6 ns. 2
-8 PC100 8 ns. 6 ns. 3

TOSHIBA

Part# Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
TC59S6408BFT-10 NOT PC100 10 ns. 7 ns. 3
TC59S6408BFT-80 PC100 8 ns. 6 ns. 2

LGS

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10K NOT PC100 10 ns. 8 ns. 3
-8 PC100 8 ns. 6 ns. 3
-7J* PC100 10 ns. 6 ns. 3

* Note that the LG RAM -7J is a 10ns Cycle Time

MICRON

Part# Suffix Performance Clock Cycle Time (tCK) Access Time from Clock (tAC) CAS Latency (tCL)
-10 NOT PC100 10 ns. 7 ns. 3
-8C PC100 8 ns. 6 ns. 3
-8E PC100 8 ns. 6 ns. 2

Friday, February 15, 2008

Reading your register settings under Linux:

Reading your register settings under Linux:

Register values for the 440BX PCIset are listed in the 440BX Specification in section 3.3. 3.3.24 lists the values for tCL, tRCD and tRP. A 16 bit address under control register 0 (Device 0), at address offset 76h­77h defines these values. The default value is 00h. The three least significant bits are defined such that:

Bit 0:
SDRAM RAS# Precharge (tRP). This bit controls the number of DCLKs for RAS# Precharge.
0 = 3 clocks of RAS# Precharge.
1 = 2 clocks of RAS# Precharge.

Bit 1:
SDRAM RAS# to CAS# Delay (tRCD). This bit controls the number of DCLKs from a Row Activate command to a read or write command.
0 = 3 clocks will be inserted between a row activate command and either a read or write command.
1 = 2 clocks will be inserted between a row activate and either a read or write command.

Bit 2:
CAS# Latency (CL). This bit controls the number of CLKs between when a read command is sampled by the SDRAMs and when the 82443BX samples read data from the SDRAMs. If a given row is populated with a registered SDRAM DIMM, an extra clock is inserted between the read command the when the 82443BX samples read data. For a registered DIMM with CL=2, this bit should be set to 1.
0 = 3 DCLK CAS# latency.
1 = 2 DCLK CAS# latency.

If you wish to read the values of these bits you can download and run 440bx.c. Compile 440bx.c with "gcc -O -c timing timing.c." The program will dump the bit values of address offset 76h of device 0. For example, a board set to 3-2-2 would read something like:

*** 440BX SDRAM Memory Timing ***

CAS# Latency: 3 DCLKs
RAS# to CAS# Delay: 2 DCLKs
RAS# Precharge: 2 DCLKs


www.oempcworld.com

Thursday, February 14, 2008

CAS delay (tRCD).

CAS delay (tRCD).

Data is read out sequentially, synchronized with the positive edge of CLK. Data is sequentially bursted according to the burst mode set in the Mode Registry. The burst mode may be set to 2, 4 or 8 words or even to a full page (the entire column). The initial data from the READ command is available (data out) after a period equal to the value of the the CAS Latency (CL) as set in the Mode Registry.

Therefore the total access time to the first data word is generally equal to tAS + tRCD + CL. This may be something like 1+2+3 = 6. Subsequent data is bursted out synchronous with the clock at one clock per word for the duration of the burst mode.

As noted above the PC100 specification requires a minimum standard of 3/3/3/8. The specification also requires a 6ns or less Access Time from Clock (tAC 6ns). tAC is basically the time in nanoseconds for data to be read.

Most PC100 modules have a CL of 3. The Samsung -GH and Micron -8D and -8E have a CL of 2. Modules with a CL of 2 are difficult to produce in ample yields and are therefore much more expensive than modules with a CL of 3. The lower CL only increases total SDRAM performance marginally (~5%) and therefore are considered to offer too little bang for the buck. However, CL 2 modules are of some interest to those who over clock their systems to bus speeds of 112MHz. We do not suggest over clocking the bus speed. However, we do carry the faster modules for those who are interested in them.

The values listed in specifications may be confusing because they are alternately listed in clocks tics or nanoseconds. For example, the RAS to CAS delay, tRCD, is the number of clock cycles allowed between the ACTIVATE (RAS) command and the READ (CAS) command. The value of tRCD is generally 20ns or 30ns (2 or 3 clocks). The value of the tRCD latency in nanoseconds may be divided by the bus speed in nanoseconds (100Mhz is 10ns) and then rounded up to the nearest whole clock value. For example a tRCD of 20ns would yield a latency of 2 clocks cycles (20ns / 10ns). The RAS Precharge (tRP) is typically 20ns of 30ns. (tRP is analogous to the CAS# before RAS# (tCBR) described above for EDO RAM).

We have found that the values set in the SPD are frequently incorrect. Indeed, it is not possible to set these values correctly for all bus speeds. These values should be overridden. Lets look at CAS latency (CL) as an example. Recall That CL is the time from the READ command to the first data out. If a module is rated as 3/2/2/8 (which most are) to what value should the SPD CL be set? Suppose the module is used on a 440BX board with a 333MHz CPU. The bus speed would be 66MHz which has 15ns tCK. A 3/2/2/8 modules has a CL of 30ns. Therefore on a 66MHz bus the CL should be set to 2 (30ns/15ns) in the SPD. Suppose the same module is used on the same 440BX board with a 400MHz CPU using a 100MHz bus. The bus speed would be 100MHz which has 10ns tCK. A 3/2/2/8 modules has a CL of 30ns. Therefore on a 100MHz bus the CL should be set to 3 (30ns/10ns). To which value should this module's SPD be programmed? 2 or 3? There is no correct answer. It doesn't appear that Intel took this into account when writing the specifications of the SPD. In actual practice you'll find SPD set to very odd values indeed. Therefore, override these values in your BIOS and set them up by hand the old fashioned way. Generally you'll set these values to 3/2/2/8.

What happens if you don't set the module parameters correctly? If you set the parameters to conservatively your system may perform about 20% too slow. But no other harm will be done. If you set your module parameters too fast, you will not damage the module nor the motherboard. However, you will end up with data corruption. This corruption may be insidious and difficult to detect at first. But eventually it will catch up to you. To test for data corruption try unpacking large software packages like the entire X Windows system and running check sums. This seems to be a fairly good test for this type of data corruption.

Latency and Timing Terminology
Symbol Name Meaning
tCK Clock Cycle Time The Period of one Clock Cycle (CLK)
tCH CLK High Level Width The Pulse Width of CLK measured from the positive (leading) edge to the negative (trailing) edge of the wave form. (tCH = tCK - tCMS)
tCL CLK Low Level Width The Pulse Width of CLK measured from the negative edge to the positive edge of the wave form. (tCL = tCK + tCMH)
tAC Access Time DATA Access Time from Clock
CL CAS Read Latency READ/WRITE (CAS) Command to Data Out Period
tRCD RAS to CAS Delay ACTIVATE (RAS) to READ/WRITE (CAS) Command Period
tRP RAS Precharge PRECHARGE (RAS) to ACTIVATE (RAS) Command Period (analogous to the CAS# before RAS# (tCBR) for EDO)
tRC RAS Cycle Refresh/ACTIVATE to Refresh/ACTIVATE Command Period (tRC = tRAS + tRP)
tRAS RAS Clock ACTIVATE (RAS) to PRECHARGE (RAS) Command Period
tCCD CAS to CAS Delay READ/WRITE(CAS a) to READ/WRITE(CAS b) Command Period
tRRD RAS to RAS Delay When interleaving two banks this is the period between the ACTIVATE command of RAS Bank A and the subsequant ACTIVATE Command on RAS b. tRP is thus hidden.
tWR WRITE WRITE (CAS) Recovery Period
tOH Output Data Hold A holding period waited while valid data it output.
tHZ Output Data High Impedance tOH plus a residual hold time required due to impedance of the circuit.
tLZ Output Data Low Impedance Output Data Low Impedance Period
tDS Data-in Setup Data-in Setup Period
tDH Data-in Hold Data-in Hold Period
tAS Address Setup Address Setup Period
tAH Address Hold Address Hold Period
tCMS Command Setup Command Setup Period
tCMH Command Hold Command Hold Period
tCKS Clock Setup Clock Setup Period
tCKH Clock Hold Clock Hold Period
tREF Refresh Refresh Period
tRSC Mode Register Set Cycle Mode Register Set Cycle Period issued during startup to program CAS Latency, Addressing Mode and Burst Length

Wednesday, February 13, 2008

The operation of SDRAM in relation to latency:

The operation of SDRAM in relation to latency:

We have already covered topics relating to refresh and latency above. We have defined the RAS Cycle (tRC), the RAS Precharge Cycle (tRP), tRAS, AUTO REFRESH and AUTO PRECHARGE as well as the impact of continuous reads or writes versus short reads and writes on these parameters. Now we can look more closely at the process of activating a bank and reading or writing data to that bank.

As discussed previously, commands and data addresses control access to banks of data. Commands are issued by holding the voltage low or high across several leads. Four very important leads are CS#, RAS#, CAS# and WE#. When CS# is high the other three leads are ignored. When CS# is held low the voltages across RAS#, CAS# and WE# determine a set of commands used to manipulate the bank in question.

Commands issued for values of RAS#, CAS# and WE# when CS# is Low
RAS# CAS# WE# Meaning
LOW HIGH HIGH Bank Activate
LOW HIGH LOW Bank Precharge
HIGH LOW HIGH WRITE
HIGH LOW LOW READ
HIGH HIGH X Power Down
LOW LOW HIGH Self Refresh
HIGH HIGH LOW BURST STOP
HIGH HIGH HIGH NOP (Non-Operational) similar to CS# High
LOW LOW LOW Mode Register Set
To access data an address must be setup before the clock by about 1 clock cycle (tAS). Then the ACTIVATE (RAS) command must be executed on an idle bank to put it in an active mode. A READ or WRITE (CAS) command is issued after the ACTIVE (RAS) command. The period between the ACTIVE command and the subsequent READ or WRITE command is the

www.oempcworld.com

Tuesday, February 12, 2008

Programming SDRAM modules with SPD EPROM's, BIOS settings and 3-2-2 notation:

Programming SDRAM modules with SPD EPROM's, BIOS settings and 3-2-2 notation:

SDRAM ICs are programmable. Values for programmable parameters are stored in the IC's Mode Registry at boot time. These values are set in a programmable register in the SDRAM IC which is set at power-up and remains set until the system is powered off. Programmable parameters include the Burst Mode, the CAS Latency (CL), the RAS Precharge Latency (tRP) and the The RAS to CAS delay (tRCD). Values for these attributes are read from the SPD EPROM on the module (See the SPD EPROM section) by the BIOS. The BIOS may use the SPD values, or the values may be overridden depending on the settings in your CMOS setup program. The final values are recorded in the 440BX registry. In a section below we document how to read these values from the 440BX registry.

In most cases these values must be overridden because the values in the SPD EPROM are incorrect. This is because the value of many parameters is dependent on bus speed. Since PC100 SDRAM may be used on boards with a 66MHz bus as well as boards with a 100MHz bus, the values stored in the SPD will frequently be set for the wrong bus speed.

In the Award BIOS you can find these settings in the "Chipset Features Setup." Change the "SDRAM Configuration" value from "By SPD" to "Disable." You can then set the respective values of "SDRAM CAS Latency," "SDRAM RAS to CAS Delay" and "SDRAM RAS Precharge" to the values of CL, tRCD and tRP respectively. In the CMOS setup these values are recorded as by values of clock tics denoted by 2T or 3T.

These three values, CL, tRCD and tRP, are often quoted with the notation 3-2-2 referring to tCL-tRCD-tRP. This should not be confused with burst timing notation as described elsewhere on this page. A value of 3-2-2 is optimal for current PC100 SDRAM on the market. 2-2-2 PC100 SDRAM has only been produced in low yields as described above. Module tolerances of 3-2-2 and 2-2-2 are most common. However, the Intel PC100 specification allows for a variety of tolerances ranging from 3-3-3 to 2-2-2.

Frequently a fourth parameter is referred to as the "DRAM Idle timer" in the BIOS. This is also known as the RAS cycle time (tRC). In the PC100 SDRAM specification this has a maximal value of 8. In an alternate notation 3-2-2 modules with a tRC of 8 are referred to as /3/2/2/8. The minimum standard for PC100 SDRAM is 3/3/3/8.