toplevel: use csr_bank_size in memory length calculation