StefanSchippers I was trying out one of your compa...
# xschem
j
StefanSchippers I was trying out one of your comparator design with xschem based on this

https://youtu.be/bYbkz8FXnsQ?si=gimaMqCjEv__PKM6

. but im facing this problem, even though the utile stimuli code and stimule code is same as yours im getting error. I dont know what error I'm facing , im unable to debug it . Please help
* .option SCALE=1e-6 .option method=gear * this experimental option enables mos model bin * selection based on W/NF instead of W .option wnflag=1 .param VCCGAUSS = agauss(1.8, 0.05, 1) .param VCC = VCCGAUSS ** use of following line to remove VCC variations * .param VCC =1.8 .param TEMPGAUSS = agauss(40, 30, 1) .option temp = TEMPGAUSS ** use of following line to remove temperature variations * .option temp =25 .include stimuli_tb_opamp.cir .control option seed=9 let run=0 dowhile run <= 100 save all tran 1n 4000n uic remzerovec write tb_opamp.raw set appendwrite reset let run = run + 1 end .endc
unit n voltage VCC slope 1 format hspice_simple param eq 1000 param vcommon 0.6 param vdelta 0.001 param eval 1000 beginfile stimuli_tb_opamp.cir set vss 0 set vcc 1 set en_n 1 set plus vcommon set minus vcommon set start 0 s 100 set en_n 0 s eq-100 set start 1 s 1 set minus vcommon+vdelta s eval-1 set minus vcommon set start 0 s eq set start 1 s 1 set minus vcommon-vdelta s eval-1
this is the code ive used to run, but its not creating the stimuli_tb_opamp.cir file
s
To generate the
stimuli_tb_opamp.cir
file open the schematic testbench, go to
Simulation->Utile stimuli editor(GUI)
, press 'Translate' and close the dialog box.
j
I did that the problem was solved bcs i didnt ass endfile at the end, but im facing new problem of that
Screenshot (179).png im facing problem that Circuit: ** sch_path: /home/nithinpuru/.xschem/tb_opamp.sch option SCALE: Scale is set to 1e-06 for instance and model parameters Doing analysis at TEMP = 30.629675 and TNOM = 27.000000 Using transient initial conditions Warning: singular matrix: check node v1#branch Warning: singular matrix: check node v1#branch Warning: singular matrix: check node v1#branch Warning: singular matrix: check node v1#branch Warning: singular matrix: check node v1#branch Warning: singular matrix: check node v1#branch doAnalyses: TRAN: Timestep too small; initial timepoint: cause unrecorded. tran simulation(s) aborted binary raw file "tb_opamp.raw" Reset re-loads circuit ** sch_path: /home/nithinpuru/.xschem/tb_opamp.sch
Stefan Schipper Pls Help
s
Please send the schematic you are trying to simulate.
j
I was able to solve the above error, but im facing the problem with DIFFOUT_N which is not changing rather its same
Screenshot (198).png
Screenshot (197).png
Screenshot 2024-01-29 180456.png
Screenshot (199).png