Jump to content

ELN Low pass filter


Recommended Posts

 #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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...