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/] [pronoc_def.v] - Blame information for rev 56

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 54 alirezamon
`ifndef PRONOC_DEF
2
`define PRONOC_DEF
3
 
4
    `timescale      1ns/1ps
5
 
6 56 alirezamon
   //`define SYNC_RESET_MODE       /* Reset is asynchronous by default. Uncomment this line for having synchronous reset*/
7
   //`define ACTIVE_LOW_RESET_MODE /* Reset is active high by deafult. Uncomment this line for having active low reset*/
8 54 alirezamon
 
9 56 alirezamon
 
10
  // `define IMPORT_PRONOC_PCK   
11
                                                                 /* pronoc.sv is imported by default. Inorder to support Multiple physical NoCs with different
12
                                  you need to compile each NoC as a separate library (passing USE_LIB in compilationtime).
13
                                  Comment IMPORT_PRONOC_PCK macro to include pronoc_pck.sv as a file instead of importing.
14
                                  Including pronoc.sv allows having Multiple physical NoCs with different configurations
15
                                  where configuration can be set via parameter redefinition at NoC_Top module  */
16
 
17
 
18 54 alirezamon
 
19 56 alirezamon
   `ifdef SYNC_RESET_MODE
20
         `define pronoc_clk_reset_edge  posedge clk
21
   `else
22
      `ifdef ACTIVE_LOW_RESET_MODE
23
             `define pronoc_clk_reset_edge  posedge clk or negedge reset
24
      `else
25
         `define pronoc_clk_reset_edge  posedge clk or posedge reset
26
      `endif
27
   `endif
28
 
29 54 alirezamon
 
30
 
31
 
32 56 alirezamon
   `ifdef ACTIVE_LOW_RESET_MODE
33
             `define pronoc_reset !reset
34
      `else
35
         `define pronoc_reset  reset
36
   `endif
37 54 alirezamon
 
38
 
39
 
40
    `ifdef USE_LIB
41
         `uselib lib=`USE_LIB
42
    `endif
43 56 alirezamon
 
44
 
45
 
46
   `ifdef IMPORT_PRONOC_PCK
47
      `define NOC_CONF  import pronoc_pkg::*;
48
      `define PRONOC_PKG
49
   `else
50
      `define NOC_CONF  ```define PRONOC_PKG \
51
        ```include "pronoc_pkg.sv"
52
   `endif
53
 
54
 
55
 
56
 
57 54 alirezamon
 
58
 
59 55 alirezamon
/****************
60 56 alirezamon
   TRACE dump
61 55 alirezamon
*****************/
62
   //uncomment following define to enable TRACE dumping
63
 
64
 
65 56 alirezamon
   // `define TRACE_DUMP_PER_NoC       // dump all in/out traces to the NoC in single file
66
   // `define TRACE_DUMP_PER_ROUTER       // dump each router in/out traces in a seprate file
67
  // `define TRACE_DUMP_PER_PORT       // dump each router port in/out in a single file
68 55 alirezamon
 
69 54 alirezamon
 
70 55 alirezamon
 
71
 
72
 
73 54 alirezamon
`endif
74
 

powered by: WebSVN 2.1.0

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