1. A method comprising: receiving, with a magnetic logic device, a function select signal that indicates a combinational logic function that is to be performed by the magnetic logic device on input values stored on the magnetic logic device; configuring an amount of impedance provided by at least one of a plurality of magnetoresistive devices of a reference circuit of the magnetic logic device based at least on the combinational logic function that is to be performed by the magnetic logic device; and generating, with the reference circuit, a reference current whose amplitude is based at least on the amount of impedance provided by the at least one of the plurality of magnetoresistive devices of the reference circuit.