山本/日誌/2010-10-06
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[山本/日誌]]
-DMAモジュール
--ポートリストに length, done を追加
--入出力宣言に
output [31:0] length;
output done;
を追記
-システムのトップモジュール
--ポートリストの内コントローラからのもの (coe_custom_XXX) を全て削除
--入出力宣言部分にあるポートのうち、ポートリストから削除したものを input -> wire, output -> '''削除'''
wire [ 3: 0] coe_custom_address_to_the_controller_X;
wire [ 31: 0] coe_custom_length_to_the_controller_X;
wire coe_custom_mem_cs_to_the_controller_X;
wire coe_custom_mem_error_to_the_controller_X;
wire coe_custom_network_error_to_the_controller_X;
wire coe_custom_rcv_done_to_the_controller_X;
wire coe_custom_read_n_to_the_controller_X;
wire coe_custom_req_from_out_to_the_controller_X;
wire coe_custom_send_done_to_the_controller_X;
wire [ 31: 0] coe_custom_write_address_to_the_controller_X;
wire coe_custom_write_n_to_the_controller_X;
--ワイヤを宣言
wire dma_X_done;
wire [31:0] dma_X_length;
--2コア(Core 0, Core 1)でネットワークを介さずに直接繋ぐ場合は
assign coe_custom_length_to_the_controller_0 = dma_1_length;
assign coe_custom_length_to_the_controller_1 = dma_0_length;
assign coe_custom_mem_cs_to_the_controller_0 = dma_1_write_master_chipselect;
assign coe_custom_mem_cs_to_the_controller_1 = dma_0_write_master_chipselect;
assign coe_custom_read_n_to_the_controller_0 = dma_1_read_master_read_n;
assign coe_custom_read_n_to_the_controller_1 = dma_0_read_master_read_n;
assign coe_custom_req_from_out_to_the_controller_0 = coe_custom_req_to_out_from_the_controller_1;
assign coe_custom_req_from_out_to_the_controller_1 = coe_custom_req_to_out_from_the_controller_0;
assign coe_custom_rcv_done_to_the_controller_0 = dma_1_done;
assign coe_custom_rcv_done_to_the_controller_1 = dma_0_done;
assign coe_custom_send_done_to_the_controller_0 = dma_0_done;
assign coe_custom_send_done_to_the_controller_1 = dma_1_done;
assign coe_custom_write_address_to_the_controller_0 = dma_1_write_master_chipselect ? dmem0_0_s2_address : dmem0_1_s2_address;
assign coe_custom_write_address_to_the_controller_1 = dma_0_write_master_chipselect ? dmem0_0_s2_address : dmem0_1_s2_address;
assign coe_custom_write_n_to_the_controller_0 = dma_1_write_master_write_n;
assign coe_custom_write_n_to_the_controller_1 = dma_0_write_master_write_n;
---coe_custom_address_to_the_controller_X, coe_custom_network_error_to_the_controller_X, coe_custom_mem_error_to_the_controller_X は繋いでません
--インスタンス化されたDMAにも length, done を追加
.length (dma_X_length),
.done (dma_X_done)
----
#comment
終了行:
[[山本/日誌]]
-DMAモジュール
--ポートリストに length, done を追加
--入出力宣言に
output [31:0] length;
output done;
を追記
-システムのトップモジュール
--ポートリストの内コントローラからのもの (coe_custom_XXX) を全て削除
--入出力宣言部分にあるポートのうち、ポートリストから削除したものを input -> wire, output -> '''削除'''
wire [ 3: 0] coe_custom_address_to_the_controller_X;
wire [ 31: 0] coe_custom_length_to_the_controller_X;
wire coe_custom_mem_cs_to_the_controller_X;
wire coe_custom_mem_error_to_the_controller_X;
wire coe_custom_network_error_to_the_controller_X;
wire coe_custom_rcv_done_to_the_controller_X;
wire coe_custom_read_n_to_the_controller_X;
wire coe_custom_req_from_out_to_the_controller_X;
wire coe_custom_send_done_to_the_controller_X;
wire [ 31: 0] coe_custom_write_address_to_the_controller_X;
wire coe_custom_write_n_to_the_controller_X;
--ワイヤを宣言
wire dma_X_done;
wire [31:0] dma_X_length;
--2コア(Core 0, Core 1)でネットワークを介さずに直接繋ぐ場合は
assign coe_custom_length_to_the_controller_0 = dma_1_length;
assign coe_custom_length_to_the_controller_1 = dma_0_length;
assign coe_custom_mem_cs_to_the_controller_0 = dma_1_write_master_chipselect;
assign coe_custom_mem_cs_to_the_controller_1 = dma_0_write_master_chipselect;
assign coe_custom_read_n_to_the_controller_0 = dma_1_read_master_read_n;
assign coe_custom_read_n_to_the_controller_1 = dma_0_read_master_read_n;
assign coe_custom_req_from_out_to_the_controller_0 = coe_custom_req_to_out_from_the_controller_1;
assign coe_custom_req_from_out_to_the_controller_1 = coe_custom_req_to_out_from_the_controller_0;
assign coe_custom_rcv_done_to_the_controller_0 = dma_1_done;
assign coe_custom_rcv_done_to_the_controller_1 = dma_0_done;
assign coe_custom_send_done_to_the_controller_0 = dma_0_done;
assign coe_custom_send_done_to_the_controller_1 = dma_1_done;
assign coe_custom_write_address_to_the_controller_0 = dma_1_write_master_chipselect ? dmem0_0_s2_address : dmem0_1_s2_address;
assign coe_custom_write_address_to_the_controller_1 = dma_0_write_master_chipselect ? dmem0_0_s2_address : dmem0_1_s2_address;
assign coe_custom_write_n_to_the_controller_0 = dma_1_write_master_write_n;
assign coe_custom_write_n_to_the_controller_1 = dma_0_write_master_write_n;
---coe_custom_address_to_the_controller_X, coe_custom_network_error_to_the_controller_X, coe_custom_mem_error_to_the_controller_X は繋いでません
--インスタンス化されたDMAにも length, done を追加
.length (dma_X_length),
.done (dma_X_done)
----
#comment
ページ名: