re1418ma Posted October 19, 2018 Report Share Posted October 19, 2018 #include "systemc.h" #include "systemc-ams.h" SC_MODULE (lpf) { sca_eln::sca_terminal a; sca_eln::sca_terminal b; sca_eln::sca_r r1; sca_eln::sca_c c1; SC_CTOR(lpf) :a("a"),b("b"),r1("r1",10e3),c1("c1",100e-6),gnd("gnd") { r1.p(a); r1.n(b); c1.p(b); c1.n(gnd); } private: sca_eln::sca_node_ref gnd; }; hi to all i wrote this code for eln low pass filter how should i test it? Quote Link to comment Share on other sites More sharing options...
maehne Posted October 20, 2018 Report Share Posted October 20, 2018 Well, you will have to write a test bench, which provides your RC filter with some stimuli for transient simulation or sets up an AC analysis. However, I recommend you to have first a closer look to the fundamental concepts and ideas of SystemC AMS. A good introduction to SystemC AMS is provided by the SystemC AMS extensions User's Guide, which is part of the SystemC AMS extensions 1.0 release. Even though, this discusses only the features available sind SystemC AMS 1.0, it is a good start as SystemC AMS 2.0 and IEEE Std 1666.1 added mainly advanced features related to Dynamic TDF and bug fixes. Also, the SystemC AMS community pages provide some good links to introductory resources to get started with SystemC AMS. re1418ma 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.