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

Subversion Repositories apb_slave

[/] [apb_slave/] [trunk/] [src/] [base/] [def_apb_slave_static.txt] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 eyalhoc
<##//////////////////////////////////////////////////////////////////
2
////                                                             ////
3
////  Author: Eyal Hochberg                                      ////
4
////          eyal@provartec.com                                 ////
5
////                                                             ////
6
////  Downloaded from: http://www.opencores.org                  ////
7
/////////////////////////////////////////////////////////////////////
8
////                                                             ////
9
//// Copyright (C) 2010 Provartec LTD                            ////
10
//// www.provartec.com                                           ////
11
//// info@provartec.com                                          ////
12
////                                                             ////
13
//// This source file may be used and distributed without        ////
14
//// restriction provided that this copyright statement is not   ////
15
//// removed from the file and that any derivative work contains ////
16
//// the original copyright notice and the associated disclaimer.////
17
////                                                             ////
18
//// This source file is free software; you can redistribute it  ////
19
//// and/or modify it under the terms of the GNU Lesser General  ////
20
//// Public License as published by the Free Software Foundation.////
21
////                                                             ////
22
//// This source is distributed in the hope that it will be      ////
23
//// useful, but WITHOUT ANY WARRANTY; without even the implied  ////
24
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     ////
25
//// PURPOSE.  See the GNU Lesser General Public License for more////
26
//// details. http://www.gnu.org/licenses/lgpl.html              ////
27
////                                                             ////
28
//////////////////////////////////////////////////////////////////##>
29
 
30 6 eyalhoc
SWAP.GLOBAL MODEL_NAME APB slave stub
31 4 eyalhoc
 
32 7 eyalhoc
VERIFY (ADDR_BITS<=24) ##Memory size should not be too big to prevent maloc fail
33 2 eyalhoc
 
34
SWAP DATA_BITS 32  ##APB is always 32 bits data
35
 
36
 
37
GROUP STUB_APB is {
38
    psel     1                      output
39
    penable  1                      output
40
    pwrite   1                      output
41
    paddr    ADDR_BITS              output
42
    pwdata   DATA_BITS              output
43
    prdata   DATA_BITS              input
44
IFDEF APB3
45
    pslverr  1                      input
46
    pready   1                      input
47
ENDIF APB3
48
}
49
 
50
GROUP STUB_MEM is {
51
    WR        1            output
52
    RD        1            output
53
    ADDR_WR   ADDR_BITS    output
54
    ADDR_RD   ADDR_BITS    output
55
    DIN       DATA_BITS    output
56
    BSEL      DATA_BITS/8  output
57
    DOUT      DATA_BITS    input
58
}
59
 

powered by: WebSVN 2.1.0

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