Hi Emanuele,
You better post the exact warnings/errors because
Quote:... error on line XXX and token 'YYY' in file ZZZ ...
Is not that helpful I'm afraid.
Anyway, I have created the following shiftPlus5.va file:
Code:`include "constants.vams"
`include "disciplines.vams"
module shiftPlus5(in, out);
input in;
output out;
voltage in, out; //voltage is a signal flow
analog begin
V(out) <+ 5.0 + V(in);
end
endmodule
I have compiled the above code using:
Code:spectre #dpl /dev/null #ahdlfile shiftPlus5.va
It all worked fine !
Now, I have compiled my code using Spectre (The Cadence's Spice-like simulator). I don't have any idea about your tool you mentioned above.
Also, If you are interesting in modeling resistors whose value depends on the Temp, then you may look at the model files in your PDK too. Modern PDKs/technology nodes provide these kind of models.
Cheers,
Riad.