Lurker News

Comments (105) 25 threads

Show all comments

Showing thread 13 of 25

FullyFunctional1 reply#
I love it. Thanks for doing this.

How long did it take you? How did you verify the memory accuracy? It sounds like you co-simulated your implementation with the emulation?

loadzero2 replies#
Yes, I ran with the original in lockstep and confirmed the same reads and writes were occurring.
loadzero#
It felt like it took forever. But about 200 hours all up, over a few months.
matsemann1 reply#
I'd like to read more about this setup!
loadzero2 replies#
Yeah, there's probably a good article or two in that.

Cliff notes:
It's basically an extension of the Dual CPU setup mentioned in http://www.gtoal.com/sbt/
In that article, Graham Toal discusses a hack where you can bootstrap a new emulator core from an existing one by making a custom emulator that drives both cores at the same time.
After each clock tick, you check the states of both processors for divergence and halt with the diff if there is one.

zentiggr2 replies#
First I've heard of the technique, that is amazing.

Makes me consider getting back to lower level coding again, even just test code, just to see it in action.

Continue this thread — 2 replies

exlurker#
Thank you for this, amazing labour of love! And this article really gets my mind churning ... :)