Interests

Biography

Location

Interests

Occupation

Company

Hi, I came across the ConnectPorts between TDF and Discrete domain models..... In this case for the discrete domain is intended a System-C model, therefore, we go from classes to classes. The question I have is: How to connect in an efficient way a sc_signal<double> with a variable of type double?
sc_signal<double> myscd;
double myvar;
having the above defined, what is a good way to do (a made up code):
assign myscd = myvar;
and
assign myvar = myscd;
I usually have to use the .read() and .write() methods but how can I achieve a permanent assignment? assuming that all that I want to do is manipulate simple variables. The same would apply to other data types (int, logic etc....)