Verilog-A release version.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
384 B

//VerilogA for lightsource,led,veriloga
`include "constants.vams"
`include "disciplines.vams"
module led(Vcurr,Vlam,Opow,Ophase,Olam);
input Vcurr,Vlam;
output Opow,Ophase,Olam;
electrical Vcurr,Vlam,Opow,Ophase,Olam;
parameter real eta = 1 from (-inf:inf);
analog begin
V(Opow) <+ eta*`P_H*`P_C/V(Vlam)*I(Vcurr)/`P_Q;
V(Ophase) <+ 0;
V(Olam) <+ V(Vlam);
end
endmodule