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] 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
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


asanchez@xxxxxxxxxxxxx wrote:


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

Felipe Vieira Klein     klein@xxxxxxxxxxxxx
PhD student - IC-UNICAMP
Computer Systems Laboratory

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

  Mail converted by the most-excellent MHonArc 2.6.10