I have a look at the test directory for the electric project, this provides
me some unit test examples.
However, I would like to know if someone has an example on *how to generate
a circuit (let's say an inverter) ?*
*My goal would be to have a string as output, such as:*
*Mn Z A gnd gnds nsvtlp l=0.08 w=0.15*
*Mp Z A vdd vdds psvtlp l=0.08 w=0.21*
*The code could be like the following lines:*
Mos pmos = new Mos("Mn").model("psvtlp").w(0.15).l(0.08)
Mos nmos = new Mos("Mp").model("nsvtlp").w(0.21).l(0.08)
Net netBetweenMos = new Net().head(pmos .getDrain()).tail((nmos .getDrain())
Pin pin_vdd = new Pin()
Pin pin_gnd = new Pin()
Pin pin_A = new Pin()
Pin pin_vdds = new Pin()
Pin pin_gnds = new Pin()
Circuit inverter = new Circuit(nmos, pmos)
Mn Z A gnd gnds nsvtlp l=0.08 w=0.15
Mp Z A vdd vdds psvtlp l=0.08 w=0.21
Thanks a lot,
You received this message because you are subscribed to the Google Groups
"Electric VLSI Editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.