We describe a novel hardware and embedded system design of a closed loop neurostimulator for generating precise neural code-like, multi-channel, asynchronous electrical stimulation pulses. Such stimulator will be used as the output unit of the cortical prosthesis that aims to restore cognitive functions by reinstating the neural signal transmission.