changing tb to input to BRAM memory