- Nov 29, 2005
- 2,411
- 0
- 0
Heya!
So, I've written this software that simulates a simple processor with instruction scheduling and resources (functional units, registers, etc). It works just fine, but I would like more control over the state, or, better put, I'd like more control over roll-back. I.e. I'd like to be able to save the state at each clock tick, and then be able to go back to a specific tick and and restart things from there (perhaps changing the configuration). I could write all the code to save and reload the state, but I figured it might just be simpler to build the whole thing on top of some pre-existing library.
The setup isn't really that complicated: Just a graph, nodes are picked off and put in to a ready list (when ready), scheduled (in the presence of resources), repeat.
Anyone have any ideas? C++ is essential (do to external stuff written in C++ that can't be ported to Java or Python or whatever)
Thanks!
So, I've written this software that simulates a simple processor with instruction scheduling and resources (functional units, registers, etc). It works just fine, but I would like more control over the state, or, better put, I'd like more control over roll-back. I.e. I'd like to be able to save the state at each clock tick, and then be able to go back to a specific tick and and restart things from there (perhaps changing the configuration). I could write all the code to save and reload the state, but I figured it might just be simpler to build the whole thing on top of some pre-existing library.
The setup isn't really that complicated: Just a graph, nodes are picked off and put in to a ready list (when ready), scheduled (in the presence of resources), repeat.
Anyone have any ideas? C++ is essential (do to external stuff written in C++ that can't be ported to Java or Python or whatever)
Thanks!