Jump to content

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×