Main Content

Gold コード シーケンスの生成

2 つの PN Sequence Generator ブロックまたは 1 つの Gold Sequence Generator ブロックを使用して、同じ Gold コード シーケンスを生成します。

2 つの PN Sequence Generator ブロックと 1 つの Gold code sequence ブロックは、推奨多項式 $x^5+x^2+1$ および $x^5+x^4+x^3+x^2+1$ から結果として得られる Gold シーケンスを出力するように設定されます。PN Sequence Generator ブロックの場合、XOR ブロックは出力を結合し、結果として得られるシーケンスをワークスペース変数 out.pn_seq_xor に保存します。Gold Sequence Generator ブロックは出力シーケンスをワークスペース変数 out.gold_seq に保存します。

モデルを実行し、出力を比較します。

The XORd PN sequence output is:

pn_seq_xor =

     0     0     0     0     0     0     1     0     1     1     1

The Gold sequence output is:

gold_seq =

     0     0     0     0     0     0     1     0     1     1     1

さらに調べるには、Gold Sequence Generator ブロック内の Sequence index パラメーターを変更して、2 番目の PN Sequence Generator ブロックに遅延を追加します。

参考

|