Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - RE: [Systemc-forum] Questions on sc_fifo Message Thread: Previous | Next
  • To: Stéphane Guntz <guntz@xxxxxxxxxxxx>, <systemc-forum@xxxxxxxxxxxxxxxxxxx>
  • From: "Ankur Singla" <asingla@xxxxxxxxx>
  • Date: Wed, 10 Apr 2002 10:17:39 -0700
Send Email to systemc-forum@osci.kavi.com:
Send new message
Reply to this message
Seems like the sc_trace function is barfing because of Incomplete or
Overload Absence of struct_complex.
Try defining operator<< for your struct_complex and see if things get
better.

--Ankur Singla

-----Original Message-----
From: systemc-forum-admin@xxxxxxxxxxxxxxxxxxx
[mailto:systemc-forum-admin@xxxxxxxxxxxxxxxxxxx]On Behalf Of Stéphane
Guntz
Sent: Wednesday, April 10, 2002 9:44 AM
To: systemc-forum@xxxxxxxxxxxxxxxxxxx
Subject: [Systemc-forum] Questions on sc_fifo


Hi all,

Two questions dealing with sc_fifo channels:

1).
I'm trying to use a sc_fifo channel taking some "complex" datatypes
(defined in math.h). When i am compiling it, i get the following error
messages:

c:\systemc\systemc-2.0\src\systemc\communication\sc_fifo.h(280) : error
C2665: 'sc_trace' : none of the 42 overloads can convert parameter 2
from type 'struct _complex'
        c:\systemc\systemc-2.0\src\systemc\kernel\sc_module.h(425) :
while compiling class-template member function 'void __thiscall
sc_fifo<struct _complex>::trace(class sc_trace_file *) const'
c:\systemc\systemc-2.0\src\systemc\communication\sc_fifo.h(293) : error
C2679: binary '<<' : no operator defined which takes a right-hand
operand of type 'struct _complex' (or there is no acceptable conversion)
        c:\systemc\systemc-2.0\src\systemc\kernel\sc_module.h(425) :
while compiling class-template member function 'void __thiscall
sc_fifo<struct _complex>::print(class ostream &) const'
c:\systemc\systemc-2.0\src\systemc\communication\sc_fifo.h(309) : error
C2679: binary '<<' : no operator defined which takes a right-hand
operand of type 'struct _complex' (or there is no acceptable conversion)
        c:\systemc\systemc-2.0\src\systemc\kernel\sc_module.h(425) :
while compiling class-template member function 'void __thiscall
sc_fifo<struct _complex>::dump(class ostream &) const'
Error executing cl.exe.


Cannot we use complex datas with sc_fifo, or do i have to use other ways
(such as using two fifos instead of one, or such as creating my fifo
channel, with some functions overloading the trace and print functions)
 Are sc_fifo planned to support complex datas in the next SystemC 2.0.1
release??

2). Is there a a difference between the following ports:
sc_fifo_in<type>  and sc_port<sc_fifo_in_if<type> > ?

Thanks
Stéphane

--------------------------------------------------------------
Stéphane Guntz
Prosilog S.A
8, rue Traversière 95000 Cergy-Préfecture
FRANCE
www.prosilog.com

--------------------------------------------------------------


_______________________________________________
Systemc-forum mailing list
Systemc-forum@xxxxxxxxxxxxxxxxxxx
https://server2.systemc.org/mailman/listinfo/systemc-forum




By Date: Previous | Next Current Thread By Thread: Previous | Next


  Mail converted by the most-excellent MHonArc 2.6.10