|
|
/**************************************************************************
|
/**************************************************************************
|
** WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
** WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
|
** OVERWRITTEN AND LOST. Rename this file if you wish to do any modification.
|
** OVERWRITTEN AND LOST. Rename this file if you wish to do any modification.
|
****************************************************************************/
|
****************************************************************************/
|
|
|
|
|
/**********************************************************************
|
/**********************************************************************
|
** File: /home/alireza/work/git/hca_git/ProNoC/mpsoc/rtl/src_topolgy/custom1/custom1_noc_genvar.sv
|
** File: /home/alireza/work/git/hca_git/ProNoC/mpsoc/rtl/src_topolgy/custom1/custom1_noc_genvar.sv
|
**
|
**
|
** Copyright (C) 2014-2019 Alireza Monemi
|
** Copyright (C) 2014-2021 Alireza Monemi
|
**
|
**
|
** This file is part of ProNoC 1.9.1
|
** This file is part of ProNoC 2.0.0
|
**
|
**
|
** ProNoC ( stands for Prototype Network-on-chip) is free software:
|
** ProNoC ( stands for Prototype Network-on-chip) is free software:
|
** you can redistribute it and/or modify it under the terms of the GNU
|
** you can redistribute it and/or modify it under the terms of the GNU
|
** Lesser General Public License as published by the Free Software Foundation,
|
** Lesser General Public License as published by the Free Software Foundation,
|
** either version 2 of the License, or (at your option) any later version.
|
** either version 2 of the License, or (at your option) any later version.
|
**
|
**
|
** ProNoC is distributed in the hope that it will be useful, but WITHOUT
|
** ProNoC is distributed in the hope that it will be useful, but WITHOUT
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
** or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
|
** Public License for more details.
|
** Public License for more details.
|
**
|
**
|
** You should have received a copy of the GNU Lesser General Public
|
** You should have received a copy of the GNU Lesser General Public
|
** License along with ProNoC. If not, see .
|
** License along with ProNoC. If not, see .
|
******************************************************************************/
|
******************************************************************************/
|
|
|
|
`include "pronoc_def.v"
|
|
|
module custom1_noc_genvar
|
module custom1_noc_genvar
|
import pronoc_pkg::*;
|
import pronoc_pkg::*;
|
(
|
(
|
|
|
reset,
|
reset,
|
clk,
|
clk,
|
chan_in_all,
|
chan_in_all,
|
chan_out_all
|
chan_out_all,
|
|
router_event
|
);
|
);
|
|
|
function integer log2;
|
function integer log2;
|
input integer number; begin
|
input integer number; begin
|
log2=(number <=1) ? 1: 0;
|
log2=(number <=1) ? 1: 0;
|
while(2**log2
|
while(2**log2
|
log2=log2+1;
|
log2=log2+1;
|
end
|
end
|
end
|
end
|
endfunction // log2
|
endfunction // log2
|
|
|
localparam
|
localparam
|
NE = 16,
|
NE = 16,
|
NR = 16,
|
NR = 16,
|
RAw=log2(NR),
|
RAw=log2(NR),
|
MAX_P=5;
|
MAX_P=5;
|
|
|
|
|
|
|
input reset;
|
input reset;
|
input clk;
|
input clk;
|
input smartflit_chanel_t chan_in_all [NE-1 : 0];
|
input smartflit_chanel_t chan_in_all [NE-1 : 0];
|
output smartflit_chanel_t chan_out_all [NE-1 : 0];
|
output smartflit_chanel_t chan_out_all [NE-1 : 0];
|
|
|
|
//Events
|
|
output router_event_t router_event [NR-1 : 0][MAX_P-1 : 0];
|
|
|
//all routers port
|
//all routers port
|
smartflit_chanel_t router_chan_in [NR-1 :0][MAX_P-1 : 0];
|
smartflit_chanel_t router_chan_in [NR-1 :0][MAX_P-1 : 0];
|
smartflit_chanel_t router_chan_out [NR-1 :0][MAX_P-1 : 0];
|
smartflit_chanel_t router_chan_out [NR-1 :0][MAX_P-1 : 0];
|
|
|
|
|
wire [RAw-1 : 0] current_r_addr [NR-1 : 0];
|
wire [RAw-1 : 0] current_r_addr [NR-1 : 0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
genvar i;
|
genvar i;
|
generate
|
generate
|
|
|
for( i=0; i<4; i=i+1) begin : router_3_port_lp
|
for( i=0; i<4; i=i+1) begin : router_3_port_lp
|
|
localparam RID = i;
|
|
assign current_r_addr [RID] = RID[RAw-1: 0];
|
|
|
router_top #(
|
router_top #(
|
.P(3)
|
.P(3)
|
)
|
)
|
router_3_port
|
router_3_port
|
(
|
(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.current_r_addr(i),
|
.current_r_id(RID),
|
.chan_in (router_chan_in[i]),
|
.current_r_addr(current_r_addr[RID]),
|
.chan_out (router_chan_out[i])
|
.chan_in (router_chan_in [RID] [2 : 0]),
|
|
.chan_out (router_chan_out[RID] [2 : 0]),
|
|
.router_event(router_event[RID] [2 : 0])
|
);
|
);
|
|
|
|
|
|
|
end
|
end
|
|
|
for( i=0; i<8; i=i+1) begin : router_4_port_lp
|
for( i=0; i<8; i=i+1) begin : router_4_port_lp
|
|
localparam RID = i+4;
|
|
assign current_r_addr [RID] = RID[RAw-1: 0];
|
|
|
router_top #(
|
router_top #(
|
.P(4)
|
.P(4)
|
)
|
)
|
router_4_port
|
router_4_port
|
(
|
(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.current_r_addr(i+4),
|
.current_r_id(RID),
|
.chan_in (router_chan_in[i+4]),
|
.current_r_addr(current_r_addr[RID]),
|
.chan_out (router_chan_out[i+4])
|
.chan_in (router_chan_in [RID] [3 : 0]),
|
|
.chan_out (router_chan_out[RID] [3 : 0]),
|
|
.router_event(router_event[RID] [3 : 0])
|
);
|
);
|
|
|
|
|
|
|
end
|
end
|
|
|
for( i=0; i<4; i=i+1) begin : router_5_port_lp
|
for( i=0; i<4; i=i+1) begin : router_5_port_lp
|
|
localparam RID = i+12;
|
|
assign current_r_addr [RID] = RID[RAw-1: 0];
|
|
|
router_top #(
|
router_top #(
|
.P(5)
|
.P(5)
|
)
|
)
|
router_5_port
|
router_5_port
|
(
|
(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.current_r_addr(i+12),
|
.current_r_id(RID),
|
.chan_in (router_chan_in[i+12]),
|
.current_r_addr(current_r_addr[RID]),
|
.chan_out (router_chan_out[i+12])
|
.chan_in (router_chan_in [RID] [4 : 0]),
|
|
.chan_out (router_chan_out[RID] [4 : 0]),
|
|
.router_event(router_event[RID] [4 : 0])
|
);
|
);
|
|
|
|
|
|
|
end
|
end
|
endgenerate
|
endgenerate
|
|
|
|
|
//Connect R0 input ports 0 to T0 output ports 0
|
//Connect R0 input ports 0 to T0 output ports 0
|
assign router_chan_in [0][0] = chan_in_all [0];
|
assign router_chan_in [0][0] = chan_in_all [0];
|
assign chan_out_all [0] = router_chan_out [0][0];
|
assign chan_out_all [0] = router_chan_out [0][0];
|
//Connect R0 input ports 1 to R14 output ports 3
|
//Connect R0 input ports 1 to R14 output ports 3
|
assign router_chan_in [0][1] = router_chan_out [10][3];
|
assign router_chan_in [0][1] = router_chan_out [10][3];
|
//Connect R0 input ports 2 to R13 output ports 3
|
//Connect R0 input ports 2 to R13 output ports 3
|
assign router_chan_in [0][2] = router_chan_out [9][3];
|
assign router_chan_in [0][2] = router_chan_out [9][3];
|
//Connect R1 input ports 0 to T1 output ports 0
|
//Connect R1 input ports 0 to T1 output ports 0
|
assign router_chan_in [1][0] = chan_in_all [1];
|
assign router_chan_in [1][0] = chan_in_all [1];
|
assign chan_out_all [1] = router_chan_out [1][0];
|
assign chan_out_all [1] = router_chan_out [1][0];
|
//Connect R1 input ports 1 to R7 output ports 3
|
//Connect R1 input ports 1 to R7 output ports 3
|
assign router_chan_in [1][1] = router_chan_out [7][3];
|
assign router_chan_in [1][1] = router_chan_out [7][3];
|
//Connect R1 input ports 2 to R2 output ports 2
|
//Connect R1 input ports 2 to R2 output ports 2
|
assign router_chan_in [1][2] = router_chan_out [2][2];
|
assign router_chan_in [1][2] = router_chan_out [2][2];
|
//Connect R2 input ports 0 to T2 output ports 0
|
//Connect R2 input ports 0 to T2 output ports 0
|
assign router_chan_in [2][0] = chan_in_all [2];
|
assign router_chan_in [2][0] = chan_in_all [2];
|
assign chan_out_all [2] = router_chan_out [2][0];
|
assign chan_out_all [2] = router_chan_out [2][0];
|
//Connect R2 input ports 1 to R15 output ports 2
|
//Connect R2 input ports 1 to R15 output ports 2
|
assign router_chan_in [2][1] = router_chan_out [11][2];
|
assign router_chan_in [2][1] = router_chan_out [11][2];
|
//Connect R2 input ports 2 to R1 output ports 2
|
//Connect R2 input ports 2 to R1 output ports 2
|
assign router_chan_in [2][2] = router_chan_out [1][2];
|
assign router_chan_in [2][2] = router_chan_out [1][2];
|
//Connect R3 input ports 0 to T3 output ports 0
|
//Connect R3 input ports 0 to T3 output ports 0
|
assign router_chan_in [3][0] = chan_in_all [3];
|
assign router_chan_in [3][0] = chan_in_all [3];
|
assign chan_out_all [3] = router_chan_out [3][0];
|
assign chan_out_all [3] = router_chan_out [3][0];
|
//Connect R3 input ports 1 to R15 output ports 3
|
//Connect R3 input ports 1 to R15 output ports 3
|
assign router_chan_in [3][1] = router_chan_out [11][3];
|
assign router_chan_in [3][1] = router_chan_out [11][3];
|
//Connect R3 input ports 2 to R4 output ports 2
|
//Connect R3 input ports 2 to R4 output ports 2
|
assign router_chan_in [3][2] = router_chan_out [4][2];
|
assign router_chan_in [3][2] = router_chan_out [4][2];
|
//Connect R4 input ports 0 to T4 output ports 0
|
//Connect R4 input ports 0 to T4 output ports 0
|
assign router_chan_in [4][0] = chan_in_all [4];
|
assign router_chan_in [4][0] = chan_in_all [4];
|
assign chan_out_all [4] = router_chan_out [4][0];
|
assign chan_out_all [4] = router_chan_out [4][0];
|
//Connect R4 input ports 1 to R9 output ports 2
|
//Connect R4 input ports 1 to R9 output ports 2
|
assign router_chan_in [4][1] = router_chan_out [13][2];
|
assign router_chan_in [4][1] = router_chan_out [13][2];
|
//Connect R4 input ports 2 to R3 output ports 2
|
//Connect R4 input ports 2 to R3 output ports 2
|
assign router_chan_in [4][2] = router_chan_out [3][2];
|
assign router_chan_in [4][2] = router_chan_out [3][2];
|
//Connect R4 input ports 3 to R6 output ports 3
|
//Connect R4 input ports 3 to R6 output ports 3
|
assign router_chan_in [4][3] = router_chan_out [6][3];
|
assign router_chan_in [4][3] = router_chan_out [6][3];
|
//Connect R5 input ports 0 to T5 output ports 0
|
//Connect R5 input ports 0 to T5 output ports 0
|
assign router_chan_in [5][0] = chan_in_all [5];
|
assign router_chan_in [5][0] = chan_in_all [5];
|
assign chan_out_all [5] = router_chan_out [5][0];
|
assign chan_out_all [5] = router_chan_out [5][0];
|
//Connect R5 input ports 1 to R11 output ports 4
|
//Connect R5 input ports 1 to R11 output ports 4
|
assign router_chan_in [5][1] = router_chan_out [15][4];
|
assign router_chan_in [5][1] = router_chan_out [15][4];
|
//Connect R5 input ports 2 to R6 output ports 2
|
//Connect R5 input ports 2 to R6 output ports 2
|
assign router_chan_in [5][2] = router_chan_out [6][2];
|
assign router_chan_in [5][2] = router_chan_out [6][2];
|
//Connect R5 input ports 3 to R13 output ports 2
|
//Connect R5 input ports 3 to R13 output ports 2
|
assign router_chan_in [5][3] = router_chan_out [9][2];
|
assign router_chan_in [5][3] = router_chan_out [9][2];
|
//Connect R6 input ports 0 to T6 output ports 0
|
//Connect R6 input ports 0 to T6 output ports 0
|
assign router_chan_in [6][0] = chan_in_all [6];
|
assign router_chan_in [6][0] = chan_in_all [6];
|
assign chan_out_all [6] = router_chan_out [6][0];
|
assign chan_out_all [6] = router_chan_out [6][0];
|
//Connect R6 input ports 1 to R9 output ports 3
|
//Connect R6 input ports 1 to R9 output ports 3
|
assign router_chan_in [6][1] = router_chan_out [13][3];
|
assign router_chan_in [6][1] = router_chan_out [13][3];
|
//Connect R6 input ports 2 to R5 output ports 2
|
//Connect R6 input ports 2 to R5 output ports 2
|
assign router_chan_in [6][2] = router_chan_out [5][2];
|
assign router_chan_in [6][2] = router_chan_out [5][2];
|
//Connect R6 input ports 3 to R4 output ports 3
|
//Connect R6 input ports 3 to R4 output ports 3
|
assign router_chan_in [6][3] = router_chan_out [4][3];
|
assign router_chan_in [6][3] = router_chan_out [4][3];
|
//Connect R7 input ports 0 to T7 output ports 0
|
//Connect R7 input ports 0 to T7 output ports 0
|
assign router_chan_in [7][0] = chan_in_all [7];
|
assign router_chan_in [7][0] = chan_in_all [7];
|
assign chan_out_all [7] = router_chan_out [7][0];
|
assign chan_out_all [7] = router_chan_out [7][0];
|
//Connect R7 input ports 1 to R12 output ports 3
|
//Connect R7 input ports 1 to R12 output ports 3
|
assign router_chan_in [7][1] = router_chan_out [8][3];
|
assign router_chan_in [7][1] = router_chan_out [8][3];
|
//Connect R7 input ports 2 to R14 output ports 2
|
//Connect R7 input ports 2 to R14 output ports 2
|
assign router_chan_in [7][2] = router_chan_out [10][2];
|
assign router_chan_in [7][2] = router_chan_out [10][2];
|
//Connect R7 input ports 3 to R1 output ports 1
|
//Connect R7 input ports 3 to R1 output ports 1
|
assign router_chan_in [7][3] = router_chan_out [1][1];
|
assign router_chan_in [7][3] = router_chan_out [1][1];
|
//Connect R12 input ports 0 to T8 output ports 0
|
//Connect R12 input ports 0 to T8 output ports 0
|
assign router_chan_in [8][0] = chan_in_all [8];
|
assign router_chan_in [8][0] = chan_in_all [8];
|
assign chan_out_all [8] = router_chan_out [8][0];
|
assign chan_out_all [8] = router_chan_out [8][0];
|
//Connect R12 input ports 1 to R8 output ports 4
|
//Connect R12 input ports 1 to R8 output ports 4
|
assign router_chan_in [8][1] = router_chan_out [12][4];
|
assign router_chan_in [8][1] = router_chan_out [12][4];
|
//Connect R12 input ports 2 to R10 output ports 3
|
//Connect R12 input ports 2 to R10 output ports 3
|
assign router_chan_in [8][2] = router_chan_out [14][3];
|
assign router_chan_in [8][2] = router_chan_out [14][3];
|
//Connect R12 input ports 3 to R7 output ports 1
|
//Connect R12 input ports 3 to R7 output ports 1
|
assign router_chan_in [8][3] = router_chan_out [7][1];
|
assign router_chan_in [8][3] = router_chan_out [7][1];
|
//Connect R13 input ports 0 to T9 output ports 0
|
//Connect R13 input ports 0 to T9 output ports 0
|
assign router_chan_in [9][0] = chan_in_all [9];
|
assign router_chan_in [9][0] = chan_in_all [9];
|
assign chan_out_all [9] = router_chan_out [9][0];
|
assign chan_out_all [9] = router_chan_out [9][0];
|
//Connect R13 input ports 1 to R8 output ports 2
|
//Connect R13 input ports 1 to R8 output ports 2
|
assign router_chan_in [9][1] = router_chan_out [12][2];
|
assign router_chan_in [9][1] = router_chan_out [12][2];
|
//Connect R13 input ports 2 to R5 output ports 3
|
//Connect R13 input ports 2 to R5 output ports 3
|
assign router_chan_in [9][2] = router_chan_out [5][3];
|
assign router_chan_in [9][2] = router_chan_out [5][3];
|
//Connect R13 input ports 3 to R0 output ports 2
|
//Connect R13 input ports 3 to R0 output ports 2
|
assign router_chan_in [9][3] = router_chan_out [0][2];
|
assign router_chan_in [9][3] = router_chan_out [0][2];
|
//Connect R14 input ports 0 to T10 output ports 0
|
//Connect R14 input ports 0 to T10 output ports 0
|
assign router_chan_in [10][0] = chan_in_all [10];
|
assign router_chan_in [10][0] = chan_in_all [10];
|
assign chan_out_all [10] = router_chan_out [10][0];
|
assign chan_out_all [10] = router_chan_out [10][0];
|
//Connect R14 input ports 1 to R8 output ports 3
|
//Connect R14 input ports 1 to R8 output ports 3
|
assign router_chan_in [10][1] = router_chan_out [12][3];
|
assign router_chan_in [10][1] = router_chan_out [12][3];
|
//Connect R14 input ports 2 to R7 output ports 2
|
//Connect R14 input ports 2 to R7 output ports 2
|
assign router_chan_in [10][2] = router_chan_out [7][2];
|
assign router_chan_in [10][2] = router_chan_out [7][2];
|
//Connect R14 input ports 3 to R0 output ports 1
|
//Connect R14 input ports 3 to R0 output ports 1
|
assign router_chan_in [10][3] = router_chan_out [0][1];
|
assign router_chan_in [10][3] = router_chan_out [0][1];
|
//Connect R15 input ports 0 to T11 output ports 0
|
//Connect R15 input ports 0 to T11 output ports 0
|
assign router_chan_in [11][0] = chan_in_all [11];
|
assign router_chan_in [11][0] = chan_in_all [11];
|
assign chan_out_all [11] = router_chan_out [11][0];
|
assign chan_out_all [11] = router_chan_out [11][0];
|
//Connect R15 input ports 1 to R10 output ports 4
|
//Connect R15 input ports 1 to R10 output ports 4
|
assign router_chan_in [11][1] = router_chan_out [14][4];
|
assign router_chan_in [11][1] = router_chan_out [14][4];
|
//Connect R15 input ports 2 to R2 output ports 1
|
//Connect R15 input ports 2 to R2 output ports 1
|
assign router_chan_in [11][2] = router_chan_out [2][1];
|
assign router_chan_in [11][2] = router_chan_out [2][1];
|
//Connect R15 input ports 3 to R3 output ports 1
|
//Connect R15 input ports 3 to R3 output ports 1
|
assign router_chan_in [11][3] = router_chan_out [3][1];
|
assign router_chan_in [11][3] = router_chan_out [3][1];
|
//Connect R8 input ports 0 to T12 output ports 0
|
//Connect R8 input ports 0 to T12 output ports 0
|
assign router_chan_in [12][0] = chan_in_all [12];
|
assign router_chan_in [12][0] = chan_in_all [12];
|
assign chan_out_all [12] = router_chan_out [12][0];
|
assign chan_out_all [12] = router_chan_out [12][0];
|
//Connect R8 input ports 1 to R11 output ports 1
|
//Connect R8 input ports 1 to R11 output ports 1
|
assign router_chan_in [12][1] = router_chan_out [15][1];
|
assign router_chan_in [12][1] = router_chan_out [15][1];
|
//Connect R8 input ports 2 to R13 output ports 1
|
//Connect R8 input ports 2 to R13 output ports 1
|
assign router_chan_in [12][2] = router_chan_out [9][1];
|
assign router_chan_in [12][2] = router_chan_out [9][1];
|
//Connect R8 input ports 3 to R14 output ports 1
|
//Connect R8 input ports 3 to R14 output ports 1
|
assign router_chan_in [12][3] = router_chan_out [10][1];
|
assign router_chan_in [12][3] = router_chan_out [10][1];
|
//Connect R8 input ports 4 to R12 output ports 1
|
//Connect R8 input ports 4 to R12 output ports 1
|
assign router_chan_in [12][4] = router_chan_out [8][1];
|
assign router_chan_in [12][4] = router_chan_out [8][1];
|
//Connect R9 input ports 0 to T13 output ports 0
|
//Connect R9 input ports 0 to T13 output ports 0
|
assign router_chan_in [13][0] = chan_in_all [13];
|
assign router_chan_in [13][0] = chan_in_all [13];
|
assign chan_out_all [13] = router_chan_out [13][0];
|
assign chan_out_all [13] = router_chan_out [13][0];
|
//Connect R9 input ports 1 to R11 output ports 3
|
//Connect R9 input ports 1 to R11 output ports 3
|
assign router_chan_in [13][1] = router_chan_out [15][3];
|
assign router_chan_in [13][1] = router_chan_out [15][3];
|
//Connect R9 input ports 2 to R4 output ports 1
|
//Connect R9 input ports 2 to R4 output ports 1
|
assign router_chan_in [13][2] = router_chan_out [4][1];
|
assign router_chan_in [13][2] = router_chan_out [4][1];
|
//Connect R9 input ports 3 to R6 output ports 1
|
//Connect R9 input ports 3 to R6 output ports 1
|
assign router_chan_in [13][3] = router_chan_out [6][1];
|
assign router_chan_in [13][3] = router_chan_out [6][1];
|
//Connect R9 input ports 4 to R10 output ports 2
|
//Connect R9 input ports 4 to R10 output ports 2
|
assign router_chan_in [13][4] = router_chan_out [14][2];
|
assign router_chan_in [13][4] = router_chan_out [14][2];
|
//Connect R10 input ports 0 to T14 output ports 0
|
//Connect R10 input ports 0 to T14 output ports 0
|
assign router_chan_in [14][0] = chan_in_all [14];
|
assign router_chan_in [14][0] = chan_in_all [14];
|
assign chan_out_all [14] = router_chan_out [14][0];
|
assign chan_out_all [14] = router_chan_out [14][0];
|
//Connect R10 input ports 1 to R11 output ports 2
|
//Connect R10 input ports 1 to R11 output ports 2
|
assign router_chan_in [14][1] = router_chan_out [15][2];
|
assign router_chan_in [14][1] = router_chan_out [15][2];
|
//Connect R10 input ports 2 to R9 output ports 4
|
//Connect R10 input ports 2 to R9 output ports 4
|
assign router_chan_in [14][2] = router_chan_out [13][4];
|
assign router_chan_in [14][2] = router_chan_out [13][4];
|
//Connect R10 input ports 3 to R12 output ports 2
|
//Connect R10 input ports 3 to R12 output ports 2
|
assign router_chan_in [14][3] = router_chan_out [8][2];
|
assign router_chan_in [14][3] = router_chan_out [8][2];
|
//Connect R10 input ports 4 to R15 output ports 1
|
//Connect R10 input ports 4 to R15 output ports 1
|
assign router_chan_in [14][4] = router_chan_out [11][1];
|
assign router_chan_in [14][4] = router_chan_out [11][1];
|
//Connect R11 input ports 0 to T15 output ports 0
|
//Connect R11 input ports 0 to T15 output ports 0
|
assign router_chan_in [15][0] = chan_in_all [15];
|
assign router_chan_in [15][0] = chan_in_all [15];
|
assign chan_out_all [15] = router_chan_out [15][0];
|
assign chan_out_all [15] = router_chan_out [15][0];
|
//Connect R11 input ports 1 to R8 output ports 1
|
//Connect R11 input ports 1 to R8 output ports 1
|
assign router_chan_in [15][1] = router_chan_out [12][1];
|
assign router_chan_in [15][1] = router_chan_out [12][1];
|
//Connect R11 input ports 2 to R10 output ports 1
|
//Connect R11 input ports 2 to R10 output ports 1
|
assign router_chan_in [15][2] = router_chan_out [14][1];
|
assign router_chan_in [15][2] = router_chan_out [14][1];
|
//Connect R11 input ports 3 to R9 output ports 1
|
//Connect R11 input ports 3 to R9 output ports 1
|
assign router_chan_in [15][3] = router_chan_out [13][1];
|
assign router_chan_in [15][3] = router_chan_out [13][1];
|
//Connect R11 input ports 4 to R5 output ports 1
|
//Connect R11 input ports 4 to R5 output ports 1
|
assign router_chan_in [15][4] = router_chan_out [5][1];
|
assign router_chan_in [15][4] = router_chan_out [5][1];
|
|
|
|
|
|
|
|
|
endmodule
|
endmodule
|
|
|