logic used: check if stalls print stall else print the stage and the instruction. Only Load causes 2 stalls, if forwarding than no stalls. so check for load instruction causing stall, no need to do anything for forwarding or bypassing. get the target address in the ID stage and Compute branch taken in EX stage, so empty the instructions in the ID/IF registers if branch and fetch the new instructions in next cycle (predict not taken branch prediction technique)
-
Notifications
You must be signed in to change notification settings - Fork 0
Integer pipeline simulator includes a forwarding unit, a hazard detection unit with the static branch prediction technique predict not taken. 8-stage pipeline with a 2-stage fetch unit and 3-stage memory unit. branch is computed in the EX stage and forwarding from memory is done through MEM2 stage.
srpoyrek/pipeline_simulator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Integer pipeline simulator includes a forwarding unit, a hazard detection unit with the static branch prediction technique predict not taken. 8-stage pipeline with a 2-stage fetch unit and 3-stage memory unit. branch is computed in the EX stage and forwarding from memory is done through MEM2 stage.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published