OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [rtl/] [src_noc/] [mesh_torus.sv] - Diff between revs 54 and 56

Show entire file | Details | Blame | View Log

Rev 54 Rev 56
Line 1182... Line 1182...
 
 
    localparam
    localparam
        NX = T1,
        NX = T1,
        NY = T2,
        NY = T2,
        RXw = log2(NX),    // number of node in x axis
        RXw = log2(NX),    // number of node in x axis
        RYw = log2(NY);    // number of node in y axis
        RYw = (TOPOLOGY=="RING" || TOPOLOGY == "LINE") ? 1 : log2(NY);    // number of node in y axis
 
 
    /* verilator lint_off WIDTH */
    /* verilator lint_off WIDTH */
    localparam [RXw-1 : 0]    MAXX = (NX-1);
    localparam [RXw-1 : 0]    MAXX = (NX-1);
    localparam [RYw-1 : 0]    MAXY = (NY-1);
    localparam [RYw-1 : 0]    MAXY = (NY-1);
    /* verilator lint_on WIDTH */
    /* verilator lint_on WIDTH */
Line 1239... Line 1239...
    localparam
    localparam
        NX = T1,
        NX = T1,
        NY = T2,
        NY = T2,
        NL = T3,
        NL = T3,
        EXw = log2(NX),    // number of node in x axis
        EXw = log2(NX),    // number of node in x axis
        EYw = log2(NY),
        EYw = (TOPOLOGY=="RING" || TOPOLOGY == "LINE")? 1 : log2(NY),
        ELw = log2(NL);    // number of node in y axis
        ELw = log2(NL);    // number of node in y axis
 
 
    /* verilator lint_off WIDTH */
    /* verilator lint_off WIDTH */
    localparam [EXw-1 : 0]    MAXX = (NX-1);
    localparam [EXw-1 : 0]    MAXX = (NX-1);
    localparam [EYw-1 : 0]    MAXY = (NY-1);
    localparam [EYw-1 : 0]    MAXY = (NY-1);
Line 1332... Line 1332...
    endfunction // addrencode
    endfunction // addrencode
 
 
 
 
    localparam
    localparam
        NXw= log2(NX),
        NXw= log2(NX),
        NYw= log2(NY),
        NYw= (TOPOLOGY=="RING" || TOPOLOGY=="LINE")? 0 : log2(NY),
        NEw = log2(NE);
        NEw = log2(NE);
 
 
 
 
     input [NEw-1 :0] id;
     input [NEw-1 :0] id;
     output [EAw-1 : 0] code;
     output [EAw-1 : 0] code;
Line 1356... Line 1356...
    assign code = codes[id];
    assign code = codes[id];
endmodule
endmodule
 
 
 
 
module  mesh_tori_addr_coder #(
module  mesh_tori_addr_coder #(
 
    parameter   TOPOLOGY = "MESH",
    parameter   NX=2,
    parameter   NX=2,
    parameter   NY=2,
    parameter   NY=2,
    parameter   NL=2,
    parameter   NL=2,
    parameter   NE=16,
    parameter   NE=16,
    parameter   EAw=4
    parameter   EAw=4
Line 1391... Line 1392...
    endfunction // addrencode
    endfunction // addrencode
 
 
 
 
    localparam
    localparam
        NXw= log2(NX),
        NXw= log2(NX),
        NYw= log2(NY),
        NYw= (TOPOLOGY=="RING" || TOPOLOGY=="LINE")? 0 : log2(NY),
        NEw = log2(NE);
        NEw = log2(NE);
 
 
 
 
     output [NEw-1 :0] id;
     output [NEw-1 :0] id;
     input [EAw-1 : 0] code;
     input [EAw-1 : 0] code;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.