Hi everyone, I have a question regarding netlisting, matlab, spetre and the mosfet model. From what I understand, when we run a simulation using spectre, a netlist is created which will be fed to the spectre engine. In that netlist we can find the schematic connections, simulator options and etc. If we analyse the first part of the netlist, when it comes to the transistor definition I can see, apart from the type of transistor being used, length, width, nf, etc, some other variables where the number of finger is used in the expression. For example, one of the variables is as , than it has an expression where the nf appears dividing a number in there. That said, if I want to use matlab to launch the simulation, making use of the spectre/matlab toolbox, do I have to define those as well? For example, I have tried two different situations: The first option I have put only the basic transistor definition: Mnfet (v1 v2 0 v3) nchannel w=10e-06 l=length nf=10 and the second option I have put exactly the same definition as before plus the other definitions (the variables) that I mentioned above that we get using spectre (where those extra variables with the number of finger dividing some numbers in the expression). When I run the matlab script with the first option, everything goes well. But when I use in the matlab script in the second option (same definition that spectre gives me in the netlist of the same circuit), I get the following error: Error found by spectre during circuit read-in. ERROR (SFE-874): "myfile.scs" 17: Unexpected equals "=". Does anyone has an idea of what might be happening? I have a guess. Before telling what my guess is, does anyone knows what the number 17 means? Regarding my guess: I guess that the simulator doesn't allow you to specify those extra variables, like the as mentioned above. This is something that is intrinsic to the simulator/model which it is shown in the input file that is fed to the spectre engine. I am not sure. It's just a guess. Another experiment that I did was the following. I have ran a simple simulation using the script (with the first option configure in my script) and using spectre/ADEL simulator. For that experiment, I got different results for some capacitances, ids, gm, gmb and gds. That's why I have experiment putting in my script the same transistor definition (the extra variables with the nf dividing some number in it). Any comments please? Regards.
↧