minor modification.
Using the memory addresses in the outer interface in the dataflow as the global memory state.