* Re: Add systemc simulator with gdb
@ 2004-02-20 2:18 Yorkwar
2004-02-20 10:41 ` Richard Earnshaw
0 siblings, 1 reply; 5+ messages in thread
From: Yorkwar @ 2004-02-20 2:18 UTC (permalink / raw)
To: rearnsha; +Cc: gdb
>R.
>
>[*] For the uninitiated, SystemC started life as a simulation class
>library for C++ which enables you to use C++ in much the same way as you
>would any other HDL (Hardware description language). However, by
>restricting your description a suitable subset of C++ you can then
>accelerate it significantly with special simulators and even run hardware
>synthesis tools on it. The real power comes from the fact that your test
>benches can be written in abstract C++ and can then interact with your
>hardware description directly.
It will be a great improvement to integrate a SystemC or HDL simulator in GDB.
However, is there any reference about how to implement the library or bridge
to compoment written in SystemC or HDL?
Best regards.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Add systemc simulator with gdb
2004-02-20 2:18 Add systemc simulator with gdb Yorkwar
@ 2004-02-20 10:41 ` Richard Earnshaw
0 siblings, 0 replies; 5+ messages in thread
From: Richard Earnshaw @ 2004-02-20 10:41 UTC (permalink / raw)
To: Yorkwar; +Cc: rearnsha, gdb
>
> >R.
> >
> >[*] For the uninitiated, SystemC started life as a simulation class
> >library for C++ which enables you to use C++ in much the same way as you
> >would any other HDL (Hardware description language). However, by
> >restricting your description a suitable subset of C++ you can then
> >accelerate it significantly with special simulators and even run hardware
> >synthesis tools on it. The real power comes from the fact that your test
> >benches can be written in abstract C++ and can then interact with your
> >hardware description directly.
>
> It will be a great improvement to integrate a SystemC or HDL simulator in GDB.
> However, is there any reference about how to implement the library or bridge
> to compoment written in SystemC or HDL?
>
I'm not aware of any work being done in this area.
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Add systemc simulator with gdb
2004-02-18 14:19 Vineet Sharma, Noida
2004-02-18 14:52 ` Richard Earnshaw
@ 2004-02-20 16:52 ` Andrew Cagney
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2004-02-20 16:52 UTC (permalink / raw)
To: Vineet Sharma, Noida; +Cc: gdb
> Hi All,
>
> Is there any examples who have sucessfully integrated there
> simulators in c++ or systemc with gdb?
> What are the issues faced in that approach?
>
> I found the problem of conflicting types of bfd in bfd.h and
> remote-sim.h(:67). Any idea how to overcome it?
>
> ../../include/gdb/remote-sim.h:67: conflicting types for `struct bfd'
> /usr/include/bfd.h:78: previous declaration as `typedef struct _bfd bfd'
FYI, it should not be including that version of bfd.h (but I don't know
if fixing that will help much).
Andrew
> ../../include/gdb/remote-sim.h:108: using typedef-name `bfd' after `struct'
> ../../include/gdb/remote-sim.h:145: using typedef-name `bfd' after `struct'
> ../../include/gdb/remote-sim.h:165: using typedef-name `bfd' after `struct'
> I think its bcoz of the difference in c++/g++ and gcc handling of
> forward declaration?
>
> Your comments and inputs would be very helpfull
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Add systemc simulator with gdb
2004-02-18 14:19 Vineet Sharma, Noida
@ 2004-02-18 14:52 ` Richard Earnshaw
2004-02-20 16:52 ` Andrew Cagney
1 sibling, 0 replies; 5+ messages in thread
From: Richard Earnshaw @ 2004-02-18 14:52 UTC (permalink / raw)
To: Vineet Sharma, Noida; +Cc: gdb, Richard.Earnshaw
>
> Hi All,
>
> Is there any examples who have sucessfully integrated there
> simulators in c++ or systemc with gdb?
I'm guessing that most people on this list won't even know what systemc is
[*], let alone really understand what question you are asking.
> What are the issues faced in that approach?
gdb can be used for debugging c++ and other normal programming languages.
It isn't really an HDL debugger.
>
> I found the problem of conflicting types of bfd in bfd.h and
> remote-sim.h(:67). Any idea how to overcome it?
>
> ../../include/gdb/remote-sim.h:67: conflicting types for `struct bfd'
> /usr/include/bfd.h:78: previous declaration as `typedef struct _bfd bfd'
> ../../include/gdb/remote-sim.h:108: using typedef-name `bfd' after `struct'
> ../../include/gdb/remote-sim.h:145: using typedef-name `bfd' after `struct'
> ../../include/gdb/remote-sim.h:165: using typedef-name `bfd' after `struct'
> I think its bcoz of the difference in c++/g++ and gcc handling of
> forward declaration?
>
GDB is written in C, and needs to be compiled with a C compiler. It's not
C++, and I guess that if you try and compile it with G++ you'll get error
messages much like the one above.
R.
[*] For the uninitiated, SystemC started life as a simulation class
library for C++ which enables you to use C++ in much the same way as you
would any other HDL (Hardware description language). However, by
restricting your description a suitable subset of C++ you can then
accelerate it significantly with special simulators and even run hardware
synthesis tools on it. The real power comes from the fact that your test
benches can be written in abstract C++ and can then interact with your
hardware description directly.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Add systemc simulator with gdb
@ 2004-02-18 14:19 Vineet Sharma, Noida
2004-02-18 14:52 ` Richard Earnshaw
2004-02-20 16:52 ` Andrew Cagney
0 siblings, 2 replies; 5+ messages in thread
From: Vineet Sharma, Noida @ 2004-02-18 14:19 UTC (permalink / raw)
To: gdb
Hi All,
Is there any examples who have sucessfully integrated there
simulators in c++ or systemc with gdb?
What are the issues faced in that approach?
I found the problem of conflicting types of bfd in bfd.h and
remote-sim.h(:67). Any idea how to overcome it?
../../include/gdb/remote-sim.h:67: conflicting types for `struct bfd'
/usr/include/bfd.h:78: previous declaration as `typedef struct _bfd bfd'
../../include/gdb/remote-sim.h:108: using typedef-name `bfd' after `struct'
../../include/gdb/remote-sim.h:145: using typedef-name `bfd' after `struct'
../../include/gdb/remote-sim.h:165: using typedef-name `bfd' after `struct'
I think its bcoz of the difference in c++/g++ and gcc handling of
forward declaration?
Your comments and inputs would be very helpfull
Regards
Vineet
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-02-20 16:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 2:18 Add systemc simulator with gdb Yorkwar
2004-02-20 10:41 ` Richard Earnshaw
-- strict thread matches above, loose matches on Subject: below --
2004-02-18 14:19 Vineet Sharma, Noida
2004-02-18 14:52 ` Richard Earnshaw
2004-02-20 16:52 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox