Given below is the constructor in vector_to_stream block. The block size
passed as a parameter to the constructor.
vector_to_stream_impl::vector_to_stream_impl(size_t itemsize, size_t
: sync_interpolator (“vector_to_stream”,
io_signature::make (1, 1, itemsize *
io_signature::make (1, 1, itemsize),
Suppose I don’t know the block size before hand, and I want to pass a
parameter “x” to toe constructor such that block size can be obtained
x using certain computation (that will be defined inside the
Can I do this? If so how?
When I add a new block “encoder”, to the module “ldpc”, modtool add
“include/ldpc/encoder.h”, “lib/encoder_impl.cc”, and
And the work function is to be declared and defined in encoder_impl.h
encoder_impl.cc respectively. Consider that I have the function “encode”
defined and declared in ldpc.h and ldpc.cc respectively. ldpc.* does not
define any signal processing block, so I don’t add them using modtool.
they are required as they have the definition for the “encode” function
inside the work function in encoder_impl.cc I just want to call the
function defined inside this ldpc class.
Am I supposed to put ldpc.h in inlclude/ldpc/ and ldpc.cc in lib/? Or
should I put both of them inside lib/ ? Which section of CMakeLists.txt
I supposed to modify?