I have a simple C++ function which parse CSV (10-10k rows) file line-by-line and insert each field in defined structure, array of structures to be more specific.
Now I want to measure parsing time using systemc
methods (without C++ utilities, e.g clock()
) and include it in simulation like any other process and generate trace file - is it possible at all?
For couple of days I am struggling doing that in every possible way. Actually I have realised that sc_time_stamp()
is useless in that particular case as it only shows declared sc_start()
simulation elapsed time.
I thought it will be as simple as:
wait() until pos.edg
parseFile()
signal.write(1)
doOtherStuff()
but apparently it's not...
Internet is full of adders, counters and other logic stuff examples but I did not found anything related to my problem.
Thanks in advance!