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

Subversion Repositories robust_reg

[/] [robust_reg/] [trunk/] [src/] [base/] [def_regfile.txt] - Blame information for rev 14

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

Line No. Rev Author Line
1 14 eyalhoc
 
2 9 eyalhoc
<##//////////////////////////////////////////////////////////////////
3
////                                                             ////
4
////  Author: Eyal Hochberg                                      ////
5
////          eyal@provartec.com                                 ////
6
////                                                             ////
7
////  Downloaded from: http://www.opencores.org                  ////
8
/////////////////////////////////////////////////////////////////////
9
////                                                             ////
10
//// Copyright (C) 2010 Provartec LTD                            ////
11
//// www.provartec.com                                           ////
12
//// info@provartec.com                                          ////
13
////                                                             ////
14
//// This source file may be used and distributed without        ////
15
//// restriction provided that this copyright statement is not   ////
16
//// removed from the file and that any derivative work contains ////
17
//// the original copyright notice and the associated disclaimer.////
18
////                                                             ////
19
//// This source file is free software; you can redistribute it  ////
20
//// and/or modify it under the terms of the GNU Lesser General  ////
21
//// Public License as published by the Free Software Foundation.////
22
////                                                             ////
23
//// This source is distributed in the hope that it will be      ////
24
//// useful, but WITHOUT ANY WARRANTY; without even the implied  ////
25
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR     ////
26
//// PURPOSE.  See the GNU Lesser General Public License for more////
27
//// details. http://www.gnu.org/licenses/lgpl.html              ////
28
////                                                             ////
29
//////////////////////////////////////////////////////////////////##>
30
 
31 12 eyalhoc
REQUIRE(1.4)
32 10 eyalhoc
 
33 14 eyalhoc
INCLUDE def_regs.txt
34 9 eyalhoc
 
35 11 eyalhoc
SWAP.GLOBAL MODEL_NAME regfile
36
 
37 9 eyalhoc
SWAP FFD 1 ##flip-flop delay
38
 
39
## Types:
40
## RW - read / write (output from block)
41
## RO - read only (input to block)
42
## WO - write only (output to block)
43
## IW - internal write (output to block - logic is added especially)
44
## IR - internal read (no port - logic is added especially)
45
ENUM    TYPE_RW  TYPE_RO  TYPE_WO  TYPE_IW  TYPE_IR
46
 
47
SWAP    TYPE_TYPE_RW  Read and Write
48
SWAP    TYPE_TYPE_RO  Read only
49
SWAP    TYPE_TYPE_WO  Write only
50
 
51
GROUP APB is {
52
 pclken 1 input
53
 psel 1 input
54
 penable 1 input
55
 paddr ADDR_BITS input
56
 pwrite 1 input
57
 pwdata 32 input
58
 prdata 32 output
59
 pslverr 1 output
60
 pready 1 output
61
}
62 14 eyalhoc
 
63
 
64
SWAP ADD_REG(NAME, ADDR, TYPE, DESC) GROUP REGS extends { +NEWLINE NAME SON(CONST(ADDR) ADDR) SON(CONST(TYPE) TYPE) SON(CONST(DESC) DESC) +NEWLINE }
65
 
66
SWAP ADD_FIELD(REGNUM, NAME, BITS, START_BIT, DEFAULT, TYPE, DESC) GROUP REGREGNUM extends { +NEWLINE NAME BITS SON(START START_BIT) SON(CONST(DEFAULT) DEFAULT) SON(CONST(TYPE) TYPE) SON(CONST(DESC) DESC) +NEWLINE }
67
 

powered by: WebSVN 2.1.0

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