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_dec.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_dec.v
2
 
3
ITER MX
4
ITER SX
5
 
6
LOOP MX
7
ITER MMX_IDX
8
ENDLOOP MX
9
 
10
module PREFIX_ic_dec (PORTS);
11
 
12
   input [ADDR_BITS-1:0]                       MMX_AADDR;
13
   input [ID_BITS-1:0]                         MMX_AID;
14
   output [SLV_BITS-1:0]                       MMX_ASLV;
15
   output                                     MMX_AIDOK;
16
 
17
   parameter                                  DEC_MSB =  ADDR_BITS - 1;
18
   parameter                                  DEC_LSB =  ADDR_BITS - MSTR_BITS;
19
 
20
   reg [SLV_BITS-1:0]                          MMX_ASLV;
21
   reg                                        MMX_AIDOK;
22
 
23
   LOOP MX
24
     always @(MMX_AADDR or MMX_AIDOK)
25
       begin
26
          case ({MMX_AIDOK, MMX_AADDR[DEC_MSB:DEC_LSB]})
27
            {1'b1, BIN(MX MSTR_BITS)} : MMX_ASLV = 'dSX;
28
            default : MMX_ASLV = SERR;
29
          endcase
30
       end
31
 
32
   always @(MMX_AID)
33
     begin
34
        case (MMX_AID)
35
          ID_MMX_IDMMX_IDX : MMX_AIDOK = 1'b1;
36
          default : MMX_AIDOK = 1'b0;
37
        endcase
38
     end
39
 
40
   ENDLOOP MX
41
 
42
     endmodule
43
 
44
 
45
 

powered by: WebSVN 2.1.0

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