Quantcast
Channel: SystemC Language Forum RSS Feed
Viewing all articles
Browse latest Browse all 595

string directly as input ??/

$
0
0

hello ,,

 

i wish to use string as input data type i have used ...

sc_in<unsigned char> data_in;

and i am using data_in as static sensitivity ....and am getting error :

ca_fifo.h: In constructor ‘fifo::fifo(sc_core::sc_module_name)’:
ca_fifo.h:27:6: error: invalid static_cast from type ‘void (fifo::*)(char)’ to type ‘sc_core::SC_ENTRY_FUNC {aka void (sc_core::sc_process_host::*)()}’

please explain me the above error as i wish to sent a string literal from stimulus ...

 

and on page 199 of 1666-2011 string literals topic ...it is written

"

A string literal representation may be used as the value of a SystemC numeric or vector type object."

 

does it mean that we cannot sent a string literal directly ...

 

thanks

Mohit Negi


Viewing all articles
Browse latest Browse all 595

Trending Articles