added bit truncation for rmfpgen_hsim