Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mvemp
Novice
924 Views

Support for bitwise operations using OpenCL?

Does openCL map gate level operations to FPGA logic? There seems to be no 1-bit data types at the moment.

 

It will interesting to see bitwise operations to support for effective implmentation XNOR-neural-networks.

0 Kudos
1 Reply
HRZ
Valued Contributor II
135 Views

You can probably use the "bool" datatype or use "char" and mask out the unnecessary bits. Though this could result in some extra area overhead compared to a pure HDL design depending on how smart the compiler/mapper is in handling the operations.

Reply