HLS: Use new version of copy snapmbus to haskhey
@@ -81,9 +81,6 @@ static void write_results_in_HJ_regs(action_output_reg *Action_Output,
* this problem and avoid the user to make mistakes there.
*/
-#undef CONFIG_SUGGESTED_OPTIMIZATION
-#if defined(CONFIG_SUGGESTED_OPTIMIZATION)
-
static void copy_hashkey(snap_membus_t mem, hashkey_t key)
{
snap_membus_t tmp = mem;
@@ -109,28 +106,6 @@ static snap_membus_t hashkey_to_mbus(hashkey_t key)
return mem;
}
-#else
-static void copy_hashkey(snap_membus_t mem, hashkey_t key)
-{
- loop_copy_hashkey:
- for (unsigned char k = 0; k < sizeof(hashkey_t); k++)
-#pragma HLS UNROLL factor=2
- key[k] = mem(8 * (k+1) - 1, 8 * k);
-}
-
-static snap_membus_t hashkey_to_mbus(hashkey_t key)
-{
- snap_membus_t mem = 0;
-
- loop_hashkey_to_mbus:
- for (unsigned char k = 0; k < sizeof(hashkey_t); k++) {
-#pragma HLS UNROLL factor=2
- mem(8 * (k+1) - 1, 8 * k) = key[k];
- }
- return mem;
-}
-#endif
-
/*
* Instead of reading each snap_membus_t line individually, we try to
* read always a 4KiB block and return the line from the internal buffer.
