Jump to content
A.Elgogary

Warning: SystemC-AMS: Write not called for decoupling outport

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

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

×