A.Elgogary Posted May 8, 2016 Report Share Posted May 8, 2016 i keep receiving the error (just on time) for TDF Output port with 10ms time step and 5 rate and sca_tdf_out_dt_cut, connected to 2ms TDF model?? Warning: SystemC-AMS: Write not called for decoupling outport: Crane0.Controller0.VC In file: /usr/local/systemc-ams-2.0/include/scams/predefined_moc/tdf/sca_tdf_out_dt_cut.h:390 In process: Crane0.sca_implementation_0.cluster_process_0 @ 0 s Quote Link to comment Share on other sites More sharing options...
Martin Barnasconi Posted May 11, 2016 Report Share Posted May 11, 2016 Could you please check with SystemC AMS 2.1 PoC and report if the warning is still there? http://www.coseda-tech.com/systemc-ams-proof-of-concept Quote Link to comment Share on other sites More sharing options...
A.Elgogary Posted May 11, 2016 Author Report Share Posted May 11, 2016 yes it is there and keep repeating SystemC 2.3.1-Accellera --- Feb 12 2016 19:29:34 Copyright © 1996-2014 by all Contributors, ALL RIGHTS RESERVED SystemC AMS extensions 2.1.0-COSEDA Release date: 20160404 Copyright © 2010-2014 by Fraunhofer-Gesellschaft IIS/EAS Copyright © 2015-2016 by COSEDA Technologies GmbH Licensed under the Apache License, Version 2.0 Quote Link to comment Share on other sites More sharing options...
maehne Posted May 11, 2016 Report Share Posted May 11, 2016 It would be helpful if you could post a minimal self-contained example demonstrating your issue. Quote Link to comment Share on other sites More sharing options...
A.Elgogary Posted May 17, 2016 Author Report Share Posted May 17, 2016 Here is an Example which give the same warning : #include "systemc.h" #include "systemc-ams.h" SCA_TDF_MODULE( ModuleIn ) { sca_tdf::sca_in<double> q; sca_tdf::sca_out<double> q2ms; void initialize() { } void set_attributes() { set_timestep(2, SC_MS); } void processing() { q2ms = 0; cout << q << endl; } SCA_CTOR( ModuleIn ) { } }; SCA_TDF_MODULE( ModuleOut ) { sca_tdf::sca_out<double, sca_tdf::SCA_DT_CUT> q; sca_tdf::sca_in<double> q2ms; void initialize() { //q.set_rate(5); } void set_attributes() { q2ms.set_rate(5); set_timestep(10, SC_MS); } void processing() { q = 1; } SCA_CTOR( ModuleOut ) { } }; SC_MODULE( MainModule ) { ModuleOut * ModuleOut0; ModuleIn * ModuleIn0; sca_tdf::sca_signal<double> q, q2ms; SC_CTOR( MainModule ) { ModuleOut0 = new ModuleOut("ModuleOut0"); ModuleOut0->q(q); ModuleOut0->q2ms(q2ms); ModuleIn0 = new ModuleIn("ModuleIn0"); ModuleIn0->q(q); ModuleIn0->q2ms(q2ms); } ~MainModule() { } }; MainModule * MainModule0 = NULL; int sc_main(int argc, char* argv[]) { MainModule0 = new MainModule("MainModule0"); sc_start(100, SC_MS); return 0; } Output: SystemC 2.3.1-Accellera --- Feb 12 2016 19:29:34 Copyright (c) 1996-2014 by all Contributors, ALL RIGHTS RESERVED SystemC AMS extensions 2.1.0-COSEDA Release date: 20160404 Copyright (c) 2010-2014 by Fraunhofer-Gesellschaft IIS/EAS Copyright (c) 2015-2016 by COSEDA Technologies GmbH Licensed under the Apache License, Version 2.0 Info: SystemC-AMS: 2 SystemC-AMS modules instantiated 1 SystemC-AMS views created 3 SystemC-AMS synchronization objects/solvers instantiated Info: SystemC-AMS: 1 dataflow clusters instantiated cluster 0: 3 dataflow modules/solver, contains e.g. module: MainModule0.ModuleOut0 11 elements in schedule list, 10 ms cluster period, ratio to lowest: 5 e.g. module: MainModule0.ModuleIn0 ratio to highest: 1 sample time e.g. module: MainModule0.ModuleOut0 0 connections to SystemC de, 0 connections from SystemC de Warning: SystemC-AMS: Write not called for decoupling outport: MainModule0.ModuleOut0.sca_tdf_out_dt_cut_0 In file: /usr/local/systemc-ams-2.1/include/scams/predefined_moc/tdf/sca_tdf_out_dt_cut.h:507 In process: MainModule0.sca_implementation_0.cluster_process_0 @ 0 s 0 0 0 0 0 Warning: SystemC-AMS: Write not called for decoupling outport: MainModule0.ModuleOut0.sca_tdf_out_dt_cut_0 In file: /usr/local/systemc-ams-2.1/include/scams/predefined_moc/tdf/sca_tdf_out_dt_cut.h:507 In process: MainModule0.sca_implementation_0.cluster_process_0 @ 10 ms 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.