Community Translation - Retrieving Data from a PSoC® 3/ PSoC 5LP Verilog Component Implemented in PLDs with the CPU or DMA - KBA203627

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I'd like to translate KBA203627 into Japanese.

Please confirm to my work.

moto

Original KBA: KBA203627

Retrieving Data from a PSoC® 3/ PSoC 5LP Verilog Component Implemented in PLDs with the CPU or DMA -...

0 Likes
2 Replies
AikoO_51
Moderator
Moderator
Moderator
100 sign-ins First question asked 50 solutions authored

Hi moto-san,

I confirmed the KBA.

Please work to do.

Thanks.

AIko

Aiko Ohtaka
Infineon Technologies
0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Original KBA: KBA203627

Retrieving Data from a PSoC® 3/ PSoC 5LP Verilog Component Implemented in PLDs with the CPU or DMA -...

Translated by: MoTa_728816

===============================

タイトル:PSoC® 3/ PSoC 5LP CPU か DMA で Verilog で PLD に実装されたコンポーネントからデータを取得する方法 - KBA203627

ヴァージョン:**

質問:

UDB ブロックの PLD を使用した Verilog コンポーネントのデータを CPU/DMA から読むのにはどうしたら良いですか?

回答:

PLD を使用した Verilog コンポーネントでは内部の信号の値を保存できるハードウェアレジスタはありません。そのため、CPU/DMA がこのコンポーネントから直接データを読むことはできません。コンポーネントから読む一つの方法は、目的の信号を出力ピンに出力してそのピンをステータスレジスタに接続することです。

注意:もしUDB コンポーネント PLD の入力または出力が PI/PO バスで固定されたデータパスと結合されている場合、それは CPU/DMA から読むことが可能です。PI/PO バスは UDB ステータス/コントロールレジスタと同じ 8-bit バスを共有しています。

以下は簡単な 3-bit カウンタの例です:

module Mod3Counter

(

     count,

     clock

);

     output [2:0] count;

     input clock;

//`#start body` -- edit after this line, do not edit this line

reg [2:0] count;

always @(posedge clock)

begin

     count <= count+1'd1;

end

endmodule

ご覧のように、‘count’ は出力信号を持ちます。下図に示されるように ‘count’ 端子はステータスレジスタに接続されています。

001-1.png

CPU は単にステータスレジスタ (Status_Reg_1) を読むだけで count を読むことが出来ます。DMA のソースアドレスをステータスレジスタのアドレスに設定することで count を他のデスティネーションへ転送することも可能です。

===============================

20-May-2020

moto

0 Likes