def get_dtim(tree, hart):
    """Get the DTIM associated with the hart"""
    dtim_ref = hart.get_field("sifive,dtim")
    if dtim_ref:
        dtim = tree.get_by_reference(dtim_ref)
        return dtim
    return None