parameterized decoder_1, fix RAM