Skip to content
Tactiverge
Level 5Architecture trade-offsWork it out

What forwarding buys

The Silicon Studio pipeline model runs the instructions a program executed on a 5-stage pipeline (IF ID EX MEM WB). Without forwarding, an instruction that needs A (or the flags) waits until the instruction that produced it has written back. With forwarding, only a result that comes from memory or input and is used immediately costs a stall (1 clock). Branches are predicted not-taken.

How many clocks does forwarding save on this run (clocks without forwarding minus clocks with forwarding)?

New to this? Silicon Studio 15 (advanced: pipeline)

How results are computed: model assumptions.

Bench-8 listing · memory preset: 0xF0=1, 0xF1=2, 0xF2=3, 0xF3=4
        LDA 0xF0
        ADD 0xF1
        ADD 0xF2
        ADD 0xF3
        OUT
        HALT