I had a lot of problems understanding what
the issue is. I don’t see interoperability problems, I see bad a
implementation that won’t work reliably.
The transmitters of both ends are
transmitting the same thing. There is not difference.
The good receiver and the bad receiver see
the same stream. One works reliably, the other doesn’t. One
is a compliant implementation, the other isn’t.
That being said, I would suggest that the
descriptions of the implementations is, in it self, wrong.
When the first (START) bit is detected –
i.e., ComWake Detect in the diagram below, we are in the middle of the first
BCT time. This is not the start of the first BCT. If one were to
load the BCT timer with a start value that is appropriate (maybe the middle of
the full BCT count) when the first ComWake Detect occurs, then all of the
remaining ComWake Detects will be positioned roughly in the middle of each remaining
BCT. Drift in clock frequencies will not move it outside of the window. Now
in each of the BCT’s you will see zero or one ComWake Detects. Never
two.
I don’t see what needs to be changed.
Except some bad implementations.
Regards,
Steve Finch
STMicroelectronics
From:
owner-t10@t10.org [mailto:owner-t10@t10.org] On
Behalf Of Shah, Amit M
Sent: Tuesday, September 11, 2007
11:26 PM
To: t10@t10.org; Elliott, Robert
(Server Storage)
Cc: Shah, Amit M
Subject: BCT and PHY CAP exchange
-- Possible interoperability issue
Hello,
The SAS standard does not talk about BCT timer and PHY CAP
exchange high level mplementation at all.
It mentions
“Each phy
capabilities bit is one bit cell time (BCT) and contains either COMWAKE (indicating
one) or D.C. idle (indicating zero)”
Right now it is open to designer’s interpretation of
the standard and I am afraid that different vendors will have different
implementation of BCT / PHYCAP which will cause interoperability issues in
future.
Recently I came across of one interpretation of BCT and PHY
Capability which I thought was not correct. This implementation is accurate
w.r.t. SAS standard (as SAS standard does not mention any rules or SM to govern
BCT / PHY CAP exchange) but I believe it will not work in real silicon.
Here are the details of what I observed…
BCT is 2200 OOBI.
Transmitter of ComWake (CW) will have to transmit CW for
2200 OOBI which is equivalent to BCT.
Receiver of this CW can detect the negation time a little
sooner. TX Negation time = 186.6nsec. RX Negation time > 175 nsec. So
basically receiver can completely detect a CW (with negation time) about 11nsec
earlier.
Now lets look at this diagram….

You can see when TX is transmitting CW.
Also after some latency, RX receives the CW.
RX can detect the complete CW sequence along with negation
time 11 nsec earlier (as mentioned above). So that is the reason there is some
IDLE shown between two CW sequence as seen by receiver.
During an OOB sequence, there are only two distinct events
that are reliable for a receiver. Once is a “ComWake Detected” and
other is “ComWake Completed”.
Logically, RX can only start its BCT timer on ComWake Detect
(I don’t know why SAS Standard does not mention this critical detail) or
a ComWake Completed as starting BCT timer on any random burst sequence could be
fatal for PHY CAP detection sequence.
What I think is a good implementation….
Advantage: The decoding of the PHY CAP bit during BCT time
will happen about 186nsec before BCT expires. So this approach is less
susceptible to design implementation / clock crossing issues. Better for
Interoperability.
BAD implementation # 1 (This is the wrong implementation
that I came across)….
BAD implementation # 2….
The last two implementation are marked as “BAD
Implementation” as the internal decoding of a “1” or a
“0” (after Start bit detection) is based on a CW event which will
happen only during the time when BCT is about to expire. Theoretically, BCT is
equal to a CW. So one clock before BCT expires, a new CW event should be
detected to decode the PHY CAP bit as a “1”.
In real world, if BCT expires and one clock later the CW
event occurs, that event will be missed and a wrong PHY CAP will be captured.
Due to clock crossing of signals or due to SERDES implementation, if a CW detect
is detected (bad implementation #1) one clock later or if CW completed
(implementation #2) is detected 1 clock later, the whole PHY CAP exchange will
be bad.
So these bad implementations as stretching the detection of
a “1” or a “0” during a BCT to a 1 clock period and I
am worried about that.
By not defining BCT and PHYCAP at a higher level, the
standard is relying on the vendors to implement this functionality as they feel
is right.
But I am worried that wrong implementation of BCT / PHY CAP
will lead to a lot of interoperability issues in future.
It will be good if the SAS standard will throw some light on
this issue….
Thanks,
Amit Shah