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.

15 lines
342 B

//VerilogA for tools,riout,veriloga
`include "constants.vams"
`include "disciplines.vams"
module riout(Ipow,Iphase,Vreal,Vimag);
input Ipow,Iphase;
output Vreal,Vimag;
electrical Ipow,Iphase,Vreal,Vimag;
analog begin
V(Vreal) <+ V(Ipow)*cos(V(Iphase));
V(Vimag) <+ V(Ipow)*sin(V(Iphase));
end
endmodule