Simulation and performance of an artificial retina for 40 MHz track reconstruction