In this work, we reported a new way to design logic circuits. The output of a stochastic Hodgkin-Huxley (HH) neuron system can be continuously mapped to a specific logic gate operation, logical stochastic resonance occurs. The energy consumption of neurons was estimated by the equivalent circuit of the HH model. It is found that reliable logic operations can be obtained with low energy consumption in the neuronal system, the HH neurons are excellent building blocks for logic circuits. The underlying mechanisms are intuitively interpreted using bifurcation and phase plane diagrams. The reliabil...