MMU description » History » Version 3
Taya Sergeeva, 01/29/2013 02:37 PM
1 | 1 | Taya Sergeeva | h1. MMU description |
---|---|---|---|
2 | |||
3 | 3 | Taya Sergeeva | Documentation with examples |
4 | 2 | Taya Sergeeva | |
5 | There is an example of buffer which can be loaded to the MMU translator: |
||
6 | |||
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. |