Skip to content
Snippets Groups Projects
Commit 8f6a22ac authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[FIFO] small bugfix in input txn counting

parent 59b19dd3
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ int main(int argc, char *argv[]) {
chrono::steady_clock::time_point begin = chrono::steady_clock::now();
while(!exit_criterion) {
if(top->s_axis_0_tready == 1) {
if(top->s_axis_0_tready == 1 && top->s_axis_0_tvalid == 1) {
n_in_txns++;
if(n_in_txns == n_iters_per_input * n_inputs) {
top->s_axis_0_tvalid = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment