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] - Blame information for rev 46

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 32 wsong0210
/*
2
 Asynchronous SDM NoC
3
 (C)2011 Wei Song
4
 Advanced Processor Technologies Group
5
 Computer Science, the Univ. of Manchester, UK
6
 
7
 Authors:
8
 Wei Song     wsong83@gmail.com
9
 
10
 License: LGPL 3.0 or later
11
 
12
 The SystemC module of network node including the processing element and the network interface.
13
 Currently the transmission FIFO is 500 frame deep.
14
 
15
 History:
16
 27/02/2011  Initial version. <wsong83@gmail.com>
17
 30/05/2011  Clean up for opensource. <wsong83@gmail.com>
18
 
19
*/
20
 
21
`include "define.v"
22
 
23
module NetNode (
24
                dia, do4, doa, di4,
25
                do0, do1, do2, do3,
26
                di0, di1, di2, di3,
27
                rst_n)
28
   //
29
   // The foreign attribute string value must be a SystemC value.
30
   //
31
   (* integer foreign = "SystemC";
32
    *);
33
   //
34
   // Verilog port names must match port names exactly as they appear in the
35
   // sc_module class in SystemC; they must also match in order, mode, and type.
36
   //
37
   parameter DW = 32;
38
   parameter VCN = 1;
39
   parameter x = 2;
40
   parameter y = 2;
41
   parameter SCN = DW/2;
42
 
43
`ifdef ENABLE_CHANNEL_SLICING
44
   input [VCN*SCN-1:0] dia;
45
   input [VCN*SCN-1:0] do4;
46
   output [VCN*SCN-1:0] doa;
47
   output [VCN*SCN-1:0] di4;
48
`else
49
   input [VCN-1:0] dia;
50
   input [VCN-1:0] do4;
51
   output [VCN-1:0] doa;
52
   output [VCN-1:0] di4;
53
`endif // !`ifdef ENABLE_CHANNEL_SLICING
54
 
55
   input [VCN*SCN-1:0] do0;
56
   input [VCN*SCN-1:0] do1;
57
   input [VCN*SCN-1:0] do2;
58
   input [VCN*SCN-1:0] do3;
59
 
60
   output [VCN*SCN-1:0] di0;
61
   output [VCN*SCN-1:0] di1;
62
   output [VCN*SCN-1:0] di2;
63
   output [VCN*SCN-1:0] di3;
64
 
65
   input                rst_n;
66
 
67
 
68
endmodule // NetNode
69
 
70
 

powered by: WebSVN 2.1.0

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