Jump to content

pradeep.vrr

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. Hi Alan , I am using an "inout port" between transmitter and receiver . I am connecting the ports between Tx and Rx in the top module using sc_signal. It is throwing an error "sc_signal can not have more than one driver" . I have updated the source code in my earlier post . Thank you:)
  2. Hello all, I am trying to bind 'inout' port named sda in two different modules in a top module. But it is showing the below error when I am executing it. Error: (E109) complete binding failed: port not bound: port '_top_.sr0.port_5' (sc_in) Please find the top module and the two submodules in the attachment. Thank you. sr_design.txt sr_slave.txt top_sr_main.txt
  3. Hi dakupoto, Thank you for your suggestion. I used sca_tdf::sca_de::sca_in<T> as you suggested. I am able to make it without any errors. But i am getting the following error when i run the output.exe Error: SystemC-AMS: The sca_tdf::sca_de::sca_out port LPF.sca_tdf_sc_in_0 must be instantiated in the context of an sca_tdf::sca_module Please help me in clearing this. And can you also explain me the <T> in sca_tdf::sca_de::sca_in<T>? Thanks in advance.
  4. Hi all, I am trying to interface a systemc module with a AMS TDF module. I am trying to do with converter ports. My AMS module is a LPF. I want to drive its input from a SystemC module. Here is what im doing.. SC_MODULE(LPF) { sca_tdf::sc_in<double> tdf_IN; // input from SC module, LPF input sca_tdf::sca_out<double> tdf_OUT; // LPF output. sca_eln::sca_node_ref GND; // Ground reference. // LPF is implemented using ELN sca_eln::sca_tdf_vsource *V_IN; // ELN input port sca_eln::sca_tdf_vsink *V_OUT; // ELN output port . . . SCA_CTOR(LPF) { V_IN = new sca_eln::sca_tdf_vsource("V_IN",1.0); V_IN->inp(tdf_IN); // ERROR //This is the error i am getting for the above line. error: no match for call to ‘(sca_tdf::sca_in<double>) (sca_tdf::sc_in<double>&)’ V_IN->p(IN); V_IN -> n(GND); . . . } }; How will i interface these two blocks? Thanks in advance.
  5. 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.
  6. 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
  7. Which is the best/ simplest way to model a DAC in Systemc-ams??
×
×
  • Create New...