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

Subversion Repositories robust_reg

[/] [robust_reg/] [trunk/] [src/] [base/] [regfile.h] - Diff between revs 14 and 16

Show entire file | Details | Blame | View Log

Rev 14 Rev 16
Line 25... Line 25...
//// PURPOSE.  See the GNU Lesser General Public License for more////
//// PURPOSE.  See the GNU Lesser General Public License for more////
//// details. http://www.gnu.org/licenses/lgpl.html              ////
//// details. http://www.gnu.org/licenses/lgpl.html              ////
////                                                             ////
////                                                             ////
//////////////////////////////////////////////////////////////////##>
//////////////////////////////////////////////////////////////////##>
 
 
OUTFILE REGNAME_regfile.h
OUTFILE PREFIX_regfile.h
INCLUDE def_regfile.txt
INCLUDE def_regfile.txt
 
 
//registers
//registers
#define REGNAME_GROUP_REGS_ADDR    0xGROUP_REGS.ADDR
#define PREFIX_GROUP_REGS_ADDR    0xGROUP_REGS.ADDR
 
 
//fields
//fields
LOOP RX GROUP_REGS.NUM
LOOP RX GROUP_REGS.NUM
//register GROUP_REGS[RX]:
//register GROUP_REGS[RX]:
#define REGNAME_GROUP_REGRX_ADDR       0xGROUP_REGS[RX].ADDR
#define PREFIX_GROUP_REGRX_ADDR       0xGROUP_REGS[RX].ADDR
#define REGNAME_GROUP_REGRX_START      GROUP_REGRX.START
#define PREFIX_GROUP_REGRX_START      GROUP_REGRX.FIRST_BIT
#define REGNAME_GROUP_REGRX_BITS       GROUP_REGRX.WIDTH
#define PREFIX_GROUP_REGRX_BITS       GROUP_REGRX.WIDTH
#define REGNAME_GROUP_REGRX_MASK       0xHEX(EXPR((2^GROUP_REGRX.WIDTH-1) << GROUP_REGRX.START) 32 NOPRE)
#define PREFIX_GROUP_REGRX_MASK       0xHEX(EXPR((2^GROUP_REGRX.WIDTH-1) << GROUP_REGRX.FIRST_BIT) 32 NOPRE)
 
 
ENDLOOP RX
ENDLOOP RX
 
 
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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