HLS hashjoin removed the unneeded do while(0) loop
@@ -296,7 +296,9 @@ static void write_table3(snap_membus_t *mem, unsigned int max_lines,
/* FIXME Tryout for 0 entries ... */
snap_4KiB_flush(&buf);
}
-
+//-----------------------------------------------------------------------------
+//--- MAIN PROGRAM ------------------------------------------------------------
+//-----------------------------------------------------------------------------
static void process_action(snap_membus_t *din_gmem,
snap_membus_t *dout_gmem,
snap_membus_t *d_ddrmem,
@@ -330,9 +332,6 @@ static void process_action(snap_membus_t *din_gmem,
#pragma HLS stream variable=t2_fifo depth=32
#pragma HLS stream variable=t3_fifo depth=32
- //== Parameters fetched in memory ==
- //==================================
- do {
// byte address received need to be aligned with port width
T1_address = Action_Register->Data.t1.address;
T1_type = Action_Register->Data.t1.type;
@@ -373,15 +372,11 @@ static void process_action(snap_membus_t *din_gmem,
T3_lines, &t3_fifo, __table3_idx);
} else
ReturnCode = RET_CODE_FAILURE;
- } while (0);
write_HJ_regs(Action_Register, ReturnCode, 0, 0, __table3_idx, 0);
}
-//--------------------------------------------------------------------------------------------
-//--- MAIN PROGRAM HASHJOIN ------------------------------------------------------------------
-//--------------------------------------------------------------------------------------------
-
+//--- TOP LEVEL MODULE ------------------------------------------------------------------
/**
* Remarks: Using pointers for the din_gmem, ... parameters is requiring to
* to set the depth=... parameter via the pragma below. If missing to do this
