• 検索結果がありません。

Trigger (トリガ)

ドキュメント内 CoaXPress Standard (ページ 69-74)

8 Link Protocol (リンクプロトコル)

8.3 I/O Channel (I/O チャンネル)

8.3.2 Trigger (トリガ)

Trigger is provided in 2 directions: From Host to Device, and from Device to Host.

Triggers have the highest priority and shall be inserted into any lower priority transmission packet at the appropriate transmission boundary. To guarantee proper initialization both the Host and Device shall

de-assert the trigger signal as part of link discovery, which shall correspond to the effect of a falling edge trigger packet.

Trigger packets shall be acknowledged (see section 8.3.3).

トリガは双方向(ホストからデバイス,デバイスからホスト)の伝送となる。

トリガは最も高い優先度をもつため,他の優先度の低い伝送パケットに適当な伝送境界にて挿入する<SHALL>。 ホストとデバイスの両方で正常な初期化を保証するにはリンクディスカバリ中にトリガ信号をデ・アサートする

<SHALL>。(これは立ち下がりエッジのトリガパケットに相当<SHALL>。)

トリガパケットは必ず応答を取得すること<SHALL>(セクション8.3.3参照)。

8.3.2.1 Low Speed Link Trigger (ロースピードリンクのトリガ)

The event that results in a trigger being sent could occur at any time, but the trigger packet cannot be sent until the next transmission boundary. For the low speed link the trigger packet can start at the next character boundary (see section 8.2.4).

Comment: Allowing character alignment of the low speed trigger packet allows minimal trigger latency given the relatively low speed of the link.

送ろうとしているトリガを誘発するイベントはいつでも起こりえるが,トリガパケットは次の伝送境界が来るまで送信さ れない。ロースピードリンクではトリガパケットは次のキャラクタ境界にて開始することができる<CAN>(セクション 8.2.4参照)。

コメント: ロースピードのトリガパケットにてキャラクタアライメントを許容することにより比較して低速のリンクでもトリガパケット のトリガレイテンシを最小限に抑えることが可能になる。

To minimize trigger jitter, the time between the trigger event and the trigger packet being sent is coded into the packet as a delay value. The receiver can then use this delay to recreate the trigger event with low jitter and a fixed latency.

For the low speed link the delay value is 239 minus the number of units of 1/24 the low speed link bit interval (2.00 ns) between the trigger event and the start of the trigger packet. See Figure 15.

Comment Transmission timing accuracy is limited to character units. A character contains 10 bit intervals (after 8B/10B coding).

A bit interval equals 6 / 125 MHz = 48 ns. The character transmission time is therefore 10 * 48 ns.

The trigger timing correction delay value is coded in units of 2 ns. A full character interval is therefore 480 / 2 = 240 delay value codes wide.

Therefore to encode the trigger delay correction value, a range of 0 to 239 is needed.

K28.2

Figure 15 ― Low speed trigger example 239

0 TxD

Cnt

K28.4 K28.4 K28.2

95

95

95 95

239

0 187

187 187 187 Trig

Source

95 95 95 187 187 187

RxD

187

0 95

0 Trig

Dest.

トリガのジッタを最小限に抑えるため,トリガ発生とトリガパケット送信の時間差をディレイ値としてパケットの中にコ ード化する。レシーバはこのディレイを使って僅かなジッタと固定のレイテンシをもったトリガイベントを再生成する ことができる<CAN>

ロースピードリンクでのディレイ値は,トリガ発生からトリガパケット送信開始までの時間を,ロースピードリンクのビッ ト間隔(2.00ns)を 24 分割した単位数で表し,239 から引いたものとする。図 15にこれを示す。

コメント: 伝送タイミングの精度は各キャラクタの単位までに制限される。1つのキャラクタは(8b/10b コーディングの後に)

10bit のインターバルを含んでいる。

トリガタイミングのディレイ補正値は 2ns 単位でコーディングされる。したがって1つのキャラクタインターバルは 480 / 2 = 240 のレンジをもつディレイ値として表される。

したがってトリガのディレイ補正値をエンコードするためには,0~239 のレンジが必要となる。

K28.2

図 15 ― ロースピードにおけるトリガ例 239

0 送信データ

カウンタ

K28.4 K28.4 K28.2

95

95

95 95

239

0 187

187 187 187

送信側 トリガ

95 95 95 187 187 187

受信データ

187

0 95

0 受信側

復元トリガ

Table 15 ― Low speed link trigger packet format

Char Content Description

Either K28.2 K28.4 K28.4

Trigger packet indication – rising edge 0 – 2

or K28.4 K28.2 K28.2

Trigger packet indication – falling edge

3 – 5 3x Delay The delay value is 239 minus the number of units of 1/24 the low speed link bit interval (2.00 ns) between the trigger event and the start of the trigger packet

The Host can use a coarser time unit by setting lower bits of this value fixed at 0 or giving it a bias.

The Device can use a coarser time unit by using less bits of this value (discard non used lower bits of this value or use rounding). The chosen accuracy and usage of this timing correction value is left as a quality of implementation at both the Host and Device.

Packet size: 6 characters.

表 15 ― ロースピードリンクにおけるトリガパケットのフォーマット

キャラクタ 内容 説明

Either K28.2 K28.4 K28.4

トリガパケット - 立ち上がりフラグ 0 – 2

or K28.4 K28.2 K28.2

トリガパケット - 立ち下がりフラグ

3 – 5 3×Delay ディレイ値はトリガ発生からトリガパケット送信開始までの時間を,ロースピードリンクのビ ット間隔(2.00ns)を24分割した単位数で表し,239から引いたものになる。

ホスト側はディレイ値の下位ビットを0固定とするか一定のバイアスをかけた大雑把な時 間単位を用いることができる<CAN>

デバイスはディレイ値の下位ビットを破棄するか丸めることでビット幅を減らした大雑把な 時間単位を用いることができる<CAN>。ここで選択した精度および時間補正値の使用が デバイス/ホストの両方で実装の品質を決定する。

パケットサイズ:6キャラクタ

8.3.2.2 High Speed Link Trigger (ハイスピードリンクのトリガ)

Similarly for the high speed link the next transmission boundary is the next word (4 character), and the delay value is three minus the number of whole characters between the trigger event and the start of the trigger packet.

Table 16 High speed link trigger packet format

Word Content Description

Either

4x K28.4 Trigger packet indication – rising edge 0

or

4x K28.2 Trigger packet indication – falling edge

1 4x Delay The delay value is three minus the number of whole characters between the trigger event and the start of this trigger packet.

Usage is optional, when not used set to 0.

Packet size: 2 words.

ハイスピードリンクでも同様に次の伝送境界は次のワード(4 キャラクタ分)となり,ディレイ値はトリガ発生からトリガ パケットの開始まで全てのキャラクタ数を3から引いたものとなる。

表 16 ― ハイスピードリンクにおけるトリガパケットのフォーマット

キャラクタ 内容 説明

Either

4×K28.4 トリガパケット - 立ち上がりフラグ 0

or

4×K28.2 トリガパケット - 立ち下がりフラグ

1 4×Delay ディレイ値はトリガ発生からトリガパケット開始までの全てのキャラクタ数を3から引いたもの。

使用は任意で,使用しないときは0に設定する。

パケットサイズ:2ワード

ドキュメント内 CoaXPress Standard (ページ 69-74)