Line 1... |
Line 1... |
|
|
|
|
//// ////
|
//// ////
|
//// Author: Eyal Hochberg ////
|
//// Author: Eyal Hochberg ////
|
//// eyal@provartec.com ////
|
//// eyal@provartec.com ////
|
//// ////
|
//// ////
|
Line 26... |
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 ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////##>
|
//////////////////////////////////////////////////////////////////##>
|
|
|
REQUIRE(1.4)
|
REQUIRE(1.5)
|
|
|
|
STARTUSER
|
|
|
|
PARAM COUNT 0
|
|
|
INCLUDE def_regs.txt
|
INCLUDE def_regs.txt
|
|
|
SWAP.GLOBAL MODEL_NAME regfile
|
SWAP.GLOBAL MODEL_NAME PREFIX configuration registers
|
|
|
SWAP FFD 1 ##flip-flop delay
|
SWAP FFD 1 ##flip-flop delay
|
|
|
## Types:
|
## Types:
|
## RW - read / write (output from block)
|
## RW - read / write (output from block)
|
Line 58... |
Line 61... |
prdata 32 output
|
prdata 32 output
|
pslverr 1 output
|
pslverr 1 output
|
pready 1 output
|
pready 1 output
|
}
|
}
|
|
|
|
SWAP.USER ADD_REG(NAME, ADDR, TYPE, DESC) PARAM REG_NAME COUNT +NEWLINE PARAM COUNT +1 +NEWLINE GROUP.USER REGS extends { +NEWLINE NAME SON(CONST(ADDR) ADDR) SON(CONST(TYPE) TYPE) SON(CONST(DESC) DESC) +NEWLINE } ##Registers:
|
|
|
|
SWAP.USER ADD_FIELD(REGNAME, NAME, BITS, FIRST_BIT, DEFAULT, TYPE, DESC) GROUP.USER REGREG_REGNAME extends { +NEWLINE NAME BITS SON(CONST(FIRST_BIT) FIRST_BIT) SON(CONST(DEFAULT) DEFAULT) SON(CONST(TYPE) TYPE) SON(CONST(DESC) DESC) +NEWLINE } ##Fields:
|
|
|
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 }
|
|
|
|
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 }
|
|
|
|