Title: Architectures and algorithms for field-programmable gate arrays with embedded memory