Qucs / ADMS

ADMS is a code generator for the Verilog-AMS language
GNU General Public License v3.0
94 stars 32 forks source link

Strange scaling factor #96

Open ma-laforge opened 3 years ago

ma-laforge commented 3 years ago

There appears to be a strange scaling factor when I use ADMS in QUCS.

In order for my simple voltage-controlled-voltage-source (VCVS) to correctly work, I needed to apply a factor of -50 to my gain:

`include "disciplines.vams"

module cust_vcvs(p1, n1, p2, n2);
    parameter real gain = 1;
    inout p1, n1, p2, n2;
    electrical p1, n1, p2, n2;

    analog begin
        V(p2, n2) <+ V(p1, n1)*gain/-50;
    end
endmodule

In 2015, this factor was there as well (though it was different at that time: -1e12 instead of 50).

felix-salfelder commented 3 years ago

Is this an ADMS or a Qucs (maybe Qucsator) issue?