KMLM List
View email archives for the history of this mailing list.
|
|
|
|
systemc-forum - Re: [Systemc-forum] ggc error integer constant is too large
|
Message Thread:
Previous |
Next
|
- To: asanchez@xxxxxxxxxxxxx
- From: Felipe Vieira Klein <klein@xxxxxxxxxxxxx>
- Date: Sat, 04 Jun 2005 16:33:06 -0300
- Cc: systemc-forum@xxxxxxxxxxx
- Send Email to systemc-forum@osci.kavi.com:
- Send new message
- Reply to this message
|
Hi Armando,
the problem is that the constant passed as the second parameter in the
call to "read_dat" is treated as "long" by the gcc.
You should indicate the constant is a "long long".
So, you must change the call to "read_dat" to the line below:
i1.read_dat(0x8, 0x0706050000000000ULL);
Your project should compile correctly now.
Best regards
--
Felipe.
asanchez@xxxxxxxxxxxxx wrote:
Hi,
I´m using gcc to compile my proyect but when I invoke the following function:
i1.read_dat(0x8, 0x0706050000000000);
It gives me the following error:
./My_Solution.cpp:100: error: integer constant is too large for "long" type.
But the function is declared like:
bool read_dat(my_info_t myinfo, sc_uint<64> data){
......
}
How can I indicate that it is a sc_uint<64> type?
Thanks you in advance:
Armando Sánchez
_______________________________________________
Systemc-forum mailing list
Systemc-forum@xxxxxxxxxxx
https://www.systemc.org/mailman/listinfo/systemc-forum
___________________________________________________
Felipe Vieira Klein klein@xxxxxxxxxxxxx
PhD student - IC-UNICAMP
Computer Systems Laboratory
http://www.lsc.ic.unicamp.br
|
|