Friday, 10 August 2012

New? school systemc system-c sensitive << clk.pos() clock.pos()


Ubuntu 10.04 (CAD VP) 11.01

    switches(sc_module_name name)
    :sc_module(name)
    {
        SC_THREAD(run);
        sensitive << clk.pos();
    }


switches.h: In constructor 'switches::switches(sc_core::sc_module_name)':
switches.h:56: error: 'class sc_core::sc_clock' has no member named 'pos'



    switches(sc_module_name name)
    :sc_module(name)
    {
        SC_THREAD(run);
        sensitive_pos << clk;
    }


No comments:

Post a Comment