gen binary input data