The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> VerilogA code for Ideal MOS switch https://designers-guide.org/forum/YaBB.pl?num=1491235024 Message started by ashrafSazid on Apr 3rd, 2017, 8:57am |
Title: VerilogA code for Ideal MOS switch Post by ashrafSazid on Apr 3rd, 2017, 8:57am Hi, Does anyone have a code for Ideal Switch ( MOS Switch) in VerilogA? I tried one but that is not working at all. Please have a look at my code. suggest me how I can do it or Please provide me a code if you have. module simple_switch(in, out, tp); input in, tp; output out; electricl in, out, tp; parameter real vth =0.4; real vout analog begin if (V(tp) >= vth) begin vout = V(in); end else vout = 0; V(out) <+ vout; end endmodule |
Title: Re: VerilogA code for Ideal MOS switch Post by Ken Kundert on Apr 5th, 2017, 12:10am Check out http://www.designers-guide.org/VerilogAMS/ -- basic models -- relays |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |