by support »
Hello,
In essence, it depend on whether that X is constant for a session, or if it changes between each workload.
If it's constant, the simplest way is to dedicate a separate stream for setting it. The logic just says something like
- Code: Select all
always @(posedge clk)
if (xillybus_x_wren)
X <= xillybus_x_data;
so the host just sends a word to set up X.
If X changes for each workload, you might send the X for each assignment in a different stream for convenience, or set up some simple packet structure, in which, for example, X is the first element, and the other elements consist of data.
Hope this gave a direction.
Regards,
Eli
Hello,
In essence, it depend on whether that X is constant for a session, or if it changes between each workload.
If it's constant, the simplest way is to dedicate a separate stream for setting it. The logic just says something like
[code]
always @(posedge clk)
if (xillybus_x_wren)
X <= xillybus_x_data;
[/code]
so the host just sends a word to set up X.
If X changes for each workload, you might send the X for each assignment in a different stream for convenience, or set up some simple packet structure, in which, for example, X is the first element, and the other elements consist of data.
Hope this gave a direction.
Regards,
Eli