Jump to content
pradeep.vrr

Error in modelling of Lowpass Filter

Recommended Posts

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.

post-14978-0-88399200-1427646624_thumb.png

lpf.txt

lpf_tb.txt

main.txt

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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.

Share this post


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