Here we propose to study the I-V characteristics of the three-terminal molecular devices. The 1.4-Benzenedithiol-Molecular Field Effect Transistor (MFET) model is implemented using Matlab simulator. The modeling results showed good performance. In addition, we used our model under VHDL-AMS to create a logic gate. Specifically, we discussed in detail the operation principle of molecular NAND logic gate.