Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
654 Discussions

Support for bitwise operations using OpenCL?

mvemp
Novice
1,907 Views

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 III
1,118 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.

0 Kudos
Reply