Hello everyone,
I’m new in systemc and in this forum.
I successfully downloaded and installed systemc-2.3.0 on MSVC-2010 (Windows 7)
I can compile and run the examples.
BUT when I write an own program it doesn’t work.
For example I wrote this simple program.
#include "systemc.h"#define WIDTH 4
SC_MODULE(adder) {
sc_in<sc_uint<WIDTH> > a, b; sc_out<sc_uint<WIDTH> > sum;
void do_add() { sum.write(a.read() + b.read()) }
SC_CTOR(adder) { SC_METHOD(do_add); sensitive << a << b; }
};
systemc.lib(sc_main_main.o