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

Subversion Repositories robust_reg

[/] [robust_reg/] [trunk/] [src/] [base/] [regfile.h] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 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 9 eyalhoc
 
30 16 eyalhoc
OUTFILE PREFIX_regfile.h
31 9 eyalhoc
INCLUDE def_regfile.txt
32
 
33
//registers
34 16 eyalhoc
#define PREFIX_GROUP_REGS_ADDR    0xGROUP_REGS.ADDR
35 9 eyalhoc
 
36
//fields
37 14 eyalhoc
LOOP RX GROUP_REGS.NUM
38 9 eyalhoc
//register GROUP_REGS[RX]:
39 16 eyalhoc
#define PREFIX_GROUP_REGRX_ADDR       0xGROUP_REGS[RX].ADDR
40
#define PREFIX_GROUP_REGRX_START      GROUP_REGRX.FIRST_BIT
41
#define PREFIX_GROUP_REGRX_BITS       GROUP_REGRX.WIDTH
42
#define PREFIX_GROUP_REGRX_MASK       0xHEX(EXPR((2^GROUP_REGRX.WIDTH-1) << GROUP_REGRX.FIRST_BIT) 32 NOPRE)
43 9 eyalhoc
 
44
ENDLOOP RX
45
 

powered by: WebSVN 2.1.0

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