Electronic – Solved: How to Sweep NMOS4 Device Parameters in LTspice IV

ltspicesimulation

EDIT: Solved. I misinterpreted Linear's use of the period character prior to the measurements and LTspice was reading these values on the hundred's of nm scale, which is too small for this transistor technology.

I am currently attempting to simulate an NMOS enhancement load inverter to retrieve it's Voltage Transfer Curve for various gains by sweeping the parameter W of the switching transistor (M1 in my circuit below). From Linear's website, I found an explanation of the .step Spice directive where it matches the following formula:

.step param [variable] list [val1] [val2] … [valn]

Their example (Parameter Sweep Solution – Linear) involves sweeping the capacitance of a capacitor.

I am running into errors while trying to sweep regarding the width being less than or equal to 0. Is there a different format for the directive when sweeping a device's parameters?

My circuit is below:

NMOS Enhancement Mode Inverter Circuit

Best Answer

The syntax of the step Spice directive is correct, however I misinterpreted the use of the period character.

I have changed the directive to read ".step param w list 20u 80u 320u" and got the intended results.

The problem was that with the period the values were being read as 200n, 800n, and 320n respectively. This is smaller than the model I was using allowed for which resulted in the error.