Project

General

Profile

Actions

Task #6440

closed

How to reuse a preparator?

Added by Alexander Kamkin about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Template Processor
Target version:
Start date:
11/20/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Published in build:
2.3.21
Actions #1

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
}

Actions #2

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>) {}"

Actions #3

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.3.21
Actions

Also available in: Atom PDF