SlideShare a Scribd company logo
1 of 66
Storage Interfaces
SATA
2
Where ATA Resides in the PC Architecture
CD
HD
SATA
SATA
3
History of Parallel ATA
Generation Standard Year Speed Key features
IDE 1986 Pre-standard
ATA 1994
PIO modes 0-2, multiword
DMA 0
EIDE ATA-2 1996 16 MB/sec
PIO modes 3-4, multiword
DMA modes 1-2, LBAs
ATA-3 1997 16 MB/sec SMART
ATA/ATAPI-4 1998 33 MB/sec
Ultra DMA modes 0- 2,
CRC, overlap, queuing, 80-
wire
Ultra DMA 66 ATA/ATAPI-5 2000 66 MB/sec Ultra DMA mode 3-4
Ultra DMA 100 ATA/ATAPI-6 2002 100 MB/sec
Ultra DMA mode 5,
48-bit LBA
Ultra DMA 133 ATA/ATAPI-7 2003 133 MB/sec Ultra DMA mode 6
4
• Bandwidth limited to 133 MB/s
• Cyclic Redundancy Checking (CRC) for data but not commands
• Support attachment of 2 devices per cable
• Small switch or jumper for drive selection
• High pin count on signaling interface adds cost to cables,
connectors and components
• Wide cables are cumbersome and inhibit airflow making cooling
more difficult and expensive
• Connectors hard to insert and remove
• Prone to bent pins
Limitations of Parallel ATA
5
Benefits of Serial Based Storage
• Frame-based transaction protocol (OSI model)
– Small, inexpensive connectors and cables
• Legacy support - ATA stack in SATA
• Ease of integration – cabling, jumpers
• Point-to-point connections (expanders, port multipliers)
• Pathway to higher data rates; 6 Gb/s is on the roadmap
• Improve bandwidth
– Wide ports permit several simultaneous connections,
allowing for link aggregation (SAS)
• Lower cost
6
PATA and SATA Comparisons
Source: SATA Working
Group
7
History of serial ATA
Generation Standard Year Speed Key features
Serial ATA ATA/ATAPI-7 2002 150 MB/sec
Serial ATA II ATA/ATAPI-8 2005 300 MB/sec Native Command
Queuing
Serial ATA III ATA/ATAPI-9? ? 600 MB/sec
8
SATA Technology Today
• SATA has been the most successful recent new storage interface
– It has been a multi billion dollar market for several years
– In 2006 over 300 million hard disk drives will have SATA interfaces
• 400 Million Shipped in 2005 (source: Gartner)
– Market Leader – Seagate 40% share
– SATA has also made its appearance in solid state disks, DVD drives and
tape drives
• In Desktop, notebooks, Consumer Products - DVR
• In the Enterprise! (thanks to STP)
– Challenges SAS in the enterprise
– Non-critical data
– Near-line and offline storage
– FC, SAS, and SATA will co-exist offering consumers with a choice of
flexible storage options at varying price-points
9
SATA Layer Architecture
10
SATA Layer Architecture
Connectivity
• Serial ATA is point-to-point topology
– Hosts can support multiple devices but requires
multiple links
– 100% available link bandwidth
– Failure of one device or link does not affect other
links
Link Characteristics
• SATA uses full-duplex links
– Protocol only permits frame transfer in one
direction at a time
– Each link consists of a transmit and a receive pair
• SATA uses low voltage levels
– Nominal voltage +/-250mV differential
Power Management
• SATA has
– Phy Ready – Capable of sending and receiving data. Main
phase locked loop are on and active
– Partial – Physical layer is powered but in a reduced state.
Must be able to return to Phy Ready within 10 us.
– Slumber – Physical layer is powered but in a reduced state.
Must be able to return to Phy Ready within 10 ms.
• ATA also defines IDLE, STANDBY, and SLEEP
• Necessary for newer laptop & mobile devices
SATA Architectural Model
Device Control Software
Buffer Memory
DMA management
Serial digital transport control
Serial digital link control
Serial physical interface
Device Layers
Host Control Software
Buffer Memory
DMA management
Host Layers
Serial digital transport
control
Serial digital link control
Serial physical interface
Application
Transport
Link
Physical
15
Physical Layer - Summary
• Defines the connectors and cabling used to
transmit and receive SATA signaling and data
information
16
Physical Layer - SATA Device Connector
Serial ATA
signal
connector
(pin S1)
Appearance of Serial ATA Connectors
(Drawing courtesy of Molex)
parallel ATA signals 4-pin power
3.5”
Parallel
power signal
2.5"
Serial
Device connector sizes and locations
Device plug
connector
Host receptacle
connector
power signal
3.5”
Serial
Legacy Power
(vendor specific)
Serial ATA
power
connector
(pin P1)
(5.25” form factor also defined for
devices like tape drives and DVDs)
in comparison…
Graphics courtesy of the SCSI Trade Association
and HP
17
Physical Layer - SATA Cabling
Graphics courtesy of
Molex
SATA to SATA
(1), CO, ST
The most
common
internal for
SATA (and
SAS); 1 meter
maximum
length
SATA Power
To provide
legacy power
support
eSATA Power
(2m)
External SATA;
designed for
use with
external
storage
products;
bypasses the
USB route
18
Physical Layer - Summary
• OOB (Out of Band) Signaling
• Speed Negotiations
• Byte/dword synchronization
19
Phy Layer - (OOB)
• Most primitive level of communication is OOB
• They are pattern of idle times and burst times, distinguished
by length of time between idles
– Idle time (and negation time) are when there are voltage levels
• Also known as DC idle
– Burst time is during the transmission of the ALIGN primitives
– Since byte sync has not occurred yet, the actual bits sent are not
relevant – 40 bits will always been detected and consider an ALIGN
20
Phy Layer - (OOB)
• COMINIT/COMRESET and COMWAKE are bursts of 6 ALIGN (0) separated by
IDLEs
• Length of the idle time determines the type of OOB signal
• Senders sends 6 – receiver only need to detect 4 (per spec)
• COMRESET are sent by hosts
• COMINIT are sent by devices
OOB Signal Idle Time Negation Time
COMWAKE 55 to 175 ns > 175 ns
COMINIT/COMRESET 175 to 525 ns > 525 ns
21
Phy Layer - OOB COMWAKE
22
Phy Layer - OOB COMINIT/COMRESET
Electrically, COMINIT and COMRESET appear exactly the same, the only
difference is the direction in which the ALIGN patterns are being sent. Host to
device: COMRESET; device to host: COMINIT
23
SATA Power-On Initialization
• Starts with the assertion of hardware reset
• Begins Out-Of-Band (OOB) signaling
• Allows host and device to initialize link
communications
• Ends with successful transmission of ALIGN
primitives
• Then speed negotiations
24
Power-On Initialization Process
Host Device
25
SATA Power-On Initialization
26
Error Situation
Example: Host and Device are unable to establish a
connection. Continuous transmission errors are seen from
both the Host and Device.
No COMINITs present. Indicates problem with
Device connection
27
Primitive Handshaking
Sender Receiver
X_RDY
R_RDY
SOF
Frame
.
.
.
EOF
R_IP
R_OK
WTRM
28
Primitive Handshaking
Example: Host sends commands but commands
are not completed
Trace indicates that Host is not properly handling
primitive handshaking and is not receiving frames
29
SATA Speed Negotiation
• Fast to slow progression
– SATA target device sends ALIGN primitives at the
fastest supported rate
– Waits for host to reply with ALIGNs
– If no reply after sending 2048 (i.e., the host
doesn’t support this speed), step down to next
slower speed and try again
30
SATA Speed Negotiation
• When host replies with ALIGNs, it has locked at the current
frequency and negotiation is complete
Speed Negotiation
Out of Band
• Part of normal power on sequence
• Allows host to issue a device hard reset
• Allows device to request a hard reset
• Brings device out of low power state
Out of Band Signals (cont.)
• COMWAKE
– Can be originated by either host or device
– Used as final phase of OOB initialization
– Used to bring out of low power & test states
• Exit Partial
• Exit Slumber
• Exit BIST
Out of Band Signal Forms
COMRESET / COMINIT
COMWAKE
106.7 ns
106.7 ns 106.7 ns
320 ns
Out of Band Signaling Protocol
Host Device
SATA Port Model
Clock & Data
Recovery
Serializer
Deserializer
AnalogFrontEnd
OOB Detect
COMRESET /
COMINIT
COMWAKE
Data Out
RX Clock
Port Control
Logic
Tx Clock
Align Generator
Data In
Phy Reset
Phy Ready
Slumber
Partial
SPD Mode
System Clock
SPD Select
Tx +
Tx -
Rx -
Rx +
SATA Architectural Model
Device Control Software
Buffer Memory
DMA management
Serial digital transport control
Serial digital link control
Serial physical interface
Device Layers
Host Control Software
Buffer Memory
DMA management
Host Layers
Serial digital transport
control
Serial digital link control
Serial physical interface
Application
Transport
Link
Physical
Link Layer
• 8b / 10b encoding
• Scrambles and descrambles data and control
words
• Converts data from transport layer into frames
• Conduct CRC generation and checking
• Provides frame flow control
Encoding Concepts
• All 32 bit Dwords are encoded for SATA
– 32 bits data = 40 bits of transmission
• Provides sufficient transition density
– Guarantees transition (0s and 1s) even if data is
0x00 or 0xFF
• Provides an easy way to detect transmission
error
Current Running Disparity (CRD)
• As each character is encoded a count is maintained
of the number of 0’s and 1’s being transmitted
– More 1’s than 0’s give positive disparity
– More 0’s than 1’s gives negative disparity
– Same number gives neutral disparity
• Only valid values of CRD are -1 and 1
– Any other value indicates that a transmission error has
occurred
CRD+ & CRD- Encoded Characters
0 0 1 1 1 1 1 1
1 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 1 0 0 1
8b Character 0x3F
This 10b Character transmitted when
CRD negative
This 10b Character transmitted when
CRD positive
This character
6 ones
4 zeros
Disparity +2
This character
4 ones
6 zeros
Disparity -2
SATA Primitives
• Convey real-time state information
• Control transfer of information between host
and device
• Provide host/device coordination
SATA Primitives
• ALIGN – Speed negotiation and at least every
256 Dword
• SYNC – Used when in idle to maintain bit
synchronization
• CONT – Used to suppress repeated primitives
SATA Primitives
• X_RDY
• R_RDY
• R_IP
• R_OK
• R_ERR
SOF
EOF
HOLD
HOLDA
SATA Frame Structure
• All SATA frames consist of:
– A start of frame (SOF) delimiter
– A payload – transport layer information
– A Cyclic Redundancy Check (CRC)
– An end of frame (EOF) delimiter
SOF CRC EOFPayload Data
Link Layer Protocol (1)
SYNCSYNCSYNCSYNCSYNCSYNC
SYNC SYNCSYNCSYNCSYNCSYNC
Host Device
Link Layer Protocol (2)
SYNCSYNCX_RDYX_RDYX_RDYX_RDY
SYNC SYNCSYNCSYNCSYNCSYNC
Host Device
Link Layer Protocol (3)
X_RDYX_RDYX_RDYX_RDYX_RDYX_RDY
SYNC R_RDYR_RDYR_RDYR_RDYSYNC
Host Device
Link Layer Protocol (4)
X_RDYX_RDYSOFDATADATADATA
R_RDY R_RDYR_RDYR_RDYR_RDYR_RDY
Host Device
Link Layer Protocol (5)
DATADATADATADATADATADATA
R_RDY R_IPR_IPR_IPR_IPR_RDY
Host Device
Link Layer Protocol (6)
DATADATACRCEOFWTRMWTRM
R_IP R_IPR_IPR_IPR_IPR_IP
Host Device
Link Layer Protocol (7)
CRCEOFWTRMWTRMWTRMWTRM
R_IP R_IPR_IPR_IPR_IPR_IP
Host Device
Link Layer Protocol (8)
WTRMWTRMWTRMWTRMWTRMWTRM
R_IP R_OKR_OKR_OKR_OKR_IP
Host Device
Link Layer Protocol (9)
WTRMWTRMSYNCSYNCSYNCSYNC
R_OK R_OKR_OKR_OKR_OKR_OK
Host Device
Link Layer Protocol (last)
SYNCSYNCSYNCSYNCSYNCSYNC
R_OK SYNCSYNCSYNCSYNCR_OK
Host Device
SATA Architectural Model
Device Control Software
Buffer Memory
DMA management
Serial digital transport control
Serial digital link control
Serial physical interface
Device Layers
Host Control Software
Buffer Memory
DMA management
Host Layers
Serial digital transport
control
Serial digital link control
Serial physical interface
Application
Transport
Link
Physical
Transport Layer
• Responsible for the management of Frame
Information Structures (FIS)
• At the command of Application layer:
– Format the FIS
– Make frame transmission request to Link layer
– Pass FIS contents to Link layer
– Receive transmission status from Link layer and
reports to Application layer
Frame Information Structure (FIS)
• A FIS is a mechanism to transfer information
between host and device application layers
– Shadow Register Block contents
– ATA commands
– Data movement setup information
– Read and write data
– Self test activation
– Unique FIS Type Code
FIS types
FIS TYPE
CODE
Description Direction
27h Register transfer host to device H D
34h Register transfer device to host D H
A1h Set Device bits D H
39h DMA Activate D H
41h DMA Setup D H
58h BIST Activate D H
5Fh PIO Setup D H
46h Data D H
Register – Host to Device FIS
Byte 3 Byte 2 Byte 1 Byte 0
Dword 0 Features Command Reserved FIS TYPE
(27h)
Dword 1 Dev/Head Cyl High Cyl Low Sector
Number
Dword 2 Features
(exp)
Cyl High
(exp)
Cyl Low
(exp)
Sector
Number
Dword 3 Control Reserved Sector
Count
Sector
Count
Dword 4 Reserved Reserved Reserved Reserved
BIST Activate FIS
Byte 3 Byte 2 Byte 1 Byte 0
0 Reserved [ TASLFPRV ] Reserved FIS Type 58h
1 Data [31:24] Data [23:16] Data [15:8] Data [7:0]
2 Data [31:24] Data [23:16] Data [15:8] Data [7:0]
T - Far end transmit only – transmit Dwords defined in words 1 & 2
A - No ALIGN transmission (valid only with T)
S - Bypass scrambling (valid only with T)
L - Far end retimed loopback with ALIGN insertion
F - Far end analog loopback
P - Transmit primitives defined in words 1 & 2 of the FIS
R - Reserved
V - Vendor Unique Test Mode – other bits undefined
Data FIS
Byte 3 Byte 2 Byte 1 Byte 0
Dword 0 Reserved Reserved Reserved FIS TYPE
(46h)
Dword 1
N Dwords of Data
Minimum 1 Dword
Maximum 2048 Dwords
Dword 2
. . .
Dword N
SATA Architectural Model
Device Control Software
Buffer Memory
DMA management
Serial digital transport control
Serial digital link control
Serial physical interface
Device Layers
Host Control Software
Buffer Memory
DMA management
Host Layers
Serial digital transport
control
Serial digital link control
Serial physical interface
Application
Transport
Link
Physical
Command / Application Layer
• Defined using a series of state diagrams
– Register H  D
– Register D  H
– DMA data in
– DMA data out
• Host command layer may be the same but
may only support legacy commands
Compatibility SATA
• PCI SATA controller card
• Windows 2000/XP/2003/Vista
• Integrated SATA CRC on both levels of
command and data packets
Storage interface sata_pata

More Related Content

What's hot

Verification Strategy for PCI-Express
Verification Strategy for PCI-ExpressVerification Strategy for PCI-Express
Verification Strategy for PCI-ExpressDVClub
 
input output ports
input output portsinput output ports
input output portsaslamslides
 
Session 8,9 PCI Express
Session 8,9 PCI ExpressSession 8,9 PCI Express
Session 8,9 PCI ExpressSubhash Iyer
 
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010Altera Corporation
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/Osathish sak
 
Ethernet protocol
Ethernet protocolEthernet protocol
Ethernet protocolTom Chou
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verificationMaulik Suthar
 
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)gnkeshava
 
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced Features
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced FeaturesMIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced Features
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced FeaturesMIPI Alliance
 

What's hot (20)

axi protocol
axi protocolaxi protocol
axi protocol
 
Verification Strategy for PCI-Express
Verification Strategy for PCI-ExpressVerification Strategy for PCI-Express
Verification Strategy for PCI-Express
 
Pci express modi
Pci express modiPci express modi
Pci express modi
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Pc ie tl_layer (3)
Pc ie tl_layer (3)Pc ie tl_layer (3)
Pc ie tl_layer (3)
 
input output ports
input output portsinput output ports
input output ports
 
Session 8,9 PCI Express
Session 8,9 PCI ExpressSession 8,9 PCI Express
Session 8,9 PCI Express
 
UART
UARTUART
UART
 
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
Creating Your Own PCI Express System Using FPGAs: Embedded World 2010
 
DMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/ODMA Versus Polling or Interrupt Driven I/O
DMA Versus Polling or Interrupt Driven I/O
 
Axi protocol
Axi protocolAxi protocol
Axi protocol
 
DDR SDRAMs
DDR SDRAMsDDR SDRAMs
DDR SDRAMs
 
I2C introduction
I2C introductionI2C introduction
I2C introduction
 
AMBA_APB_pst
AMBA_APB_pstAMBA_APB_pst
AMBA_APB_pst
 
Ethernet protocol
Ethernet protocolEthernet protocol
Ethernet protocol
 
Apb
ApbApb
Apb
 
Spi master core verification
Spi master core verificationSpi master core verification
Spi master core verification
 
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
PCIe and PCIe driver in WEC7 (Windows Embedded compact 7)
 
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced Features
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced FeaturesMIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced Features
MIPI DevCon Bangalore 2017: MIPI I3C Interface - Advanced Features
 
SPI Protocol in LPC2148
SPI  Protocol in LPC2148SPI  Protocol in LPC2148
SPI Protocol in LPC2148
 

Viewers also liked

Top 10 storage interview questions with answers
Top 10 storage interview questions with answersTop 10 storage interview questions with answers
Top 10 storage interview questions with answersmeganc602
 
11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密T客邦
 
1455.ata atapi standards - 1-7
1455.ata atapi standards - 1-71455.ata atapi standards - 1-7
1455.ata atapi standards - 1-7techbed
 
Russian Software Development Industry and Software Exports 2012 (Report, Russ...
Russian Software Development Industry and Software Exports 2012 (Report, Russ...Russian Software Development Industry and Software Exports 2012 (Report, Russ...
Russian Software Development Industry and Software Exports 2012 (Report, Russ...Vera Leonik-Shilyaeva
 
Science & techno parks first strategic decisions-
Science & techno parks   first strategic decisions-Science & techno parks   first strategic decisions-
Science & techno parks first strategic decisions-Ramon Palacio Leon
 
SSD - Solid State Drive PPT by Atishay Jain
SSD - Solid State Drive PPT by Atishay JainSSD - Solid State Drive PPT by Atishay Jain
SSD - Solid State Drive PPT by Atishay JainAtishay Jain
 
St. Petersburg
St. PetersburgSt. Petersburg
St. PetersburgSchool
 
Disk Drives Interfaces
Disk Drives InterfacesDisk Drives Interfaces
Disk Drives InterfacesAmir Villas
 
External Cards and Slots
External Cards and SlotsExternal Cards and Slots
External Cards and SlotsArif Samoon
 
SCSI Protocol
SCSI ProtocolSCSI Protocol
SCSI ProtocolRakesh T
 

Viewers also liked (15)

Sata Presentation Jc
Sata Presentation   JcSata Presentation   Jc
Sata Presentation Jc
 
Top 10 storage interview questions with answers
Top 10 storage interview questions with answersTop 10 storage interview questions with answers
Top 10 storage interview questions with answers
 
11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密
 
1455.ata atapi standards - 1-7
1455.ata atapi standards - 1-71455.ata atapi standards - 1-7
1455.ata atapi standards - 1-7
 
Russoft
RussoftRussoft
Russoft
 
Russian Software Development Industry and Software Exports 2012 (Report, Russ...
Russian Software Development Industry and Software Exports 2012 (Report, Russ...Russian Software Development Industry and Software Exports 2012 (Report, Russ...
Russian Software Development Industry and Software Exports 2012 (Report, Russ...
 
Science & techno parks first strategic decisions-
Science & techno parks   first strategic decisions-Science & techno parks   first strategic decisions-
Science & techno parks first strategic decisions-
 
SSD - Solid State Drive PPT by Atishay Jain
SSD - Solid State Drive PPT by Atishay JainSSD - Solid State Drive PPT by Atishay Jain
SSD - Solid State Drive PPT by Atishay Jain
 
Hard disk_
 Hard disk_ Hard disk_
Hard disk_
 
Technopark
TechnoparkTechnopark
Technopark
 
St. Petersburg
St. PetersburgSt. Petersburg
St. Petersburg
 
Disk Drives Interfaces
Disk Drives InterfacesDisk Drives Interfaces
Disk Drives Interfaces
 
External Cards and Slots
External Cards and SlotsExternal Cards and Slots
External Cards and Slots
 
Storage Area Network interview Questions
Storage Area Network interview QuestionsStorage Area Network interview Questions
Storage Area Network interview Questions
 
SCSI Protocol
SCSI ProtocolSCSI Protocol
SCSI Protocol
 

Similar to Storage interface sata_pata

I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23Techvilla
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networkingArul Kumar
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhVijayKaran7
 
Broadcast day-2007-tandberg-ipxasi
Broadcast day-2007-tandberg-ipxasiBroadcast day-2007-tandberg-ipxasi
Broadcast day-2007-tandberg-ipxasiSSPI Brasil
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5Waqas Ahmed Nawaz
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptxSKUP1
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolAnkur Soni
 
IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal DistributionrAVe [PUBS]
 
High-performance 32G Fibre Channel Module on MDS 9700 Directors:
High-performance 32G Fibre Channel Module on MDS 9700 Directors:High-performance 32G Fibre Channel Module on MDS 9700 Directors:
High-performance 32G Fibre Channel Module on MDS 9700 Directors:Tony Antony
 
Sept 2017 boot process
Sept 2017   boot processSept 2017   boot process
Sept 2017 boot processshahin raj
 
Ccna2 mod3-configuring a-router
Ccna2 mod3-configuring a-routerCcna2 mod3-configuring a-router
Ccna2 mod3-configuring a-router97148881557
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars Salah Amean
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 
ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15Aritra Sarkar
 

Similar to Storage interface sata_pata (20)

I2C And SPI Part-23
I2C And  SPI Part-23I2C And  SPI Part-23
I2C And SPI Part-23
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networking
 
Serial Busses.pptx
Serial Busses.pptxSerial Busses.pptx
Serial Busses.pptx
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
serial.ppt
serial.pptserial.ppt
serial.ppt
 
Broadcast day-2007-tandberg-ipxasi
Broadcast day-2007-tandberg-ipxasiBroadcast day-2007-tandberg-ipxasi
Broadcast day-2007-tandberg-ipxasi
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 5
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptx
 
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 
IP Signal Distribution
IP Signal DistributionIP Signal Distribution
IP Signal Distribution
 
Ch09 system administration
Ch09 system administration Ch09 system administration
Ch09 system administration
 
High-performance 32G Fibre Channel Module on MDS 9700 Directors:
High-performance 32G Fibre Channel Module on MDS 9700 Directors:High-performance 32G Fibre Channel Module on MDS 9700 Directors:
High-performance 32G Fibre Channel Module on MDS 9700 Directors:
 
Sept 2017 boot process
Sept 2017   boot processSept 2017   boot process
Sept 2017 boot process
 
SCH5627P.pdf
SCH5627P.pdfSCH5627P.pdf
SCH5627P.pdf
 
Ccna2 mod3-configuring a-router
Ccna2 mod3-configuring a-routerCcna2 mod3-configuring a-router
Ccna2 mod3-configuring a-router
 
WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars WSN protocol 802.15.4 together with cc2420 seminars
WSN protocol 802.15.4 together with cc2420 seminars
 
Tcpip
TcpipTcpip
Tcpip
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15
 

More from PREMAL GAJJAR

Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)PREMAL GAJJAR
 
Introduction types of medium data_com
Introduction types of medium data_comIntroduction types of medium data_com
Introduction types of medium data_comPREMAL GAJJAR
 
Framming data link layer
Framming data link layerFramming data link layer
Framming data link layerPREMAL GAJJAR
 

More from PREMAL GAJJAR (8)

Rs 232 interface
Rs 232 interfaceRs 232 interface
Rs 232 interface
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
 
Slow peripheral interfaces (i2 c spi uart)
Slow peripheral interfaces (i2 c  spi uart)Slow peripheral interfaces (i2 c  spi uart)
Slow peripheral interfaces (i2 c spi uart)
 
Hdmi
Hdmi Hdmi
Hdmi
 
Advance of usb
Advance of usb Advance of usb
Advance of usb
 
Network switching
Network switchingNetwork switching
Network switching
 
Introduction types of medium data_com
Introduction types of medium data_comIntroduction types of medium data_com
Introduction types of medium data_com
 
Framming data link layer
Framming data link layerFramming data link layer
Framming data link layer
 

Recently uploaded

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleAlluxio, Inc.
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 

Recently uploaded (20)

UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Correctly Loading Incremental Data at Scale
Correctly Loading Incremental Data at ScaleCorrectly Loading Incremental Data at Scale
Correctly Loading Incremental Data at Scale
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 

Storage interface sata_pata

  • 2. 2 Where ATA Resides in the PC Architecture CD HD SATA SATA
  • 3. 3 History of Parallel ATA Generation Standard Year Speed Key features IDE 1986 Pre-standard ATA 1994 PIO modes 0-2, multiword DMA 0 EIDE ATA-2 1996 16 MB/sec PIO modes 3-4, multiword DMA modes 1-2, LBAs ATA-3 1997 16 MB/sec SMART ATA/ATAPI-4 1998 33 MB/sec Ultra DMA modes 0- 2, CRC, overlap, queuing, 80- wire Ultra DMA 66 ATA/ATAPI-5 2000 66 MB/sec Ultra DMA mode 3-4 Ultra DMA 100 ATA/ATAPI-6 2002 100 MB/sec Ultra DMA mode 5, 48-bit LBA Ultra DMA 133 ATA/ATAPI-7 2003 133 MB/sec Ultra DMA mode 6
  • 4. 4 • Bandwidth limited to 133 MB/s • Cyclic Redundancy Checking (CRC) for data but not commands • Support attachment of 2 devices per cable • Small switch or jumper for drive selection • High pin count on signaling interface adds cost to cables, connectors and components • Wide cables are cumbersome and inhibit airflow making cooling more difficult and expensive • Connectors hard to insert and remove • Prone to bent pins Limitations of Parallel ATA
  • 5. 5 Benefits of Serial Based Storage • Frame-based transaction protocol (OSI model) – Small, inexpensive connectors and cables • Legacy support - ATA stack in SATA • Ease of integration – cabling, jumpers • Point-to-point connections (expanders, port multipliers) • Pathway to higher data rates; 6 Gb/s is on the roadmap • Improve bandwidth – Wide ports permit several simultaneous connections, allowing for link aggregation (SAS) • Lower cost
  • 6. 6 PATA and SATA Comparisons Source: SATA Working Group
  • 7. 7 History of serial ATA Generation Standard Year Speed Key features Serial ATA ATA/ATAPI-7 2002 150 MB/sec Serial ATA II ATA/ATAPI-8 2005 300 MB/sec Native Command Queuing Serial ATA III ATA/ATAPI-9? ? 600 MB/sec
  • 8. 8 SATA Technology Today • SATA has been the most successful recent new storage interface – It has been a multi billion dollar market for several years – In 2006 over 300 million hard disk drives will have SATA interfaces • 400 Million Shipped in 2005 (source: Gartner) – Market Leader – Seagate 40% share – SATA has also made its appearance in solid state disks, DVD drives and tape drives • In Desktop, notebooks, Consumer Products - DVR • In the Enterprise! (thanks to STP) – Challenges SAS in the enterprise – Non-critical data – Near-line and offline storage – FC, SAS, and SATA will co-exist offering consumers with a choice of flexible storage options at varying price-points
  • 11. Connectivity • Serial ATA is point-to-point topology – Hosts can support multiple devices but requires multiple links – 100% available link bandwidth – Failure of one device or link does not affect other links
  • 12. Link Characteristics • SATA uses full-duplex links – Protocol only permits frame transfer in one direction at a time – Each link consists of a transmit and a receive pair • SATA uses low voltage levels – Nominal voltage +/-250mV differential
  • 13. Power Management • SATA has – Phy Ready – Capable of sending and receiving data. Main phase locked loop are on and active – Partial – Physical layer is powered but in a reduced state. Must be able to return to Phy Ready within 10 us. – Slumber – Physical layer is powered but in a reduced state. Must be able to return to Phy Ready within 10 ms. • ATA also defines IDLE, STANDBY, and SLEEP • Necessary for newer laptop & mobile devices
  • 14. SATA Architectural Model Device Control Software Buffer Memory DMA management Serial digital transport control Serial digital link control Serial physical interface Device Layers Host Control Software Buffer Memory DMA management Host Layers Serial digital transport control Serial digital link control Serial physical interface Application Transport Link Physical
  • 15. 15 Physical Layer - Summary • Defines the connectors and cabling used to transmit and receive SATA signaling and data information
  • 16. 16 Physical Layer - SATA Device Connector Serial ATA signal connector (pin S1) Appearance of Serial ATA Connectors (Drawing courtesy of Molex) parallel ATA signals 4-pin power 3.5” Parallel power signal 2.5" Serial Device connector sizes and locations Device plug connector Host receptacle connector power signal 3.5” Serial Legacy Power (vendor specific) Serial ATA power connector (pin P1) (5.25” form factor also defined for devices like tape drives and DVDs) in comparison… Graphics courtesy of the SCSI Trade Association and HP
  • 17. 17 Physical Layer - SATA Cabling Graphics courtesy of Molex SATA to SATA (1), CO, ST The most common internal for SATA (and SAS); 1 meter maximum length SATA Power To provide legacy power support eSATA Power (2m) External SATA; designed for use with external storage products; bypasses the USB route
  • 18. 18 Physical Layer - Summary • OOB (Out of Band) Signaling • Speed Negotiations • Byte/dword synchronization
  • 19. 19 Phy Layer - (OOB) • Most primitive level of communication is OOB • They are pattern of idle times and burst times, distinguished by length of time between idles – Idle time (and negation time) are when there are voltage levels • Also known as DC idle – Burst time is during the transmission of the ALIGN primitives – Since byte sync has not occurred yet, the actual bits sent are not relevant – 40 bits will always been detected and consider an ALIGN
  • 20. 20 Phy Layer - (OOB) • COMINIT/COMRESET and COMWAKE are bursts of 6 ALIGN (0) separated by IDLEs • Length of the idle time determines the type of OOB signal • Senders sends 6 – receiver only need to detect 4 (per spec) • COMRESET are sent by hosts • COMINIT are sent by devices OOB Signal Idle Time Negation Time COMWAKE 55 to 175 ns > 175 ns COMINIT/COMRESET 175 to 525 ns > 525 ns
  • 21. 21 Phy Layer - OOB COMWAKE
  • 22. 22 Phy Layer - OOB COMINIT/COMRESET Electrically, COMINIT and COMRESET appear exactly the same, the only difference is the direction in which the ALIGN patterns are being sent. Host to device: COMRESET; device to host: COMINIT
  • 23. 23 SATA Power-On Initialization • Starts with the assertion of hardware reset • Begins Out-Of-Band (OOB) signaling • Allows host and device to initialize link communications • Ends with successful transmission of ALIGN primitives • Then speed negotiations
  • 26. 26 Error Situation Example: Host and Device are unable to establish a connection. Continuous transmission errors are seen from both the Host and Device. No COMINITs present. Indicates problem with Device connection
  • 28. 28 Primitive Handshaking Example: Host sends commands but commands are not completed Trace indicates that Host is not properly handling primitive handshaking and is not receiving frames
  • 29. 29 SATA Speed Negotiation • Fast to slow progression – SATA target device sends ALIGN primitives at the fastest supported rate – Waits for host to reply with ALIGNs – If no reply after sending 2048 (i.e., the host doesn’t support this speed), step down to next slower speed and try again
  • 30. 30 SATA Speed Negotiation • When host replies with ALIGNs, it has locked at the current frequency and negotiation is complete Speed Negotiation
  • 31. Out of Band • Part of normal power on sequence • Allows host to issue a device hard reset • Allows device to request a hard reset • Brings device out of low power state
  • 32. Out of Band Signals (cont.) • COMWAKE – Can be originated by either host or device – Used as final phase of OOB initialization – Used to bring out of low power & test states • Exit Partial • Exit Slumber • Exit BIST
  • 33. Out of Band Signal Forms COMRESET / COMINIT COMWAKE 106.7 ns 106.7 ns 106.7 ns 320 ns
  • 34. Out of Band Signaling Protocol Host Device
  • 35. SATA Port Model Clock & Data Recovery Serializer Deserializer AnalogFrontEnd OOB Detect COMRESET / COMINIT COMWAKE Data Out RX Clock Port Control Logic Tx Clock Align Generator Data In Phy Reset Phy Ready Slumber Partial SPD Mode System Clock SPD Select Tx + Tx - Rx - Rx +
  • 36. SATA Architectural Model Device Control Software Buffer Memory DMA management Serial digital transport control Serial digital link control Serial physical interface Device Layers Host Control Software Buffer Memory DMA management Host Layers Serial digital transport control Serial digital link control Serial physical interface Application Transport Link Physical
  • 37. Link Layer • 8b / 10b encoding • Scrambles and descrambles data and control words • Converts data from transport layer into frames • Conduct CRC generation and checking • Provides frame flow control
  • 38. Encoding Concepts • All 32 bit Dwords are encoded for SATA – 32 bits data = 40 bits of transmission • Provides sufficient transition density – Guarantees transition (0s and 1s) even if data is 0x00 or 0xFF • Provides an easy way to detect transmission error
  • 39. Current Running Disparity (CRD) • As each character is encoded a count is maintained of the number of 0’s and 1’s being transmitted – More 1’s than 0’s give positive disparity – More 0’s than 1’s gives negative disparity – Same number gives neutral disparity • Only valid values of CRD are -1 and 1 – Any other value indicates that a transmission error has occurred
  • 40. CRD+ & CRD- Encoded Characters 0 0 1 1 1 1 1 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 1 0 0 1 8b Character 0x3F This 10b Character transmitted when CRD negative This 10b Character transmitted when CRD positive This character 6 ones 4 zeros Disparity +2 This character 4 ones 6 zeros Disparity -2
  • 41. SATA Primitives • Convey real-time state information • Control transfer of information between host and device • Provide host/device coordination
  • 42. SATA Primitives • ALIGN – Speed negotiation and at least every 256 Dword • SYNC – Used when in idle to maintain bit synchronization • CONT – Used to suppress repeated primitives
  • 43. SATA Primitives • X_RDY • R_RDY • R_IP • R_OK • R_ERR SOF EOF HOLD HOLDA
  • 44. SATA Frame Structure • All SATA frames consist of: – A start of frame (SOF) delimiter – A payload – transport layer information – A Cyclic Redundancy Check (CRC) – An end of frame (EOF) delimiter SOF CRC EOFPayload Data
  • 45. Link Layer Protocol (1) SYNCSYNCSYNCSYNCSYNCSYNC SYNC SYNCSYNCSYNCSYNCSYNC Host Device
  • 46. Link Layer Protocol (2) SYNCSYNCX_RDYX_RDYX_RDYX_RDY SYNC SYNCSYNCSYNCSYNCSYNC Host Device
  • 47. Link Layer Protocol (3) X_RDYX_RDYX_RDYX_RDYX_RDYX_RDY SYNC R_RDYR_RDYR_RDYR_RDYSYNC Host Device
  • 48. Link Layer Protocol (4) X_RDYX_RDYSOFDATADATADATA R_RDY R_RDYR_RDYR_RDYR_RDYR_RDY Host Device
  • 49. Link Layer Protocol (5) DATADATADATADATADATADATA R_RDY R_IPR_IPR_IPR_IPR_RDY Host Device
  • 50. Link Layer Protocol (6) DATADATACRCEOFWTRMWTRM R_IP R_IPR_IPR_IPR_IPR_IP Host Device
  • 51. Link Layer Protocol (7) CRCEOFWTRMWTRMWTRMWTRM R_IP R_IPR_IPR_IPR_IPR_IP Host Device
  • 52. Link Layer Protocol (8) WTRMWTRMWTRMWTRMWTRMWTRM R_IP R_OKR_OKR_OKR_OKR_IP Host Device
  • 53. Link Layer Protocol (9) WTRMWTRMSYNCSYNCSYNCSYNC R_OK R_OKR_OKR_OKR_OKR_OK Host Device
  • 54. Link Layer Protocol (last) SYNCSYNCSYNCSYNCSYNCSYNC R_OK SYNCSYNCSYNCSYNCR_OK Host Device
  • 55. SATA Architectural Model Device Control Software Buffer Memory DMA management Serial digital transport control Serial digital link control Serial physical interface Device Layers Host Control Software Buffer Memory DMA management Host Layers Serial digital transport control Serial digital link control Serial physical interface Application Transport Link Physical
  • 56. Transport Layer • Responsible for the management of Frame Information Structures (FIS) • At the command of Application layer: – Format the FIS – Make frame transmission request to Link layer – Pass FIS contents to Link layer – Receive transmission status from Link layer and reports to Application layer
  • 57. Frame Information Structure (FIS) • A FIS is a mechanism to transfer information between host and device application layers – Shadow Register Block contents – ATA commands – Data movement setup information – Read and write data – Self test activation – Unique FIS Type Code
  • 58. FIS types FIS TYPE CODE Description Direction 27h Register transfer host to device H D 34h Register transfer device to host D H A1h Set Device bits D H 39h DMA Activate D H 41h DMA Setup D H 58h BIST Activate D H 5Fh PIO Setup D H 46h Data D H
  • 59. Register – Host to Device FIS Byte 3 Byte 2 Byte 1 Byte 0 Dword 0 Features Command Reserved FIS TYPE (27h) Dword 1 Dev/Head Cyl High Cyl Low Sector Number Dword 2 Features (exp) Cyl High (exp) Cyl Low (exp) Sector Number Dword 3 Control Reserved Sector Count Sector Count Dword 4 Reserved Reserved Reserved Reserved
  • 60. BIST Activate FIS Byte 3 Byte 2 Byte 1 Byte 0 0 Reserved [ TASLFPRV ] Reserved FIS Type 58h 1 Data [31:24] Data [23:16] Data [15:8] Data [7:0] 2 Data [31:24] Data [23:16] Data [15:8] Data [7:0] T - Far end transmit only – transmit Dwords defined in words 1 & 2 A - No ALIGN transmission (valid only with T) S - Bypass scrambling (valid only with T) L - Far end retimed loopback with ALIGN insertion F - Far end analog loopback P - Transmit primitives defined in words 1 & 2 of the FIS R - Reserved V - Vendor Unique Test Mode – other bits undefined
  • 61. Data FIS Byte 3 Byte 2 Byte 1 Byte 0 Dword 0 Reserved Reserved Reserved FIS TYPE (46h) Dword 1 N Dwords of Data Minimum 1 Dword Maximum 2048 Dwords Dword 2 . . . Dword N
  • 62. SATA Architectural Model Device Control Software Buffer Memory DMA management Serial digital transport control Serial digital link control Serial physical interface Device Layers Host Control Software Buffer Memory DMA management Host Layers Serial digital transport control Serial digital link control Serial physical interface Application Transport Link Physical
  • 63. Command / Application Layer • Defined using a series of state diagrams – Register H  D – Register D  H – DMA data in – DMA data out • Host command layer may be the same but may only support legacy commands
  • 64.
  • 65. Compatibility SATA • PCI SATA controller card • Windows 2000/XP/2003/Vista • Integrated SATA CRC on both levels of command and data packets