International Journal of Reconfigurable Computing / 2017 / Article / Alg 1

Research Article

OpenCL-Based FPGA Accelerator for 3D FDTD with Periodic and Absorbing Boundary Conditions

Algorithm 1

Pseudo code of the stencil computation kernel.
  _kernel FDTD (global struct , global struct )
      
      
     ⋯
      
      ⋯
       while do
       #pragma unroll
       for do
     #pragma unroll
     for     do
          
          
          ⋯;
     end
   end
   #pragma unroll
   for do
     #pragma unroll
     for      do
       
       
       ⋯;
     end
   end
   ;
   ⋯;
   ;
   ⋯;
   #pragma unroll
   for   do
     //compute the temporary storage locations
      1:
      2:
     ⋯
     //Computation of the core data
     
     ⋯
     //Computation of the boundary data
      
     ⋯
     if then
         if    then
           ;
          ⋯;
          ;
          ⋯
         else
          ;
          ⋯
         end
      end
   end
   ;
    end
end

Article of the Year Award: Outstanding research contributions of 2020, as selected by our Chief Editors. Read the winning articles.