Hi,
I have a SystemC driver model which is connected to TLM memory module (AT style). I wanted to have scripting API feature of the model, in order e.g. to test memory read/write.
Script should look like
write(0x500, 0xABAB)
// wait until write is done, or some fixed amount of time (D)
var x = read(0x500)
// wait memory read delay or D
if (x != 0xABAB) {
throw error; // or smth else
}
I checked duktape and C++ version (dukglue), but I don't know how to deal with timing/delays (script can be evaluated immediately, I don't know how to wait for some time time until the read/write is done or some fixed amount of time).
Anyone had some similar problem, could you share your findings, or give some suggestions?
Scripting language is not fixed.