pradeep.vrr Posted March 29, 2015 Report Share Posted March 29, 2015 Hi all,I am trying to model a lowpass filter in SystemC-AMS ELN. I am using 2.0 Beta version. I am able to make all the files and generate the .exe file. But when i run the .exe file, i am getting an error. It says "Error: SystemC-AMS: sca_tdf::sca_signal has no driver the following modules are connected to the channel:". I am attaching the deisgn file, testbench, main file and the screeshot of the error. Kindly help me in clearing the error. lpf.txt lpf_tb.txt main.txt Quote Link to comment Share on other sites More sharing options...
Martin Barnasconi Posted March 29, 2015 Report Share Posted March 29, 2015 Your input signal created by module lpf_tb is not a valid SystemC AMS module. It seems you created a regular SystemC module following discrete event semantics, but you need to create a module following timed data flow (TDF) semantics. Please check the SystemC AMS users guide, section 2.3.1 to create a TDF module. Alternativelty, you can replace the voltage source and sink converter elements the LPF module by a voltage source driven by a discrete-event input signal called sca_de_vsource and the sink by sca_de_sink. Also note that you need to specify at least one timestep to the TDF or ELN cluster. You can do this via the main function, for example L1.set_timestep(1.0, sc_core::SC_MS) Quote Link to comment Share on other sites More sharing options...
dakupoto Posted March 30, 2015 Report Share Posted March 30, 2015 Hi all, I am trying to model a lowpass filter in SystemC-AMS ELN. I am using 2.0 Beta version. I am able to make all the files and generate the .exe file. But when i run the .exe file, i am getting an error. It says "Error: SystemC-AMS: sca_tdf::sca_signal has no driver the following modules are connected to the channel:". I am attaching the deisgn file, testbench, main file and the screeshot of the error. Kindly help me in clearing the error. Hello Sir, The simplest way to achieve your goal is to use the following scheme. TDF signal generator --> TDF to ELN converter port --> ELN low-pass filter | | v ELN to TDF converter port However, why do you want to use such a complicated scheme to achieve your goal ? After all, your main aim is to understand the behaviour of your low-pass filter -- right ? Just use SPICE. Quote Link to comment Share on other sites More sharing options...
pradeep.vrr Posted April 3, 2015 Author Report Share Posted April 3, 2015 Hi all, Thanks for your answers. I got the code working. Your replies were really helpful in fixing the bugs.@dakupoto: I am trying to learn the language by doing these small programs. Yes, SPICE makes our life simpler. 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.