-
Notifications
You must be signed in to change notification settings - Fork 31
LRC Extern Function
hendrikzuellig edited this page May 9, 2019
·
4 revisions
Home || Extern Funtion Library
Description - very simple hash function. Split the input data into multiple words and XOR each word together to obtain the result.
Instantiation:
@Xilinx_MaxLatency(1)
@Xilinx_ControlWidth(0)
extern void <name>_lrc<T, D>(in T in_data, out D result);
-
in_data- the data to hash -
result- the resulting hash with width(T) of in_data. This is obtained by splitting up in_data into words of size width(D) and XORing each word together. But each word is shifted by the offset before it is XORed. Imagine writing down all words in one column and now you shift the i'th word by offset*i with a wrap around.