Project

General

Profile

MMU description » History » Version 4

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

1 1 Taya Sergeeva
h1. MMU description
2
3 3 Taya Sergeeva
Documentation with examples
4 2 Taya Sergeeva
5 4 Taya Sergeeva
There is an example of buffer which can be loaded to the MMU translator (it is in the ru.ispras.microtesk.translator.mmu.translator folder):
6 2 Taya Sergeeva
7
/**********************************************************/
8
address PA  
9
{
10
	width = 40
11
}
12
13
buffer L1 
14
{
15
	sets = 4
16
	lines = 128
17
	line = (tag:30 data:256)
18
	index(addr:PA) = addr<9**8> 
19
	match(addr:PA) = line.tag == addr<39**10>	
20
	policy =  lru
21
}
22
23
/**********************************************************/
24 1 Taya Sergeeva
25 3 Taya Sergeeva
The folder ru.ispras.microtesk.translator.mmu.ir. contains the inner representation of the MMU hierarchy. 
26
Buffer L1 is a child of the class BufferExpr, address PA is a child of the class AddressExpr.