yeewang
Full Member level 2
systemc question
what 's the easiest way to convert and connect sc_clock to sc_in<sc_logic> port.
eg.
sc_clock clk;
....
....
inst *a;
a = new inst("instance");
a->clk( ***** ); // in a, clk is declared as sc_in<sc_logic>
I need to connect sc_clock to this a->clk but due to the different types, the compile forbids me from doing that.
any ideas?
THX
what 's the easiest way to convert and connect sc_clock to sc_in<sc_logic> port.
eg.
sc_clock clk;
....
....
inst *a;
a = new inst("instance");
a->clk( ***** ); // in a, clk is declared as sc_in<sc_logic>
I need to connect sc_clock to this a->clk but due to the different types, the compile forbids me from doing that.
any ideas?
THX