After trying several approached in last 7 hours I was hoping that this solution might work. I thought that if output from two tables Jump bit tables and ALU output tables are both true then this would pass the HW simulator test. But alas this did not happen. The test failed only after few lines.
Can someone please tell me what is wrong with following approach and if there is another direction that I should head to in search of right implementation. I tried all I could think of and nothing worked.
In case someone gets stuck on Jump logic or decode box and if it could make life easier for anyone then following helped me in finishing this task.
1-understanding what happens during C and A instructions and how it effects different components in figure 5.9. Every part of C-instruction and A-instruction has a separate story to tell. Chapter 3 on machine instruction i had to check several times.
2-what each jump bit means and what conditions need to be checked in each case. I had to refer to pages 94, 36, 37, 110 and 69 again and again.