function dataout = ldpc_dataFormation(datain,Z,k,serial)
   if serial
       veclength = 1;
   else
       veclength = 64;
   end
   dataInVec64Format = [true(1,Z) false(1,veclength*ceil(Z/veclength)-Z)];
   tmp  = zeros(1,length(dataInVec64Format)*k);
   tmp(repmat(dataInVec64Format,1,k)) = datain;
   dataout  = reshape(tmp,veclength,[]);
end

