Task #6440
closedHow to reuse a preparator?
100%
Updated by Andrei Tatarnikov almost 9 years ago
- Status changed from New to Resolved
- Assignee changed from Andrei Tatarnikov to Alexander Kamkin
- % Done changed from 0 to 100
Use the prepare
method to explicitly insert a preparator into your code.
Supported use cases:
1. Preparators can be invoked explicitly anywhere in a test template to assign constant or random values to registers. For example:
prepare t0, 0xDEADBEEF
prepare t1, rand(1, 63)
2. Preparators can be invoked explicitly inside of preparator
and buffer_preparator
blocks to initialize registers with values provided when the block is instantiated. For example:
buffer_preparator(:target => 'L1') {
prepare t0, address
lw t1, 0, t0
}
Updated by Andrei Tatarnikov almost 9 years ago
Additional attribute offset to split a preparator into parts:
r6090 - "PreparatorReference: added field valueOffset"
r6091 - "Preparator: added fields dataOffset"
r6097 - "Support for optional parameters: prepare target, value, [offset], [variant]"
r6098 - "Support for the offset attribute of a preparator. Construct: preparator(:offset => <value>) {}
"
Updated by Andrei Tatarnikov almost 9 years ago
- Status changed from Resolved to Closed
- Published in build set to 2.3.21