Skip to content

Commit

Permalink
Update 18_Branch_Manager.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyMiraidon authored Oct 31, 2023
1 parent bebd47a commit b11bc18
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Documentation/01_Module_Docs/18_Branch_Manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@

## Functionality
### Registers
- 32-bits ```curr_ins_addr``` register
- 32-bits ```curr_ins_pc``` register
- 1-bit ```curr_ins_pred``` register
- 1-bit ```restart``` register
### Combinational
- If ```(curr_ins_pred != act_taken)&&(!restart)```
### On posedge clk
- If ```(pred_taken != act_taken)&&(!restart)```
* ```flush = 1```
* ```act_taken```
|```act_taken```|```npc```|
Expand All @@ -46,12 +43,7 @@
|:---|:---:|
|```pred_taken == 0```|```npc = pred_pc + 4```|
|```pred_taken == 1```|```npc = pred_addr```|
### On posedge clk
- ```curr_ins_addr = pred_addr```
- ```curr_ins_pc = pred_pc```
- ```curr_ins_pred = pred_taken```
- If ```restart```, ```restart = 0```
- If ```restart```, ```restart = 0```

### Asynchronous active low reset
- ```restart``` set to 1
- All other registers set to 0

0 comments on commit b11bc18

Please sign in to comment.