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_routting.v] - Diff between revs 54 and 56

Show entire file | Details | Blame | View Log

Rev 54 Rev 56
Line 38... Line 38...
      end
      end
    endfunction // log2 
    endfunction // log2 
 
 
    localparam  P_1     =   P-1,
    localparam  P_1     =   P-1,
                Xw      =   log2(NX),   // number of node in x axis
                Xw      =   log2(NX),   // number of node in x axis
                Yw      =   log2(NY);    // number of node in y axis
                Yw      =  (TOPOLOGY=="RING" || TOPOLOGY == "LINE") ? 1 : log2(NY);    // number of node in y axis
 
 
    input   [Xw-1   :   0]  current_x;
    input   [Xw-1   :   0]  current_x;
    input   [Yw-1   :   0]  current_y;
    input   [Yw-1   :   0]  current_y;
    input   [Xw-1   :   0]  dest_x;
    input   [Xw-1   :   0]  dest_x;
    input   [Yw-1   :   0]  dest_y;
    input   [Yw-1   :   0]  dest_y;
Line 146... Line 146...
    endfunction // log2 
    endfunction // log2 
 
 
 
 
    localparam  P_1     =   P-1,
    localparam  P_1     =   P-1,
                Xw      =   log2(NX),   // number of node in x axis
                Xw      =   log2(NX),   // number of node in x axis
                Yw      =   log2(NY);    // number of node in y axis
                Yw      = (TOPOLOGY=="RING" || TOPOLOGY == "LINE") ? 1 :  log2(NY);    // number of node in y axis
 
 
 
 
    input   [Xw-1   :   0]  current_x;
    input   [Xw-1   :   0]  current_x;
    input   [Yw-1   :   0]  current_y;
    input   [Yw-1   :   0]  current_y;
    input   [Xw-1   :   0]  dest_x;
    input   [Xw-1   :   0]  dest_x;
Line 416... Line 416...
         end
         end
      end
      end
    endfunction // log2 
    endfunction // log2 
 
 
    localparam  Xw          =   log2(NX),
    localparam  Xw          =   log2(NX),
                Yw          =   log2(NY);
                Yw          =  (TOPOLOGY=="RING" || TOPOLOGY == "LINE")? 1 : log2(NY);
    // mesh torus            
    // mesh torus            
    localparam  EAST   =       3'd1,
    localparam  EAST   =       3'd1,
                NORTH  =       3'd2,
                NORTH  =       3'd2,
                WEST   =       3'd3,
                WEST   =       3'd3,
                SOUTH  =       3'd4;
                SOUTH  =       3'd4;
Line 768... Line 768...
   /* verilator lint_off WIDTH */
   /* verilator lint_off WIDTH */
   localparam P =  (TOPOLOGY=="RING" || TOPOLOGY=="LINE" )? 3 : 5,
   localparam P =  (TOPOLOGY=="RING" || TOPOLOGY=="LINE" )? 3 : 5,
   /* verilator lint_on WIDTH */
   /* verilator lint_on WIDTH */
              P_1   =   P-1,
              P_1   =   P-1,
              Xw    =   log2(NX),
              Xw    =   log2(NX),
              Yw    =   log2(NY);
              Yw    =  (TOPOLOGY=="RING" || TOPOLOGY=="LINE" )? 1 : log2(NY);
 
 
    localparam DSTw     =    P_1;
    localparam DSTw     =    P_1;
 
 
    input   [Xw-1         :0] current_x;
    input   [Xw-1         :0] current_x;
    input   [Yw-1         :0] current_y;
    input   [Yw-1         :0] current_y;

powered by: WebSVN 2.1.0

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