I don't know if this is the right place to ask this question, But I will ask it anyway.
there are lots of cycle accurate simulators out there, all of them are intended for x86 architecture, some extended to be a full system simulator that could work as a virtual machine.
what if I need to write my own cycle accurate simulator for something else? possibly to explore a design before going down to RTL level. I tried to find books or tutorials about that, No luck though. I also tried to go through the open source code of two of the x86 simulators, They use a lot of inline assembly and modified standard functions!! I would prefer to leave that as a last resort.
my question now is, could anyone recommend a good book or online tutorial or anything to start from? or do I have to go through these codes to understand their operations.