cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
topFMKU_pkg Package Body Reference
Package >> topFMKU_pkg

Functions

integer   fLog2Ceil ( n: in integer )

Detailed Description

Definition at line 155 of file topFMKU_pkg.vhdl.

Member Function Documentation

◆ fLog2Ceil()

integer fLog2Ceil (   n in integer  
)
Function

Definition at line 161 of file topFMKU_pkg.vhdl.

161  function fLog2Ceil (n : integer) return integer is
162  variable m, p : integer;
163  begin
164  m := 0;
165  p := 1;
166  for i in 0 to n loop
167  if p < n then
168  m := m + 1;
169  p := p * 2;
170  end if;
171  end loop;
172  return m;
173  end fLog2Ceil;
integer fLog2Ceiln,

The documentation for this class was generated from the following file: