def METHOD_NAME(self, readfn, writefn):
    d = {}
    for item in self.items:
        group, name, addr, length, mode = item
        if group == "csr_register":
            addr = int(addr.replace("0x", ""), 16)
            length = int(length)
            d[name] = CSRRegister(readfn, writefn, name, addr, length, self.csr_data_width, mode)
    return CSRElements(d)