OpenCores
URL https://opencores.org/ocsvn/async_sdm_noc/async_sdm_noc/trunk

Subversion Repositories async_sdm_noc

[/] [async_sdm_noc/] [trunk/] [sdm/] [tb/] [netnode.v] - Diff between revs 32 and 37

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 32 Rev 37
/*
/*
 Asynchronous SDM NoC
 Asynchronous SDM NoC
 (C)2011 Wei Song
 (C)2011 Wei Song
 Advanced Processor Technologies Group
 Advanced Processor Technologies Group
 Computer Science, the Univ. of Manchester, UK
 Computer Science, the Univ. of Manchester, UK
 
 
 Authors:
 Authors:
 Wei Song     wsong83@gmail.com
 Wei Song     wsong83@gmail.com
 
 
 License: LGPL 3.0 or later
 License: LGPL 3.0 or later
 
 
 The SystemC module of network node including the processing element and the network interface.
 The SystemC module of network node including the processing element and the network interface.
 Currently the transmission FIFO is 500 frame deep.
 Currently the transmission FIFO is 500 frame deep.
 
 
 History:
 History:
 27/02/2011  Initial version. <wsong83@gmail.com>
 27/02/2011  Initial version. <wsong83@gmail.com>
 30/05/2011  Clean up for opensource. <wsong83@gmail.com>
 30/05/2011  Clean up for opensource. <wsong83@gmail.com>
 
 
*/
*/
 
 
`include "define.v"
`include "define.v"
 
 
module NetNode (
module NetNode (
                dia, do4, doa, di4,
                dia, do4, doa, di4,
                do0, do1, do2, do3,
                do0, do1, do2, do3,
                di0, di1, di2, di3,
                di0, di1, di2, di3,
                rst_n)
                rst_n)
   //
   //
   // The foreign attribute string value must be a SystemC value.
   // The foreign attribute string value must be a SystemC value.
   //
   //
   (* integer foreign = "SystemC";
   (* integer foreign = "SystemC";
    *);
    *);
   //
   //
   // Verilog port names must match port names exactly as they appear in the
   // Verilog port names must match port names exactly as they appear in the
   // sc_module class in SystemC; they must also match in order, mode, and type.
   // sc_module class in SystemC; they must also match in order, mode, and type.
   //
   //
   parameter DW = 32;
   parameter DW = 32;
   parameter VCN = 1;
   parameter VCN = 1;
   parameter x = 2;
   parameter x = 2;
   parameter y = 2;
   parameter y = 2;
   parameter SCN = DW/2;
   parameter SCN = DW/2;
 
 
`ifdef ENABLE_CHANNEL_SLICING
`ifdef ENABLE_CHANNEL_SLICING
   input [VCN*SCN-1:0] dia;
   input [VCN*SCN-1:0] dia;
   input [VCN*SCN-1:0] do4;
   input [VCN*SCN-1:0] do4;
   output [VCN*SCN-1:0] doa;
   output [VCN*SCN-1:0] doa;
   output [VCN*SCN-1:0] di4;
   output [VCN*SCN-1:0] di4;
`else
`else
   input [VCN-1:0] dia;
   input [VCN-1:0] dia;
   input [VCN-1:0] do4;
   input [VCN-1:0] do4;
   output [VCN-1:0] doa;
   output [VCN-1:0] doa;
   output [VCN-1:0] di4;
   output [VCN-1:0] di4;
`endif // !`ifdef ENABLE_CHANNEL_SLICING
`endif // !`ifdef ENABLE_CHANNEL_SLICING
 
 
   input [VCN*SCN-1:0] do0;
   input [VCN*SCN-1:0] do0;
   input [VCN*SCN-1:0] do1;
   input [VCN*SCN-1:0] do1;
   input [VCN*SCN-1:0] do2;
   input [VCN*SCN-1:0] do2;
   input [VCN*SCN-1:0] do3;
   input [VCN*SCN-1:0] do3;
 
 
   output [VCN*SCN-1:0] di0;
   output [VCN*SCN-1:0] di0;
   output [VCN*SCN-1:0] di1;
   output [VCN*SCN-1:0] di1;
   output [VCN*SCN-1:0] di2;
   output [VCN*SCN-1:0] di2;
   output [VCN*SCN-1:0] di3;
   output [VCN*SCN-1:0] di3;
 
 
   input                rst_n;
   input                rst_n;
 
 
 
 
endmodule // NetNode
endmodule // NetNode
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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