1. A nanowire-crossbar array comprising: a first nanowire; a number of substantially parallel control nanowires positioned so that each control nanowire overlaps the first nanowire; and a number of spintronic devices, each spintronic device configured to connect one of the control nanowires to the first nanowire and operate as a latch for controlling signal transmissions between the control nanowire and the first nanowire.