Refactored sim code, moved registers to exeunit