Project

General

Profile

MMU description » History » Version 5

Taya Sergeeva, 01/29/2013 02:50 PM

1 1 Taya Sergeeva
h1. MMU description
2
3 3 Taya Sergeeva
Documentation with examples
4 2 Taya Sergeeva
5 5 Taya Sergeeva
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).
6 1 Taya Sergeeva
7 5 Taya Sergeeva
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.
8
For instance, this is an example of such file below:
9
10 2 Taya Sergeeva
/**********************************************************/
11
address PA  
12
{
13
	width = 40
14
}
15
16
buffer L1 
17
{
18
	sets = 4
19
	lines = 128
20
	line = (tag:30 data:256)
21
	index(addr:PA) = addr<9**8> 
22
	match(addr:PA) = line.tag == addr<39**10>	
23
	policy =  lru
24
}
25
26 1 Taya Sergeeva
/**********************************************************/
27
28 5 Taya Sergeeva
29 3 Taya Sergeeva
Buffer L1 is a child of the class BufferExpr, address PA is a child of the class AddressExpr.