If you want to learn how to best model a switch (and why), I would suggest you to take a look at chapter 3 of the Mixed-Signal Methodology Guide, which is available at https://www.eetimes.com/author.asp?section_id=36&doc_id=1286611 (especially the section "Example of Modeling with Proper Continuity" in part 4).
↧