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

Subversion Repositories robust_axi_fabric

[/] [robust_axi_fabric/] [trunk/] [src/] [base/] [ic.v] - Blame information for rev 5

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

Line No. Rev Author Line
1 2 eyalhoc
OUTFILE PREFIX_ic.v
2
INCLUDE def_ic.txt
3
ITER MX
4
 
5
ITER SX SLAVE_NUM ##external slave ports don't include decerr slave
6
 
7
module  PREFIX_ic (PORTS);
8
 
9
   input                                      clk;
10
   input                                      reset;
11
 
12
   port                                       MMX_GROUP_IC_AXI;
13
   revport                                    SSX_GROUP_IC_AXI;
14
ENDITER SX
15
ITER SX ##use global iterator
16
 
17
   wire [EXPR(SLV_BITS-1):0]                   MMX_AWSLV;
18
   wire [EXPR(SLV_BITS-1):0]                   MMX_ARSLV;
19
 
20
   wire [EXPR(MSTR_BITS-1):0]                  SSX_AWMSTR;
21
   wire [EXPR(MSTR_BITS-1):0]                  SSX_ARMSTR;
22
   wire                                       SSX_AWIDOK;
23
   wire                                       SSX_ARIDOK;
24
 
25
 
26
   CREATE ic_addr.v def_ic.txt
27
   PREFIX_ic_addr
28
   PREFIX_ic_addr_rd (.clk(clk),
29
                      .reset(reset),
30
                      .MMX_ASLV(MMX_ARSLV),
31
                      .MMX_AGROUP_IC_AXI_A(MMX_ARGROUP_IC_AXI_A),
32
                      .SSX_AMSTR(SSX_ARMSTR),
33
                      .SSX_AIDOK(SSX_ARIDOK),
34
                      .SSX_AGROUP_IC_AXI_A(SSX_ARGROUP_IC_AXI_A),
35
                      STOMP ,
36
                      );
37
 
38
 
39
   PREFIX_ic_addr
40
   PREFIX_ic_addr_wr (
41
                      .clk(clk),
42
                      .reset(reset),
43
                      .MMX_ASLV(MMX_AWSLV),
44
                      .MMX_AGROUP_IC_AXI_A(MMX_AWGROUP_IC_AXI_A),
45
                      .SSX_AMSTR(SSX_AWMSTR),
46
                      .SSX_AIDOK(SSX_AWIDOK),
47
                      .SSX_AGROUP_IC_AXI_A(SSX_AWGROUP_IC_AXI_A),
48
                      STOMP ,
49
                      );
50
 
51
 
52
   CREATE ic_resp.v def_ic.txt DEFCMD(SWAP CONST(RW) R)
53
   PREFIX_ic_resp
54
   PREFIX_ic_rresp (
55
                    .clk(clk),
56
                    .reset(reset),
57
                    .MMX_AGROUP_IC_AXI_CMD(MMX_ARGROUP_IC_AXI_CMD),
58
                    .MMX_GROUP_IC_AXI_R(MMX_RGROUP_IC_AXI_R),
59
                    .SSX_GROUP_IC_AXI_R(SSX_RGROUP_IC_AXI_R),
60
                    STOMP ,
61
                    );
62
 
63
 
64
   CREATE ic_wdata.v def_ic.txt
65
   PREFIX_ic_wdata
66
   PREFIX_ic_wdata (
67
                    .clk(clk),
68
                    .reset(reset),
69
                    .MMX_AWGROUP_IC_AXI_CMD(MMX_AWGROUP_IC_AXI_CMD),
70
                    .MMX_WGROUP_IC_AXI_W(MMX_WGROUP_IC_AXI_W),
71
                    .SSX_WGROUP_IC_AXI_W(SSX_WGROUP_IC_AXI_W),
72
                .SSX_AWVALID(SSX_AWVALID),
73
                .SSX_AWREADY(SSX_AWREADY),
74
                    .SSX_AWMSTR(SSX_AWMSTR),
75
                    STOMP ,
76
                    );
77
 
78
 
79
   CREATE ic_resp.v def_ic.txt DEFCMD(SWAP CONST(RW) W)
80
   PREFIX_ic_resp
81
   PREFIX_ic_bresp (
82
                    .clk(clk),
83
                    .reset(reset),
84
                    .MMX_AGROUP_IC_AXI_CMD(MMX_AWGROUP_IC_AXI_CMD),
85
                    .MMX_GROUP_IC_AXI_B(MMX_BGROUP_IC_AXI_B),
86
                    .MMX_DATA(),
87
                    .MMX_LAST(),
88
                    .SSX_GROUP_IC_AXI_B(SSX_BGROUP_IC_AXI_B),
89
                    .SSX_DATA({DATA_BITS{1'b0}}),
90
                    .SSX_LAST(1'b1),
91
                    STOMP ,
92
                    );
93
 
94
 
95
   IFDEF DEF_DECERR_SLV
96
     wire            SSERR_GROUP_IC_AXI;
97
 
98
   CREATE ic_decerr.v def_ic.txt
99
   PREFIX_ic_decerr
100
     PREFIX_ic_decerr (
101
                       .clk(clk),
102
                       .reset(reset),
103
                       .AWIDOK(SSERR_AWIDOK),
104
                       .ARIDOK(SSERR_ARIDOK),
105
                       .GROUP_IC_AXI(SSERR_GROUP_IC_AXI),
106
                       STOMP ,
107
                       );
108
   ENDIF DEF_DECERR_SLV
109
 
110
 
111
     endmodule
112
 
113
 
114
 

powered by: WebSVN 2.1.0

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