StefanSchippers / xschem

A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
Other
330 stars 20 forks source link

ngspice simulator not opens #49

Closed visionvlsi closed 2 years ago

visionvlsi commented 2 years ago

I have followed the latest video tutorial. And followed the old video tutorial for ngspice. After launching the tool by typing xschem, after clicking on the netlist then i clicked simulate, but nothing happens. whereas .spice file been created in simulations folder.

visionvlsi commented 2 years ago

The following is the nmos inverter netlist

sch_path: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/test_nmos.sch .subckt test_nmos G1v8 D1v8 B .ipin G1v8 .ipin D1v8 .ipin B Vd1 D1v8 net1 0 .save i(vd1) Vd3 D3v3 net2 0 .save i(vd3) Vd2 D1v8 net3 0 .save i(vd2) Vd4 D5v0 net4 0 .save i(vd4) E1 D5v0 0 D1v8 0 '5/1.8' E2 D3v3 0 D1v8 0 '3.3/1.8' E3 G5v0 0 G1v8 0 '5/1.8' E4 G3v3 0 G1v8 0 '3.3/1.8' Vd5 D10v5 net5 0 .save i(vd5) E5 D10v5 0 D1v8 0 '10.5/1.8' E6 D16v0 0 D1v8 0 '16.0/1.8' Vd6 D16v0 net6 0 .save i(vd6) Vd7 D1v8 net7 0 .save i(vd7) E7 D20v0 0 D1v8 0 '20.0/1.8' XM1 net1 G1v8 S B sky130_fd_pr__nfet_01v8_lvt L=0.15 W=1 nf=1 ad='int((nf+1)/2) W/nf 0.29' as='int((nf+2)/2) W/nf * 0.29'

** opencircuitdesign pdks install .lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt

** end user architecture code .ends .end

StefanSchippers commented 2 years ago

First of all open a terminal and type 'ngspice'. Does the simulator start?

visionvlsi commented 2 years ago

Thank you I solved that problem by installing

sudo apt-get install -y xterm

StefanSchippers commented 2 years ago

Well done!!