Skip to content

Commit 736d7d9

Browse files
pcolbergsophimao
authored andcommitted
hal_mmd: define streaming control interface to simulator
Signed-off-by: Peter Colberg <[email protected]>
1 parent 57cb659 commit 736d7d9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/acl_hal_mmd.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ typedef struct {
136136
void (*aocl_mmd_simulation_streaming_kernel_args)(
137137
int handle,
138138
const std::vector<aocl_mmd_streaming_kernel_arg_info_t> &streaming_args);
139+
140+
// Submits streaming kernel control start signal to simulator.
141+
void (*aocl_mmd_simulation_streaming_kernel_start)(
142+
int handle, const std::string &kernel_name);
143+
144+
// Queries streaming kernel control done signal from simulator.
145+
// Returns non-negative number of finished kernels invocations.
146+
//
147+
// It is the responsibility of the simulator to ensure that any kernel
148+
// invocations that finish *while* this function is invoked are properly
149+
// accounted and returned in a subsequent invocation of this function.
150+
void (*aocl_mmd_simulation_streaming_kernel_done)(
151+
int handle, const std::string &kernel_name, unsigned int &finish_counter);
139152
} acl_mmd_dispatch_t;
140153

141154
typedef struct {

0 commit comments

Comments
 (0)