Working on Hspice first time so please bear with me. I need to write netlist for CMOS And gate. Currently, I had finished writing and testing of CMOS-Nand & inverter part.
I know to to implement AND gate, I need to to connect output of NAND gate to the input of inverter.
I know that I can define NAND and Inverter as my subcircuits. But in this approach I need to wirte down their code in the subckt part which will increase the complexity of netlist.
My question is that is any other way so that I can directly use the above written netlist or write the subckts in other file and import them?