decode1: Take an extra cycle for predicted branch redirects
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 16 Dec 2020 08:32:07 +0000 (19:32 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 15 Jan 2021 01:40:09 +0000 (12:40 +1100)
commitcb1e3f6d705c6b1808e96ef6e5873c18e9d33a36
tree91d1479b6f61ded2b3c0adc40044a0666c1e302f
parent6427cab46fe7f37074505e18a1957414023c2708
decode1: Take an extra cycle for predicted branch redirects

This does the addition of NIA plus the branch offset from the
instruction after a clock edge, in order to ease timing, as the path
from the icache RAM through the adder in decode1 to the NIA register
in fetch1 was showing up as a critical path.

This adds one extra cycle of latency when redirecting fetch because of
a predicted-taken branch.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
decode1.vhdl