A comprehensive compact model for the design of all-spin-logic based circuits. (October 2019)