![]() |
.. (לתיקייה המכילה) | |
Q4: Do we need to use threads to run the code in parallel?
| Obviously not. You just build a simulator. |
Q4: Can we change the Run method and other methods as well?
|
Yes. Just keep DumpMem and main intact. |
Q4: Can we base our implementation of stall on the fact no reserved instructions will be delivered?
| Yes. Implement stall however you wish. |
Q4: How can we recognize branches during fetch?
|
Assume you have logic for purely analyzing branches in the fetch stage. It doesn't fully decode the instruction - it just checks whether it is a branch. |
Q4: When main calls run, does it deliver the number of instructions or cycles to run?
|
Cycles (including stalls). It is important that you run N cycles, and NOT instructions. |

