Fix setting of task inputs and reintroduce end breakpoint
This commit is contained in:
parent
480f4dfb67
commit
931794ddcb
@ -132,7 +132,8 @@ int main(int argc, char **argv)
|
||||
for (int j = 0; j < num_tasks; j++)
|
||||
{
|
||||
// from the "global input" i, extract the input bits for the task j
|
||||
task_inputs[j] = i & ((input_size - 1) << (j * __builtin_popcount(input_size - 1)));
|
||||
task_inputs[j] = (i >> (j * (__builtin_popcount(input_size - 1) ))) & (input_size - 1);
|
||||
printf("Task %d: %d\n", j, task_inputs[j]);
|
||||
}
|
||||
|
||||
// load the system in the halted state at the beginning of the task; Write input to register
|
||||
@ -187,7 +188,7 @@ int main(int argc, char **argv)
|
||||
inputs[i] = i;
|
||||
deltas[i] = end_count - start_count;
|
||||
|
||||
// printf("Delta: %lu\n", deltas[i]);
|
||||
printf("Delta: %lu\n", deltas[i]);
|
||||
}
|
||||
|
||||
// // Write to serial port
|
||||
|
Loading…
x
Reference in New Issue
Block a user