The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Modeling >> Behavioral Models >> Model optocoupler NSL-32SR3 https://designers-guide.org/forum/YaBB.pl?num=1562621307 Message started by Leonardo on Jul 8th, 2019, 2:28pm |
Title: Model optocoupler NSL-32SR3 Post by Leonardo on Jul 8th, 2019, 2:28pm Hi all This is my first post in the forum. I need to model an optocoupler (NSL-32SR3) that reduces its resistance with increasing current. I was able to deduce the mathematical equation from the curve using Excel. Equation : R = 293,01 * i ^(-0,593) But since I have little experience in Verilog I do not know how to create an expression that converts the input current to output resistance in the Verilog language. Below is datasheet´s optocoupler. Could someone give me some tips? Thx Leonardo |
Title: Re: Model optocoupler NSL-32SR3 Post by Geoffrey_Coram on Jul 12th, 2019, 7:24am You should look on the paged linked to the "Verilog-AMS" tab above and find a resistor or a controlled source model and learn the basics of writing a Verilog-A model. Start with a simple linear resistor but rename the module to nsl_32sr3 and give it the pin names you want. |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |