学习日志之杂谈(1)

Content:

  1. Control hazard

  2. UML language

  3. Control hazard

Control hazard happens when we have branch instruction in the program. The reason is that the computer doesn’t know the address of next instruction before the branch instruction reaches the MEM stage, which will cause 3 clock cycles as penalty. (Instruction fetch stage needs the result of branch judgements)
to reduce the amount of penalty, we move the address adder and judgment component to the ID stage. In this way, we could get the address of next instruction at the end of ID stage, so that we could reduce penalty to 1 clock cycle. The consequence of this change on hardware is that in the next instruction, we have to take instruction fetching stage 2 times.

  1. UML language is a kind of language used to modeling the process of building a project.

We have to draw this diagram before we start coding

发布了17 篇原创文章 · 获赞 0 · 访问量 219

猜你喜欢

转载自blog.csdn.net/zch951127/article/details/104338084