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_topolgy/] [custom1/] [custom1_noc.sv] - Diff between revs 54 and 56

Show entire file | Details | Blame | View Log

Rev 54 Rev 56
Line 4... Line 4...
**      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.sv
**      File: /home/alireza/work/git/pronoc/mpsoc/rtl/src_topolgy/custom1/custom1_noc.sv
**
**
**      Copyright (C) 2014-2021  Alireza Monemi
**      Copyright (C) 2014-2021  Alireza Monemi
**
**
**      This file is part of ProNoC 2.0.0
**      This file is part of ProNoC 2.1.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.
Line 27... Line 27...
******************************************************************************/
******************************************************************************/
 
 
`include "pronoc_def.v"
`include "pronoc_def.v"
 
 
module   custom1_noc
module   custom1_noc
        import pronoc_pkg::*;
#(
 
        parameter NOC_ID=0
 
)
        (
        (
        reset,
        reset,
        clk,
        clk,
        //T0,
        //T0,
        T0_chan_in,
        T0_chan_in,
Line 97... Line 99...
        T15_chan_in,
        T15_chan_in,
        T15_chan_out,
        T15_chan_out,
        T15_router_event
        T15_router_event
);
);
 
 
         function integer log2;
        `NOC_CONF
      input integer number; begin
 
         log2=(number <=1) ? 1: 0;
 
         while(2**log2
 
            log2=log2+1;
 
         end
 
      end
 
    endfunction // log2
 
 
 
        localparam
 
                NE = 16,
 
                NR = 16,
 
                RAw=log2(NR);
 
 
 
 
 
 
 
 
 
    input reset,clk;
    input reset,clk;
 
 
 
 
        /*******************
        /*******************
Line 443... Line 430...
 
 
        /*******************
        /*******************
        *               R0
        *               R0
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(3)
                .P(3)
        )
        )
        R0
        R0
        (
        (
                .clk(R0_clk),
                .clk(R0_clk),
Line 472... Line 460...
 
 
        /*******************
        /*******************
        *               R1
        *               R1
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(3)
                .P(3)
        )
        )
        R1
        R1
        (
        (
                .clk(R1_clk),
                .clk(R1_clk),
Line 501... Line 490...
 
 
        /*******************
        /*******************
        *               R2
        *               R2
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(3)
                .P(3)
        )
        )
        R2
        R2
        (
        (
                .clk(R2_clk),
                .clk(R2_clk),
Line 530... Line 520...
 
 
        /*******************
        /*******************
        *               R3
        *               R3
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(3)
                .P(3)
        )
        )
        R3
        R3
        (
        (
                .clk(R3_clk),
                .clk(R3_clk),
Line 559... Line 550...
 
 
        /*******************
        /*******************
        *               R4
        *               R4
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R4
        R4
        (
        (
                .clk(R4_clk),
                .clk(R4_clk),
Line 590... Line 582...
 
 
        /*******************
        /*******************
        *               R5
        *               R5
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R5
        R5
        (
        (
                .clk(R5_clk),
                .clk(R5_clk),
Line 621... Line 614...
 
 
        /*******************
        /*******************
        *               R6
        *               R6
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R6
        R6
        (
        (
                .clk(R6_clk),
                .clk(R6_clk),
Line 652... Line 646...
 
 
        /*******************
        /*******************
        *               R7
        *               R7
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R7
        R7
        (
        (
                .clk(R7_clk),
                .clk(R7_clk),
Line 683... Line 678...
 
 
        /*******************
        /*******************
        *               R12
        *               R12
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R12
        R12
        (
        (
                .clk(R12_clk),
                .clk(R12_clk),
Line 714... Line 710...
 
 
        /*******************
        /*******************
        *               R13
        *               R13
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R13
        R13
        (
        (
                .clk(R13_clk),
                .clk(R13_clk),
Line 745... Line 742...
 
 
        /*******************
        /*******************
        *               R14
        *               R14
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R14
        R14
        (
        (
                .clk(R14_clk),
                .clk(R14_clk),
Line 776... Line 774...
 
 
        /*******************
        /*******************
        *               R15
        *               R15
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(4)
                .P(4)
        )
        )
        R15
        R15
        (
        (
                .clk(R15_clk),
                .clk(R15_clk),
Line 807... Line 806...
 
 
        /*******************
        /*******************
        *               R8
        *               R8
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(5)
                .P(5)
        )
        )
        R8
        R8
        (
        (
                .clk(R8_clk),
                .clk(R8_clk),
Line 840... Line 840...
 
 
        /*******************
        /*******************
        *               R9
        *               R9
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(5)
                .P(5)
        )
        )
        R9
        R9
        (
        (
                .clk(R9_clk),
                .clk(R9_clk),
Line 873... Line 874...
 
 
        /*******************
        /*******************
        *               R10
        *               R10
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(5)
                .P(5)
        )
        )
        R10
        R10
        (
        (
                .clk(R10_clk),
                .clk(R10_clk),
Line 906... Line 908...
 
 
        /*******************
        /*******************
        *               R11
        *               R11
        *******************/
        *******************/
        router_top #(
        router_top #(
 
                .NOC_ID(NOC_ID),
                .P(5)
                .P(5)
        )
        )
        R11
        R11
        (
        (
                .clk(R11_clk),
                .clk(R11_clk),

powered by: WebSVN 2.1.0

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