raw/ifpga/base: check size before assigning