MMU description » History » Revision 5
« Previous |
Revision 5/132
(diff)
| Next »
Taya Sergeeva, 01/29/2013 02:50 PM
MMU description¶
Documentation with examples
The MMU grammar is in ru.ispras.microtesk.translator.mmu.grammar folder. It contains Lexer, Parser and TreeWalker files. These files can be built by build.xml file (microtesk++/build.xml).
The folder ru.ispras.microtesk.translator.mmu.ir. contains the inner representation of the MMU hierarchy. MMU translator is in the ru.ispras.microtesk.translator.mmu.translator folder. File ''BufferExample'' can be loaded to this translator.
For instance, this is an example of such file below:
/**********************************************************/
address PA
{
width = 40
}
buffer L1
{
sets = 4
lines = 128
line = (tag:30 data:256)
index(addr:PA) = addr<9**8>
match(addr:PA) = line.tag == addr<39**10>
policy = lru
}
/**********************************************************/
Buffer L1 is a child of the class BufferExpr, address PA is a child of the class AddressExpr.
Updated by Taya Sergeeva almost 12 years ago · 132 revisions