# In which CPUs will write-after-write and write-after-read dependencies cause a hazard?

I've been studying the MIPS single cycle architecture for pipeline. I noticed that read-after-write dependency causes a data hazard but two other write-after-write and write-after-read dependencies won't cause any hazards.

So i was wondering if there exists processors with hazards because of this WAW and WAR dependency?

If there are, please can you name some of them. Thank you! (I searched google but found nothing useful)

• Since you've been studying architectures and pipelines, I assume you understand why there is a potential hazard with read-after-write. That's trivially easy to explain if there is a pipeline. So, knowing that, tell me what design arrangement in a single cycle pipelined architecture is required in order to create a write-after-write hazard or a write-after-read hazard. If you can answer that, you may have your answer. Easily answered, if some instructions execute faster than others. But keep in mind this one important fact you mentioned: single cycle architecture. – jonk May 5 '18 at 5:16
• so what are the names? – Moeinh77 May 6 '18 at 2:09
• I'll provide a greatly narrowing hint. Search through the set of $k$-way superscalar, single-cycle processors. (The bold part is your requirement.) – jonk May 6 '18 at 4:45

1: add $1,$2, $3 ;writes to$1
2: mul $4,$1, $5 ;reads from$1