Actions
Task #6089
closedSupport for data streams in test templates
Start date:
06/22/2015
Due date:
06/22/2015
% Done:
0%
Estimated time:
Detected in build:
svn
Published in build:
2.2.7
Description
data_stream(reg_data, reg_index, start_label, array_size) { init { reg_index = start_label // User-defined code } read { reg_data = mem[reg_index] // User-defined code reg_index++ } write { mem[reg_index] = reg_data // User-defined code reg_index++ } }
Updated by Andrei Tatarnikov over 9 years ago
- Status changed from Open to Resolved
Done. Data streams are stored in EngineContext. You can access them using the getDataStreams method:
public DataStreamStore getDataStreams() {
return dataStreams;
}
An example of data stream specification (see data_streams.rb example for miniMIPS):
data_stream(:data_source => 'REG', :index_source => 'REG') {
init {
la index_source, start_label
}
read {
lw data_source, 0, index_source
addi index_source, index_source, 4
}
write {
sw data_source, 0, index_source
addi index_source, index_source, 4
}
}
P.S. It is not tested how data streams work integrated into MicroTESK.
Updated by Alexander Kamkin over 9 years ago
- Status changed from Resolved to Closed
- Published in build set to 2.2.7
Actions