Have to take analogies with current computers with a large shovel full of salt.
The OP says more than once that they are trying to understand "behavior". To me that is like the kitty cat chasing a mouse, and in that case I suggested starting at a level lower than that. Sure, maybe as you suggest that level is higher than neuro-science has achieved so far, but I was responding to the OP.
A few days ago I did conjecture that building models of brain activity might give some clues to how the brain actually works, maybe.
If memory in brains involved rewiring, than maybe could treat that memory just as memory, although based on rewiring. In that case, maybe would want to study the wiring and, if some memory changed, the new wiring and, thus, see how memory writing is implemented by neuron rewiring. Then, maybe, the more times that memory is read and the length of time the reading is active determines how strong the connections are in the rewiring and, thus, how persistent the memory is. Maybe.