KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - sc_signal / operator problem.....
|
Message Thread:
Previous |
Next
|
- To: systemc-forum@xxxxxxxxxxxxxxxxx
- From: jalinder gat <jalindergat@xxxxxxxxx>
- Date: Thu, 10 Dec 2009 02:35:59 -0800
- Send Email to systemc-forum@lists.systemc.org:
- Send new message
- Reply to this message
|
hi all,
i want to perform some mathemetical manipulation in SystemC2.0.i m using
sc_signal. something like
sc_signal<sc_uint<16> >temp1, temp2, temp3;
temp1 = temp2.read() / temp3.read();
it gives error like:
error C2678: binary '/' : no operator defined which takes a left-hand
operand of type 'class sc_signal<class sc_uint<16> >' (or there is no
acceptable conversion)
then i tried taking signals in variable of unsigned int type and then
performing the calculation hopping it operator would be overloded for for
unsigned int type data type and there would be conversion from unsigned int
to sc_uint but then its started adding one more error like this:
error C2678: binary '+' : no operator defined which takes a left-hand
operand of type 'class sc_signal<class sc_uint<16> >' (or there is no
acceptable conversion)
then i saw the data types on systemc2.0 ptah:
D:\systemc-2.0\src\systemc\datatypes
and i found operator is overloaded there for sc_uint but not for
sc_signal.....
now i m in truble if i will have to overload the / operator....if i need to
then where should i in sc_signal or where else
please help.....
thank you well in advance...
|
|
By Date:
Previous |
Next
|
Current Thread
|
By Thread:
Previous |
Next
|
- sc_signal / operator problem....., jalinder gat (you are here)
|
|